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
↓ 9 callers
Function
testChange
(id, item, sc string)
internal/store/commitment_bundle_v2_test.go:61
↓ 9 callers
Function
titles
(items []models.Item)
internal/store/items_new_item_top_test.go:70
↓ 9 callers
Function
tooLargeResultIfExceeded
(cmdKey string, err error)
internal/mcp/response_cap.go:146
↓ 9 callers
Function
u11Fixture
(t *testing.T)
internal/server/task3414_item_actions_test.go:27
↓ 9 callers
Method
unconfirmedCount
()
internal/events/observer_test.go:101
↓ 9 callers
Function
waitForAccessSettled
(page: Page)
web/e2e/lib/permission-walk.ts:304
↓ 9 callers
Function
waitKick
(t *testing.T, ch <-chan struct{}, what string)
internal/server/task3365_access_kick_test.go:106
↓ 9 callers
Function
withinWindow
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 callers
Method
workspaceLimitMintOpts
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 callers
Function
writeAppStoreError
writeAppStoreError maps an appstore refusal to its response.
internal/server/app_api_write.go:111
↓ 9 callers
Method
writeScheduleItemGone
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 callers
Method
#publish
(beyond: number | null)
web/src/lib/stores/chatThread.svelte.ts:192
↓ 8 callers
Method
AgendaOutstanding
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 callers
Method
AllowedWorkspaces
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 callers
Method
Apply
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 callers
Method
BackfillWikiLinks
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 callers
Method
BeginSnapshot
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 callers
Method
BrowserURL
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 callers
Method
BusyWorkers
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 callers
Function
CanonicalTraitsForSlug
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 callers
Function
ChatSeenPath
ChatSeenPath is the log for one harness pid.
internal/cli/chat_seen.go:55
↓ 8 callers
Function
CheckLink
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 callers
Method
CheckUserLimit
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 callers
Method
ConsumePasswordReset
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 callers
Method
CreateAppUserTx
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 callers
Method
Current
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 callers
Method
DeleteScheduleChecked
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 callers
Method
EncryptionKeyFile
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 callers
Method
Error
()
internal/appstore/items.go:36
↓ 8 callers
Method
Exec
(query string, args ...any)
internal/store/workspace_tabs.go:391
↓ 8 callers
Method
ExpireAgentSignups
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 callers
Method
FailDecisionJob
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 callers
Method
FetchBytes
(ctx context.Context, args []string)
internal/mcp/resources.go:57
↓ 8 callers
Method
GetBlocksEdges
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 callers
Method
GetChildItems
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 callers
Method
GetChildItemsForParents
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 callers
Method
GetItemBuiltinOrigin
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 callers
Method
GetItemProgress
--- 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 callers
Method
HTTPS
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 callers
Method
HydrateRelationTargetsQ
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 callers
Method
InstallState
InstallState returns an install's state, for the HTTP layer's answers.
internal/store/app_lifecycle.go:404
↓ 8 callers
Function
IsContentStateStale
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 callers
Method
IsExpired
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 callers
Method
IsInstallClient
IsInstallClient reports whether the client belongs to an installed app.
internal/models/oauth.go:45
↓ 8 callers
Function
IsReservedPrincipalEmail
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 callers
Method
JSONExtractText
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 callers
Method
Key
Key is the position the cursor names.
internal/needs/cursor.go:161
↓ 8 callers
Method
ListCollections
--- Collections ---
internal/cli/client.go:306
↓ 8 callers
Method
ListCommentsBeforeTime
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 callers
Method
ListConversations
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 callers
Method
ListForUser
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 callers
Method
ListPushDevices
ListPushDevices returns userID's devices, oldest first by updated_at.
internal/store/push_devices.go:177
↓ 8 callers
Method
ListWorkspaceMembers
ListWorkspaceMembers returns all members of a workspace, enriched with user name and email from a join.
internal/store/workspace_members.go:562
↓ 8 callers
Method
LookupEmailVerification
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 callers
Method
MarkNeedsNotMine
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 callers
Function
NativeItem
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 callers
Function
NewInstrumentedBus
NewInstrumentedBus wraps an EventBus with Prometheus instrumentation.
internal/metrics/instrumented_bus.go:25
↓ 8 callers
Function
NewPostgres
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 callers
Function
NewRateLimiters
NewRateLimiters creates rate limiters with sensible defaults.
internal/server/middleware_ratelimit.go:476
↓ 8 callers
Function
NewWithReplay
NewWithReplay creates a new in-memory EventBus with custom replay settings.
internal/events/bus.go:730
↓ 8 callers
Function
ParkAtTop
ParkAtTop returns a ParkSpec that parks the entire queue from the top.
internal/store/role_park.go:71
↓ 8 callers
Function
Parse
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 callers
Function
ParseChatTarget
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 callers
Method
PreviewScheduleCarry
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 callers
Method
PruneItemOpLogTx
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 callers
Method
PruneSweep
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 callers
Method
QContext
QContext is Q with every read bound to ctx (BUG-3632).
internal/store/store.go:1058
↓ 8 callers
Method
RecordDelivery
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 callers
Function
RefreshMarkerPath
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 callers
Function
RelationKeysPresent
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 callers
Function
RequiredRelationIssues
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 callers
Method
ReservePendingInstall
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 callers
Function
Resolve
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 callers
Method
RevokeUserOAuthConnection
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 callers
Method
RotateUserSessions
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 callers
Function
SanitizeMarkdownText
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 callers
Method
Send
Send sends an email using the default from address/name.
internal/email/sender.go:132
↓ 8 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
internal/mcp/dispatch_http_advanced_test.go:909
↓ 8 callers
Method
SetBootstrapToken
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 callers
Function
Shorthand
Shorthand returns the rule for a cadence name such as "weekdays". The name is trimmed and case-insensitive.
internal/schedule/shorthand.go:21
↓ 8 callers
Method
Status
Status returns the cached probe result.
internal/server/redis_health.go:251
↓ 8 callers
Method
String
()
internal/events/bus.go:193
↓ 8 callers
Method
SubscriberCount
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 callers
Method
SurfacedDecisions
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 callers
Method
UpdateItemWithPreCheck
(string, models.ItemUpdate, C, ...store.MutationOption)
internal/appstore/testdata/genericnested/x.go:13
↓ 8 callers
Method
UpdateWorkspaceMemberRole
UpdateWorkspaceMemberRole changes a member's role in a workspace.
internal/store/workspace_members.go:1070
↓ 8 callers
Method
UpgradeAppInstall
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 callers
Function
ValidateItemTitle
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 callers
Function
WithAPITokenAuth
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 callers
Function
actAs
(context: BrowserContext, account: WalkAccount)
web/e2e/lib/permission-walk.ts:267
↓ 8 callers
Method
add
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 callers
Function
addPadEntryTOML
--- 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 callers
Function
addSearchComment
(t *testing.T, s *Store, item *models.Item, body string)
internal/store/search_comments_test.go:13
↓ 8 callers
Method
advance
(d time.Duration)
internal/watchevents/heartbeat_test.go:31
↓ 8 callers
Method
agendaNow
agendaNow is the clock of the agenda reads. Tests move it.
internal/server/bootstrap_agenda.go:91
↓ 8 callers
Function
agentNameFixture
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 callers
Function
aliasCollection
(t *testing.T, s *Store, ws, prefix string)
internal/store/item_ref_aliases_test.go:12
↓ 8 callers
Function
appWriteAllows
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 callers
Method
appendAgendaWork
(run *agendaRead, workspaceID string, scope store.PendingReminderScope)
internal/server/agenda_work.go:49
↓ 8 callers
Function
applyConfigureValues
(cfg *config.Config, values *configureValues)
cmd/pad/configure.go:128
← previous
next →
2,001–2,100 of 31,743, ranked by callers