Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
31,743 in github.com/PerpetualSoftware/pad
⨍
Functions
31,743
◇
Types & classes
3,534
↓ 11 callers
Function
storedItemEntries
(t *testing.T, s *Store, itemID string)
internal/store/item_entries_index_test.go:53
↓ 11 callers
Method
sweep
sweep walks the map, evicts entries older than ttl, and returns the eviction count. onChange fires once at the end with the new total — single observa
internal/server/middleware_mcp_session.go:212
↓ 11 callers
Method
task
(t *testing.T, title string)
internal/decision/conventions_test.go:80
↓ 11 callers
Function
task3399Delegated
task3399Delegated mints a delegated grant (code, access, refresh).
internal/store/task3399_delegated_barrier_test.go:213
↓ 11 callers
Function
task3462GetState
TASK-3462 U2: the state endpoint, the listing, and the opt-in update. The compiled-in library cannot change inside a test, so "the library changed si
internal/server/task3462_builtin_update_test.go:23
↓ 11 callers
Function
testPNG
testPNG is a small valid PNG.
internal/server/task3401_app_api_test.go:145
↓ 11 callers
Function
timeText
(t time.Time)
internal/store/app_pending.go:90
↓ 11 callers
Method
tryCreate
(t *testing.T, in models.ScheduleCreate)
internal/store/schedule_bounds_test.go:39
↓ 11 callers
Method
validateCloudSecret
validateCloudSecret checks the cloud_secret field in a JSON request body against the server's configured cloud secret. Returns true if the secret matc
internal/server/handlers_cloud.go:90
↓ 11 callers
Function
validateConversationActor
TASK-4038: reject malformed actor identities before they reach either SQL driver.
internal/store/conversations.go:77
↓ 11 callers
Function
validatePasswordStrength
validatePasswordStrength enforces length + strength. It rejects weak passwords at registration / rotation / reset so top-of-breach-list entries like "
internal/server/password_strength.go:34
↓ 11 callers
Function
waitForEvent
waitForEvent reads from the event channel with a timeout.
internal/server/handlers_events_test.go:79
↓ 11 callers
Function
wallOf
wallOf is the wall reading of an instant already in its zone.
internal/store/schedule_completion.go:131
↓ 11 callers
Function
wantRemindAt
(t *testing.T, f *schedFixture, sc *models.ItemSchedule, want, what string)
internal/store/schedule_target_arming_test.go:53
↓ 11 callers
Function
writeChatError
(w http.ResponseWriter, err error)
internal/server/handlers_chat.go:46
↓ 11 callers
Function
writeCredStore
(t *testing.T, home, serverURL, token string)
cmd/pad/env_token_override_test.go:33
↓ 11 callers
Method
writeGraphError
(w http.ResponseWriter, r *http.Request, err error)
internal/server/handlers_commitment_links.go:200
↓ 10 callers
Method
AdmitAppDelivery
(webhookID, event, collectionID, occurredAt, deliveryID string)
internal/webhooks/app_delivery.go:49
↓ 10 callers
Function
AppendDecisionLogEntry
(fieldsJSON string, entry ItemDecisionLogEntry)
internal/models/item.go:1162
↓ 10 callers
Method
Apply
Apply derives the child date as a UTC instant.
internal/schedule/links.go:86
↓ 10 callers
Method
ApproveCLIAuthSession
ApproveCLIAuthSession marks a pending session as approved, storing the session token and user ID. Returns an error if the session doesn't exist, is ex
internal/store/cli_auth_sessions.go:197
↓ 10 callers
Function
Choice
Choice builds a Choice question. options maps each option name to a description of what that option means; at least two are required.
internal/decision/decision.go:77
↓ 10 callers
Method
ClaimIdempotencyKey
ClaimIdempotencyKey claims (workspace, user, key) for a request whose canonical hash is requestHash, or reports why it cannot.
internal/store/idempotency.go:54
↓ 10 callers
Method
ConsumeEmailVerification
ConsumeEmailVerification atomically validates and marks a verification token as used, then sets users.email_verified_at to now. Returns the (now-verif
internal/store/email_verification.go:101
↓ 10 callers
Method
CreateWatch
CreateWatch creates a durable watch, or replaces the predicate on an existing one for the same (user, item) pair (TASK-2533). Re-running `pad watch <r
internal/store/watches.go:17
↓ 10 callers
Function
DetectWorkspace
DetectWorkspace walks up the directory tree from cwd looking for .pad.toml.
internal/cli/workspace.go:54
↓ 10 callers
Method
Dispatch
Dispatch sends the event payload to all matching active webhooks for the workspace. Each delivery runs in its own goroutine so the caller is never blo
internal/webhooks/dispatcher.go:410
↓ 10 callers
Method
EvaluateDeadlines
EvaluateDeadlines scans without locks, then pins and rechecks each due row. Overdue stays-owed rows are rescanned each tick: recorded rows cost reads,
internal/store/schedule_deadline_eval.go:341
↓ 10 callers
Function
ExtractItemCodeContext
(fieldsJSON string)
internal/models/item.go:813
↓ 10 callers
Function
FindByArtifactKind
FindByArtifactKind returns the collection declaring the given artifact kind. Returns nil when no collection declares it — an unknown kind imports as a
internal/collections/traits.go:54
↓ 10 callers
Method
GetCurrentUser
GetCurrentUser returns the authenticated user's profile.
internal/cli/client.go:2503
↓ 10 callers
Method
GetNeedsNotMine
GetNeedsNotMine returns userID's "not mine" on an item, or nil when there is none. Whether it still holds is the inbox's call (it needs the routing fa
internal/store/needs_not_mine.go:171
↓ 10 callers
Method
Handle
(_ context.Context, r slog.Record)
internal/materialize/supervisor_test.go:200
↓ 10 callers
Method
HasOAuthProvider
HasOAuthProvider returns true if the user has linked the given provider.
internal/models/user.go:161
↓ 10 callers
Function
IsDBOutcomeUnknown
IsDBOutcomeUnknown reports a client-side interruption whose effect on the server is unknown (see above). It is false for anything the server answered
internal/store/busy_error.go:78
↓ 10 callers
Method
Iterator
Iterator return an iterator for RRule
internal/schedule/internal/rrule/rrule.go:926
↓ 10 callers
Method
ListComments
ListComments returns all comments for an item, ordered chronologically.
internal/store/comments.go:436
↓ 10 callers
Method
ListDocumentActivityBeforeTime
ListDocumentActivityBeforeTime returns activities for a document created before the given time, ordered newest-first, limited to `limit` results. Used
internal/store/activities.go:994
↓ 10 callers
Method
ListSchedulesForAgenda
ListSchedulesForAgenda returns the schedules of the open, live items scope allows, by id, and whether there were more than limit. The scope and the te
internal/store/schedule_agenda.go:43
↓ 10 callers
Method
ListYjsSetAside
ListYjsSetAside returns the item's set-aside rows in their original op-log order, raw bytes included. Empty when there are none.
internal/store/yjs_set_aside.go:140
↓ 10 callers
Method
LookupAgentClaim
LookupAgentClaim neither writes nor consumes the credential.
internal/store/agent_claim.go:53
↓ 10 callers
Function
New
New builds the configured provider. A config that selects no provider returns (nil, nil) — the unconfigured case is not an error, and callers branch
internal/decision/config.go:146
↓ 10 callers
Function
New
New returns a dialer that honours the caller's context on TLS as well as plaintext, for the given TLS config and dial timeout. tlsConfig may be nil,
internal/redisdial/redisdial.go:74
↓ 10 callers
Function
NewPoster
NewPoster builds a Poster. private is the admin list (nil on Cloud). The caller's context deadline bounds each Post.
internal/appfetch/appfetch.go:276
↓ 10 callers
Function
NewRoomManagerWithConfig
NewRoomManagerWithConfig is the explicit-config form. Empty config fields fall back to package defaults.
internal/collab/manager.go:369
↓ 10 callers
Function
NewSender
NewSender creates a new email sender.
internal/email/sender.go:40
↓ 10 callers
Function
NormalizeItemTitle
NormalizeItemTitle is the canonical normalization for an item title: leading/trailing whitespace is not part of a title. It exists as its own functio
internal/models/item.go:2176
↓ 10 callers
Function
ParkBefore
ParkBefore returns a ParkSpec that places the park line immediately before itemID.
internal/store/role_park.go:74
↓ 10 callers
Function
Parse
Parse returns the first acceptance-criteria section in body.
internal/acceptance/acceptance.go:93
↓ 10 callers
Function
ParseFieldsDSL
ParseFieldsDSL parses the compact field DSL (key:type[:options];...) into a CollectionSchema. Empty input returns an empty schema with no error. Firs
internal/collections/dsl.go:31
↓ 10 callers
Function
ProductionRegistry
ProductionRegistry returns a registry holding every question set the server ships. ConventionsCommentsSet is defined but NOT shipped: it was retired i
internal/decision/attention.go:140
↓ 10 callers
Method
Publish
Publish sends an event to Redis, which distributes it to all instances. Events are assigned a globally unique sequence ID via Redis INCR so that Last-
internal/events/redis_bus.go:1324
↓ 10 callers
Method
RemoveOAuthProvider
RemoveOAuthProvider removes a provider from the user's oauth_providers list, forgets the provider account it was bound to so a relink may bind a diffe
internal/store/users.go:1016
↓ 10 callers
Function
RenderMarkdownTable
RenderMarkdownTable writes headers, a separator, and one row per entry as a GitHub-flavored markdown table. Every cell is escaped, so callers pass raw
internal/cli/format_markdown.go:78
↓ 10 callers
Method
RoomCount
RoomCount is a test/debug accessor. Production code shouldn't make decisions based on this — the count is racy with grace-timer expirations.
internal/collab/manager.go:1060
↓ 10 callers
Function
RunBrowserBootstrap
RunBrowserBootstrap walks the operator through the browser-based first- admin bootstrap. Returns nil on success (server has flipped to setup_required:
internal/cli/bootstrap.go:92
↓ 10 callers
Method
SetDecisionRunner
SetDecisionRunner attaches the decision runner and wires its registry into the store's write doors. A nil runner (no provider configured) removes any
internal/server/decision_tick.go:93
↓ 10 callers
Method
SetUserEmailVerified
SetUserEmailVerified marks a user's email as verified (email_verified_at = now) WITHOUT a token — for paths that prove email control by other means, e
internal/store/email_verification.go:200
↓ 10 callers
Method
SetUserStripeCustomerID
SetUserStripeCustomerID stores the Stripe customer ID for a user.
internal/store/limits.go:804
↓ 10 callers
Function
SplitFieldEntry
SplitFieldEntry splits one `key=value` field entry into its halves. It exists because six sites parsed that entry independently — `item create`, `ite
internal/items/fieldentry.go:48
↓ 10 callers
Method
String
()
internal/server/task4856_native_pending_link_test.go:27
↓ 10 callers
Function
ValidateFieldsDetailedWithDrops
ValidateFieldsDetailedWithDrops is ValidateFieldsDetailed plus the list of schema-declared keys whose INJECTED DEFAULT was discarded (BUG-3079). THE
internal/items/validate.go:162
↓ 10 callers
Method
VisibleCollectionIDs
VisibleCollectionIDs returns the set of collection IDs a member can see. Returns nil if the member has "all" access (meaning no filtering needed). Sys
internal/store/workspace_members.go:598
↓ 10 callers
Method
access
()
internal/store/commitment_links_pg_test.go:51
↓ 10 callers
Function
allStatus
(msgs []notify.Message, status string)
internal/server/task3939b_push_fixture_test.go:59
↓ 10 callers
Function
appCeilingAllows
appCeilingAllows reports whether a collection is inside the request's app read ceiling. Outside the app API (no app context) everything passes.
internal/server/app_api.go:560
↓ 10 callers
Method
appFenceSpec
appFenceSpec is the appstore fence for this request.
internal/server/app_api.go:105
↓ 10 callers
Function
assertItemContent
(t *testing.T, srv *Server, itemID, want string)
internal/server/handlers_items_collab_versions_test.go:641
↓ 10 callers
Function
assertStartWrite
(t *testing.T, f *startFixture, it *models.Item, rr *httptest.ResponseRecorder, demoted bool, mode string)
internal/server/task4914_start_demote_test.go:31
↓ 10 callers
Method
assertStaysOpen
(t *testing.T, done <-chan struct{}, ticks int)
internal/server/bug3837_mcp_credential_tick_test.go:165
↓ 10 callers
Function
assertTransformDenied
assertTransformDenied pins the shared denial: 404 with the exact body every other attachment denial writes.
internal/server/handlers_attachments_transform_authz_test.go:120
↓ 10 callers
Function
audienceMatchingStrategy
audienceMatchingStrategy returns a fosite.AudienceMatchingStrategy that enforces "the requested audience must be exactly one of the configured canonic
internal/oauth/audience.go:115
↓ 10 callers
Method
browser
browser sends a request as the browser would, with the pending-link cookie when tok is set.
internal/server/task4745_pending_link_test.go:104
↓ 10 callers
Method
buildChildrenDoneExpr
buildChildrenDoneExpr compiles a set of per-collection done filters into a single SQL boolean expression plus ordered args. `itemAlias` is the item-ta
internal/store/items.go:5426
↓ 10 callers
Function
buildPlainShell
buildPlainShell builds the plain-text body for transactional emails. Self-hosted output is byte-equivalent to the prior templates. Cloud output adds a
internal/email/shell.go:93
↓ 10 callers
Method
cal
(t *testing.T, u *models.User, coll, query string)
internal/server/handlers_calendar_test.go:22
↓ 10 callers
Function
calleeText
(src: AstSource, n: Node)
web/src/lib/components/items/childIdentityFencePopulation.test.ts:327
↓ 10 callers
Function
chatGPTMountServer
(t *testing.T, enabled bool)
internal/server/task3321_u2b_mount_test.go:27
↓ 10 callers
Function
chatSeenOwner
TASK-4071: the chat-seen log a plugin tails to show chat to the human.
internal/cli/chat_seen_test.go:16
↓ 10 callers
Method
check
check refuses an over-budget change. The error is marked as proven rolled back: it is returned before any COMMIT is sent.
internal/store/commitment_cascade.go:53
↓ 10 callers
Function
coerceSchema
The schema every case below is coerced against.
internal/items/coerce_test.go:11
↓ 10 callers
Method
computeSSEVisibility
computeSSEVisibility resolves the caller's current visibility snapshot. Safe to call repeatedly on a live SSE connection — each call fetches the lates
internal/server/handlers_events.go:894
↓ 10 callers
Function
configureBootstrapToken
configureBootstrapToken seeds a known token on the server so tests don't depend on the random generator. The on-disk file is created in a temp dir so
internal/server/handlers_auth_bootstrap_token_test.go:34
↓ 10 callers
Function
connectArmedWatchStream
connectArmedWatchStream is connectWatchStream with the PLAN-2613 S1 `armed=true` query param set — the shape a consenting client uses. Push delivery i
internal/server/handlers_watch_events_test.go:47
↓ 10 callers
Function
cookieSecret
cookieSecret returns the named cookie's value. ok is false when the cookie is absent; a present cookie may still be empty (IsZero).
internal/server/request_credentials.go:28
↓ 10 callers
Function
countsGot
(days []AgendaDayCount)
internal/store/agenda_counts_test.go:39
↓ 10 callers
Function
createCmd
--- create ---
cmd/pad/cmd_item.go:191
↓ 10 callers
Method
deadlineStateTx
deadlineStateTx is the decision under deadlineMissCandidateTx with its two "nil" answers told apart. d is nil when the schedule has no native deadline
internal/store/schedule_deadline_eval.go:501
↓ 10 callers
Function
deferNext
(fn: (...args: never[]) => unknown)
web/src/lib/components/items/itemDetailIdentityLoad.svelte.test.ts:259
↓ 10 callers
Function
deliveredCount
deliveredCount reads pushResponse.DeliveredSessions, failing the test if it is NULL. Null is not zero on this field — it means "published, but the pr
internal/server/handlers_push_test.go:608
↓ 10 callers
Method
deriveThumbnails
deriveThumbnails generates thumb-sm and thumb-md variants for the uploaded image identified by parentID. Idempotent and tolerant of every failure mode
internal/server/handlers_attachments_thumbnails.go:106
↓ 10 callers
Method
destroy
()
web/src/lib/components/items/itemDetailAddDate.svelte.test.ts:51
↓ 10 callers
Function
dialWSBracket
dialWSBracket joins as a bracket-capable participant (`?applier_bracket=1`) so the conn can be durably confirmed by a restore's finalization (BUG-2276
internal/collab/manager_test.go:470
↓ 10 callers
Function
doLoopbackRequest
(srv *Server, method, path string, body interface{})
internal/server/server_test.go:45
↓ 10 callers
Function
envelopeFrom
envelopeFrom reads the ErrorEnvelope back out of an MCP error result's structured content. Used by classifyHTTPStatus's 404 workspace path so we can l
internal/mcp/errors.go:490
↓ 10 callers
Function
eq
(t *testing.T, what string, got []string, want ...string)
internal/server/handlers_calendar_test.go:70
↓ 10 callers
Function
expectEditorMounted
(page: Page)
web/e2e/lib/collab-helpers.ts:105
↓ 10 callers
Method
featureCountOn
featureCountOn returns the current count for a workspace-scoped feature, parameterized over the query surface so the same COUNTs serve both CheckLimit
internal/store/limits.go:432
↓ 10 callers
Method
getCommentQ
getCommentQ is GetComment against any Queryer, so a caller holding a transaction can read the row it just wrote. The reason is correctness before it
internal/store/comments.go:341
↓ 10 callers
Function
getConfiguredConfig
()
cmd/pad/configure.go:69
← previous
next →
1,601–1,700 of 31,743, ranked by callers