MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 11 callersFunctiontask3462GetState
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 callersFunctiontestPNG
testPNG is a small valid PNG.
internal/server/task3401_app_api_test.go:145
↓ 11 callersFunctiontimeText
(t time.Time)
internal/store/app_pending.go:90
↓ 11 callersMethodtryCreate
(t *testing.T, in models.ScheduleCreate)
internal/store/schedule_bounds_test.go:39
↓ 11 callersMethodvalidateCloudSecret
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 callersFunctionvalidateConversationActor
TASK-4038: reject malformed actor identities before they reach either SQL driver.
internal/store/conversations.go:77
↓ 11 callersFunctionvalidatePasswordStrength
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 callersFunctionwaitForEvent
waitForEvent reads from the event channel with a timeout.
internal/server/handlers_events_test.go:79
↓ 11 callersFunctionwallOf
wallOf is the wall reading of an instant already in its zone.
internal/store/schedule_completion.go:131
↓ 11 callersFunctionwantRemindAt
(t *testing.T, f *schedFixture, sc *models.ItemSchedule, want, what string)
internal/store/schedule_target_arming_test.go:53
↓ 11 callersFunctionwriteChatError
(w http.ResponseWriter, err error)
internal/server/handlers_chat.go:46
↓ 11 callersMethodwriteGraphError
(w http.ResponseWriter, r *http.Request, err error)
internal/server/handlers_commitment_links.go:200
↓ 10 callersMethodAdmitAppDelivery
(webhookID, event, collectionID, occurredAt, deliveryID string)
internal/webhooks/app_delivery.go:49
↓ 10 callersFunctionAppendDecisionLogEntry
(fieldsJSON string, entry ItemDecisionLogEntry)
internal/models/item.go:1162
↓ 10 callersMethodApply
Apply derives the child date as a UTC instant.
internal/schedule/links.go:86
↓ 10 callersMethodApproveCLIAuthSession
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 callersFunctionChoice
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 callersMethodClaimIdempotencyKey
ClaimIdempotencyKey claims (workspace, user, key) for a request whose canonical hash is requestHash, or reports why it cannot.
internal/store/idempotency.go:54
↓ 10 callersMethodConsumeEmailVerification
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 callersMethodCreateWatch
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 callersFunctionDetectWorkspace
DetectWorkspace walks up the directory tree from cwd looking for .pad.toml.
internal/cli/workspace.go:54
↓ 10 callersMethodDispatch
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 callersMethodEvaluateDeadlines
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 callersFunctionExtractItemCodeContext
(fieldsJSON string)
internal/models/item.go:813
↓ 10 callersFunctionFindByArtifactKind
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 callersMethodGetCurrentUser
GetCurrentUser returns the authenticated user's profile.
internal/cli/client.go:2503
↓ 10 callersMethodGetNeedsNotMine
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 callersMethodHandle
(_ context.Context, r slog.Record)
internal/materialize/supervisor_test.go:200
↓ 10 callersMethodHasOAuthProvider
HasOAuthProvider returns true if the user has linked the given provider.
internal/models/user.go:161
↓ 10 callersFunctionIsDBOutcomeUnknown
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 callersMethodIterator
Iterator return an iterator for RRule
internal/schedule/internal/rrule/rrule.go:926
↓ 10 callersMethodListComments
ListComments returns all comments for an item, ordered chronologically.
internal/store/comments.go:436
↓ 10 callersMethodListDocumentActivityBeforeTime
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 callersMethodListSchedulesForAgenda
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 callersMethodListYjsSetAside
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 callersMethodLookupAgentClaim
LookupAgentClaim neither writes nor consumes the credential.
internal/store/agent_claim.go:53
↓ 10 callersFunctionNew
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 callersFunctionNew
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 callersFunctionNewPoster
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 callersFunctionNewRoomManagerWithConfig
NewRoomManagerWithConfig is the explicit-config form. Empty config fields fall back to package defaults.
internal/collab/manager.go:369
↓ 10 callersFunctionNewSender
NewSender creates a new email sender.
internal/email/sender.go:40
↓ 10 callersFunctionNormalizeItemTitle
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 callersFunctionParkBefore
ParkBefore returns a ParkSpec that places the park line immediately before itemID.
internal/store/role_park.go:74
↓ 10 callersFunctionParse
Parse returns the first acceptance-criteria section in body.
internal/acceptance/acceptance.go:93
↓ 10 callersFunctionParseFieldsDSL
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 callersFunctionProductionRegistry
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 callersMethodPublish
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:1374
↓ 10 callersMethodRemoveOAuthProvider
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 callersFunctionRenderMarkdownTable
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 callersMethodRoomCount
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 callersFunctionRunBrowserBootstrap
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 callersMethodSetDecisionRunner
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 callersMethodSetUserStripeCustomerID
SetUserStripeCustomerID stores the Stripe customer ID for a user.
internal/store/limits.go:804
↓ 10 callersFunctionSplitFieldEntry
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 callersMethodString
()
internal/server/task4856_native_pending_link_test.go:27
↓ 10 callersFunctionValidateFieldsDetailedWithDrops
ValidateFieldsDetailedWithDrops is ValidateFieldsDetailed plus the list of schema-declared keys whose INJECTED DEFAULT was discarded (BUG-3079). THE
internal/items/validate.go:162
↓ 10 callersMethodVisibleCollectionIDs
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 callersMethodaccess
()
internal/store/commitment_links_pg_test.go:51
↓ 10 callersFunctionallStatus
(msgs []notify.Message, status string)
internal/server/task3939b_push_fixture_test.go:59
↓ 10 callersFunctionappCeilingAllows
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 callersMethodappFenceSpec
appFenceSpec is the appstore fence for this request.
internal/server/app_api.go:105
↓ 10 callersFunctionassertItemContent
(t *testing.T, srv *Server, itemID, want string)
internal/server/handlers_items_collab_versions_test.go:641
↓ 10 callersFunctionassertStartWrite
(t *testing.T, f *startFixture, it *models.Item, rr *httptest.ResponseRecorder, demoted bool, mode string)
internal/server/task4914_start_demote_test.go:31
↓ 10 callersMethodassertStaysOpen
(t *testing.T, done <-chan struct{}, ticks int)
internal/server/bug3837_mcp_credential_tick_test.go:165
↓ 10 callersFunctionassertTransformDenied
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 callersFunctionaudienceMatchingStrategy
audienceMatchingStrategy returns a fosite.AudienceMatchingStrategy that enforces "the requested audience must be exactly one of the configured canonic
internal/oauth/audience.go:115
↓ 10 callersMethodbrowser
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 callersMethodbuildChildrenDoneExpr
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 callersFunctionbuildPlainShell
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 callersMethodcal
(t *testing.T, u *models.User, coll, query string)
internal/server/handlers_calendar_test.go:22
↓ 10 callersFunctioncalleeText
(src: AstSource, n: Node)
web/src/lib/components/items/childIdentityFencePopulation.test.ts:327
↓ 10 callersFunctionchatGPTMountServer
(t *testing.T, enabled bool)
internal/server/task3321_u2b_mount_test.go:27
↓ 10 callersFunctionchatSeenOwner
TASK-4071: the chat-seen log a plugin tails to show chat to the human.
internal/cli/chat_seen_test.go:16
↓ 10 callersMethodcheck
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 callersFunctioncoerceSchema
The schema every case below is coerced against.
internal/items/coerce_test.go:11
↓ 10 callersMethodcomputeSSEVisibility
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 callersFunctionconfigureBootstrapToken
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 callersFunctionconnectArmedWatchStream
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 callersFunctioncookieSecret
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 callersFunctioncountsGot
(days []AgendaDayCount)
internal/store/agenda_counts_test.go:39
↓ 10 callersFunctioncreateCmd
--- create ---
cmd/pad/cmd_item.go:191
↓ 10 callersMethoddeadlineStateTx
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 callersFunctiondeferNext
(fn: (...args: never[]) => unknown)
web/src/lib/components/items/itemDetailIdentityLoad.svelte.test.ts:259
↓ 10 callersFunctiondeliveredCount
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 callersMethodderiveThumbnails
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 callersMethoddestroy
()
web/src/lib/components/items/itemDetailAddDate.svelte.test.ts:51
↓ 10 callersFunctiondialWSBracket
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 callersFunctiondoLoopbackRequest
(srv *Server, method, path string, body interface{})
internal/server/server_test.go:45
↓ 10 callersFunctionenvelopeFrom
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 callersFunctioneq
(t *testing.T, what string, got []string, want ...string)
internal/server/handlers_calendar_test.go:70
↓ 10 callersFunctionexpectEditorMounted
(page: Page)
web/e2e/lib/collab-helpers.ts:105
↓ 10 callersMethodfeatureCountOn
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 callersMethodgetCommentQ
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 callersFunctiongoodOverride
()
internal/store/schedule_link_import_test.go:294
↓ 10 callersFunctiongoto
(_url: string | URL, _opts?: unknown)
web/src/test/mocks/app-navigation.ts:15
↓ 10 callersFunctiongzipTar
(t *testing.T, entries []bundleEntry)
internal/server/bug3354_import_bundle_bomb_test.go:25
↓ 10 callersMethodholds
(t *testing.T, u *models.User, at time.Time)
internal/store/needs_snooze_test.go:80
↓ 10 callersFunctionisEpochReactive
(read: () => number, bump: () => void)
web/src/test/identityEpochMock.svelte.ts:88
↓ 10 callersMethodisItemVisibleToGuest
isItemVisibleToGuest checks if an item is visible given grant-based access, considering both full-collection grants and individual item grants. When f
internal/server/server.go:3886
↓ 10 callersFunctionisRelationType
(type: string | undefined | null)
web/src/lib/items/relationFieldTypes.ts:37
← previousnext →1,601–1,700 of 31,685, ranked by callers