MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,743 in github.com/PerpetualSoftware/pad

↓ 9 callersFunctiontestChange
(id, item, sc string)
internal/store/commitment_bundle_v2_test.go:61
↓ 9 callersFunctiontitles
(items []models.Item)
internal/store/items_new_item_top_test.go:70
↓ 9 callersFunctiontooLargeResultIfExceeded
(cmdKey string, err error)
internal/mcp/response_cap.go:146
↓ 9 callersFunctionu11Fixture
(t *testing.T)
internal/server/task3414_item_actions_test.go:27
↓ 9 callersMethodunconfirmedCount
()
internal/events/observer_test.go:101
↓ 9 callersFunctionwaitForAccessSettled
(page: Page)
web/e2e/lib/permission-walk.ts:304
↓ 9 callersFunctionwaitKick
(t *testing.T, ch <-chan struct{}, what string)
internal/server/task3365_access_kick_test.go:106
↓ 9 callersFunctionwithinWindow
withinWindow is a cutoff an hour in the past: a row tombstoned now is inside the restore window.
internal/store/attachments_restore_test.go:81
↓ 9 callersMethodworkspaceLimitMintOpts
workspaceLimitMintOpts is the option set for a workspace-scoped limited insert (items, members, webhooks): the limit applies under limitsApply, the sa
internal/server/handlers_cloud.go:1719
↓ 9 callersFunctionwriteAppStoreError
writeAppStoreError maps an appstore refusal to its response.
internal/server/app_api_write.go:111
↓ 9 callersMethodwriteScheduleItemGone
writeScheduleItemGone answers a write whose item went away under it (a move archived it while the write waited): the answer the door's own pre-check g
internal/server/handlers_schedules.go:205
↓ 8 callersMethod#publish
(beyond: number | null)
web/src/lib/stores/chatThread.svelte.ts:192
↓ 8 callersMethodAgendaOutstanding
AgendaOutstanding reads one outstanding occurrence without a calendar window. It shares the same role resolver with ExpandAgendaCut, never a recurrenc
internal/store/agenda_roles.go:97
↓ 8 callersMethodAllowedWorkspaces
AllowedWorkspaces returns the workspace allow-list stored in session.Extra at consent time (TASK-952). Three return shapes matter to callers: - nil —
internal/oauth/session.go:101
↓ 8 callersMethodApply
Apply repairs a JSON body's NUL-carrying values when the flag is set, and returns the bytes the gate should judge. A nil tally, or one with the flag
internal/server/import_nul_repair.go:75
↓ 8 callersMethodBackfillWikiLinks
BackfillWikiLinks scans every item with non-empty content and re-parses its body to populate `item_wiki_links`. Designed to be called from server star
internal/store/wiki_links_backfill.go:76
↓ 8 callersMethodBeginSnapshot
BeginSnapshot opens a transaction that is both the write lock and a single read snapshot for everything run on it (BUG-3072). The DSN carries `_txloc
internal/store/store.go:429
↓ 8 callersMethodBrowserURL
BrowserURL returns a URL suitable for displaying to humans in CLI prompts (e.g. "Or open the web UI at X"). It behaves like BaseURL except that when t
internal/config/config.go:1095
↓ 8 callersMethodBusyWorkers
BusyWorkers reads this user's activity in one batch, ignoring empty and duplicate workers and expired records. On error, known states may still be ret
internal/server/session_presence.go:320
↓ 8 callersFunctionCanonicalTraitsForSlug
CanonicalTraitsForSlug returns the kernel-trait declarations that a collection with the given slug carries by default, or the zero value when the slug
internal/collections/traits.go:140
↓ 8 callersFunctionChatSeenPath
ChatSeenPath is the log for one harness pid.
internal/cli/chat_seen.go:55
↓ 8 callersFunctionCheckLink
CheckLink checks an insertion and every structural footprint it can enlarge. A nil graph is empty. Use the same limits here and in Plan for admission
internal/schedule/links.go:272
↓ 8 callersMethodCheckUserLimit
CheckUserLimit checks a user-level limit (not workspace-scoped), such as total workspace count or total API tokens. This is an ADVISORY read on the p
internal/store/limits.go:201
↓ 8 callersMethodConsumePasswordReset
ConsumePasswordReset atomically validates and marks a reset token as used. Returns the user if the token is valid, unused, and not expired. Returns ni
internal/store/password_resets.go:84
↓ 8 callersMethodCreateAppUserTx
CreateAppUserTx creates the bot principal an installed app acts as when it acts as itself (SPEC-6 §3, TASK-3392). It is the only path that writes kind
internal/store/users.go:2359
↓ 8 callersMethodCurrent
Current is the offer to show now: Available with at least one interval, or unavailable. The returned value is a copy.
internal/billing/offer.go:155
↓ 8 callersMethodDeleteScheduleChecked
DeleteScheduleChecked is DeleteSchedule for a caller that has decided whether the actor may take a deadline away. A native schedule that has a deadlin
internal/store/schedules.go:1214
↓ 8 callersMethodEncryptionKeyFile
EncryptionKeyFile returns the on-disk path where an auto-generated encryption key is persisted. Operator-provided keys (PAD_ENCRYPTION_KEY env, encryp
internal/config/config.go:1115
↓ 8 callersMethodError
()
internal/appstore/items.go:36
↓ 8 callersMethodExec
(query string, args ...any)
internal/store/workspace_tabs.go:391
↓ 8 callersMethodExpireAgentSignups
ExpireAgentSignups deletes up to limit expired unclaimed accounts. A claim and an expiry each conditionally delete the agent_signups row under the sam
internal/store/agent_signup_expiry.go:24
↓ 8 callersMethodFailDecisionJob
FailDecisionJob records a failed attempt and holds the job until retryAfter has passed. The lease doubles as the backoff: the row stays claimed by thi
internal/store/decisions.go:366
↓ 8 callersMethodFetchBytes
(ctx context.Context, args []string)
internal/mcp/resources.go:57
↓ 8 callersMethodGetBlocksEdges
GetBlocksEdges returns every `blocks` link in the workspace whose source and target items are both live (non-deleted), newest link first. The created_
internal/store/items.go:6133
↓ 8 callersMethodGetChildItems
GetChildItems returns all non-deleted child items linked to the given parent via item_links. Returns children from any collection. A child in a soft-
internal/store/items.go:5651
↓ 8 callersMethodGetChildItemsForParents
GetChildItemsForParents returns the live child items for each of the given parent item IDs, grouped by parent ID, in ONE query — collapsing the per-pa
internal/store/items.go:6038
↓ 8 callersMethodGetItemBuiltinOrigin
GetItemBuiltinOrigin returns the built-in an item was made from, or nil when it was not made from one.
internal/store/builtin_origin.go:50
↓ 8 callersMethodGetItemProgress
--- Child Item Progress --- GetItemProgress counts total and done child items linked to a parent via item_links. "Done" means the child item's done fi
internal/store/items.go:5189
↓ 8 callersMethodHTTPS
HTTPS reports whether the auth-server URL is https, which is what makes OAuth available (PLAN-2310 DR-4: http deployments are PAT-only).
internal/config/mcp.go:66
↓ 8 callersMethodHydrateRelationTargetsQ
HydrateRelationTargetsQ resolves the stored `relation` values on a batch of items into {id, ref, title} entries (PLAN-2857 U6). BATCHED ON PURPOSE. A
internal/store/relation_referents.go:2070
↓ 8 callersMethodInstallState
InstallState returns an install's state, for the HTTP layer's answers.
internal/store/app_lifecycle.go:404
↓ 8 callersFunctionIsContentStateStale
IsContentStateStale reports whether an Item.ContentState value says the stored body is behind edits that exist elsewhere, for any reason. It is the on
internal/models/item.go:326
↓ 8 callersMethodIsExpired
IsExpired reports whether an invitation is past its expiration window. Invitations created before the expires_at migration (nil ExpiresAt) are treated
internal/models/user.go:250
↓ 8 callersMethodIsInstallClient
IsInstallClient reports whether the client belongs to an installed app.
internal/models/oauth.go:45
↓ 8 callersFunctionIsReservedPrincipalEmail
IsReservedPrincipalEmail reports whether email is in either reserved domain (bot principals or unclaimed accounts), compared the same way as IsReserve
internal/models/user.go:97
↓ 8 callersMethodJSONExtractText
JSONExtractText returns SQL to extract a text value from a JSON column. SQLite: json_extract(col, '$.key') PostgreSQL: col->>'key'
internal/store/dialect.go:34
↓ 8 callersMethodKey
Key is the position the cursor names.
internal/needs/cursor.go:161
↓ 8 callersMethodListCollections
--- Collections ---
internal/cli/client.go:306
↓ 8 callersMethodListCommentsBeforeTime
ListCommentsBeforeTime returns comments for an item created before the given time, ordered newest-first, limited to `limit` results. Used for cursor-b
internal/store/comments.go:464
↓ 8 callersMethodListConversations
ListConversations returns the member's inbox, with one batched read of the last messages; deleted previews remain tombstones (TASK-4038).
internal/store/conversations.go:737
↓ 8 callersMethodListForUser
ListForUser returns userID's live sessions, oldest connection first. The returned slice is a copy and is safe to retain. THE ERROR IS NOT DECORATION,
internal/server/session_presence.go:349
↓ 8 callersMethodListPushDevices
ListPushDevices returns userID's devices, oldest first by updated_at.
internal/store/push_devices.go:177
↓ 8 callersMethodListWorkspaceMembers
ListWorkspaceMembers returns all members of a workspace, enriched with user name and email from a join.
internal/store/workspace_members.go:562
↓ 8 callersMethodLookupEmailVerification
LookupEmailVerification performs a read-only validation of a verification token and returns the associated user WITHOUT consuming the token. Mirrors L
internal/store/email_verification.go:68
↓ 8 callersMethodMarkNeedsNotMine
MarkNeedsNotMine records userID's "not mine" on an item, replacing any earlier one and deleting any snooze of theirs on it in the same transaction. ma
internal/store/needs_not_mine.go:87
↓ 8 callersFunctionNativeItem
NativeItem wraps item so JSON marshaling emits `fields` as a native JSON object and `tags` as a native JSON array, leaving every other key unchanged.
internal/cli/native_item.go:23
↓ 8 callersFunctionNewInstrumentedBus
NewInstrumentedBus wraps an EventBus with Prometheus instrumentation.
internal/metrics/instrumented_bus.go:25
↓ 8 callersFunctionNewPostgres
NewPostgres creates a Store backed by PostgreSQL. The connStr should be a PostgreSQL connection string (e.g. "postgres://user:pass@host/db").
internal/store/store.go:643
↓ 8 callersFunctionNewRateLimiters
NewRateLimiters creates rate limiters with sensible defaults.
internal/server/middleware_ratelimit.go:476
↓ 8 callersFunctionNewWithReplay
NewWithReplay creates a new in-memory EventBus with custom replay settings.
internal/events/bus.go:730
↓ 8 callersFunctionParkAtTop
ParkAtTop returns a ParkSpec that parks the entire queue from the top.
internal/store/role_park.go:71
↓ 8 callersFunctionParse
Parse validates a namespace and returns the Keys for it. An UNSET namespace — the empty string — is valid and yields Default. A value that is present
internal/redisns/redisns.go:123
↓ 8 callersFunctionParseChatTarget
ParseChatTarget accepts an owner-scoped conversation number (C12 or 12) or a DM agent key (@name). Chat never resolves against a workspace.
internal/cli/chat.go:13
↓ 8 callersMethodPreviewScheduleCarry
PreviewScheduleCarry is what the copy preflight reports: the same plan the copy runs, read without a lock and written nowhere. assignee is the assign
internal/store/schedule_carry_copy.go:441
↓ 8 callersMethodPruneItemOpLogTx
PruneItemOpLogTx deletes an item's ENTIRE op-log inside the caller's transaction. Used by version-restore (BUG-2264): the restore's canonical items.co
internal/store/yjs_updates.go:715
↓ 8 callersMethodPruneSweep
PruneSweep finds every item whose ENTIRE op-log is older than `minAge` and prunes the whole op-log for those items under the per-item lock. Returns a
internal/collab/manager.go:798
↓ 8 callersMethodQContext
QContext is Q with every read bound to ctx (BUG-3632).
internal/store/store.go:1058
↓ 8 callersMethodRecordDelivery
RecordDelivery stores status for (eventID, webhookID), adding attempts requests actually sent (a refusal or a rate-limited deferral sends none). A ter
internal/store/webhook_deliveries.go:58
↓ 8 callersFunctionRefreshMarkerPath
RefreshMarkerPath is where the marker lives for this config: the DataDir the PID file is in. The script resolves the same directory by the same rule (
internal/cli/refresh_marker.go:45
↓ 8 callersFunctionRelationKeysPresent
RelationKeysPresent snapshots which relation keys a field map holds, for callers that must tell "this value was here before validation" from "this val
internal/store/relation_referents.go:1625
↓ 8 callersFunctionRequiredRelationIssues
RequiredRelationIssues returns the subset of issues whose field the schema declares REQUIRED. A dropped value in a required relation field cannot be
internal/store/relation_referents.go:710
↓ 8 callersMethodReservePendingInstall
ReservePendingInstall takes a reservation for an install the owner is about to fetch, or refuses with ErrPendingLimit. No fetch may begin without one.
internal/store/app_pending.go:94
↓ 8 callersFunctionResolve
Resolve is Deliver(WaitingOn(c)): the people the item is routed to, or ok=false when it reaches nobody.
internal/needs/needs.go:303
↓ 8 callersMethodRevokeUserOAuthConnection
RevokeUserOAuthConnection invalidates every token in the OAuth grant chain identified by requestID, after verifying the chain belongs to userID. Impl
internal/store/connected_apps.go:294
↓ 8 callersMethodRotateUserSessions
RotateUserSessions is a credential change's session rotation (password change, 2FA disable, provider unlink) as ONE transaction: it mints the replacem
internal/store/sessions.go:330
↓ 8 callersFunctionSanitizeMarkdownText
Markdown list rendering (#898). The `--format markdown` branch of the list commands writes a GitHub-flavored markdown table. Two rules separate it fr
internal/cli/format_markdown.go:32
↓ 8 callersMethodSend
Send sends an email using the default from address/name.
internal/email/sender.go:132
↓ 8 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
internal/mcp/dispatch_http_advanced_test.go:909
↓ 8 callersMethodSetBootstrapToken
SetBootstrapToken wires the in-memory token + on-disk path into the Server. Called once at startup from cmd/pad/main.go after EnsureBootstrapToken suc
internal/server/bootstrap.go:146
↓ 8 callersFunctionShorthand
Shorthand returns the rule for a cadence name such as "weekdays". The name is trimmed and case-insensitive.
internal/schedule/shorthand.go:21
↓ 8 callersMethodStatus
Status returns the cached probe result.
internal/server/redis_health.go:251
↓ 8 callersMethodString
()
internal/events/bus.go:193
↓ 8 callersMethodSubscriberCount
SubscriberCount returns the number of active subscribers for the given item. Useful for room-manager TTL accounting (TASK-1255 — when the count hits 0
internal/collab/bus.go:132
↓ 8 callersMethodSurfacedDecisions
SurfacedDecisions is the item's latest answers that its set would surface (TASK-3618, for the item brief): the question is current and the answer reac
internal/decision/runner.go:814
↓ 8 callersMethodUpdateItemWithPreCheck
(string, models.ItemUpdate, C, ...store.MutationOption)
internal/appstore/testdata/genericnested/x.go:13
↓ 8 callersMethodUpdateWorkspaceMemberRole
UpdateWorkspaceMemberRole changes a member's role in a workspace.
internal/store/workspace_members.go:1070
↓ 8 callersMethodUpgradeAppInstall
UpgradeAppInstall applies a reviewed upgrade in ONE transaction. Locks (Postgres), in this order: the owner's users row FOR SHARE (as provisioning, a
internal/store/app_upgrade.go:126
↓ 8 callersFunctionValidateItemTitle
ValidateItemTitle checks an ALREADY-NORMALIZED item title at write time. Returns a message suitable for a 400 response, or "" when acceptable. Caller
internal/models/item.go:2194
↓ 8 callersFunctionWithAPITokenAuth
WithAPITokenAuth marks ctx as authenticated via an API token, the same way TokenAuth does on the Bearer-token path. Required when dispatching through
internal/server/context.go:46
↓ 8 callersFunctionactAs
(context: BrowserContext, account: WalkAccount)
web/e2e/lib/permission-walk.ts:267
↓ 8 callersMethodadd
add inserts an attachment row of size bytes through the limited door. bound=false leaves it unattached (the `upload -` shape).
internal/store/task3619_storage_limit_test.go:64
↓ 8 callersFunctionaddPadEntryTOML
--- TOML config path -------------------------------------------- Codex nests its MCP servers in a TOML `[mcp_servers.pad]` table, so the JSON reader
internal/mcp/install.go:409
↓ 8 callersFunctionaddSearchComment
(t *testing.T, s *Store, item *models.Item, body string)
internal/store/search_comments_test.go:13
↓ 8 callersMethodadvance
(d time.Duration)
internal/watchevents/heartbeat_test.go:31
↓ 8 callersMethodagendaNow
agendaNow is the clock of the agenda reads. Tests move it.
internal/server/bootstrap_agenda.go:91
↓ 8 callersFunctionagentNameFixture
TASK-2760. A comment's agent name lives on the `commented` activity its activity_id points at, and nowhere else; the list queries LEFT JOIN it on so e
internal/store/comments_agent_name_test.go:16
↓ 8 callersFunctionaliasCollection
(t *testing.T, s *Store, ws, prefix string)
internal/store/item_ref_aliases_test.go:12
↓ 8 callersFunctionappWriteAllows
appWriteAllows reports whether a collection is one the app may write: a companion. Outside the app API everything passes.
internal/server/app_api.go:762
↓ 8 callersMethodappendAgendaWork
(run *agendaRead, workspaceID string, scope store.PendingReminderScope)
internal/server/agenda_work.go:49
↓ 8 callersFunctionapplyConfigureValues
(cfg *config.Config, values *configureValues)
cmd/pad/configure.go:128
← previousnext →2,001–2,100 of 31,743, ranked by callers