Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
31,685 in github.com/PerpetualSoftware/pad
⨍
Functions
31,685
◇
Types & classes
3,533
↓ 4 callers
Function
usable
* An item id that could alias another key is refused (BUG-3863): 'X:held' * would otherwise read and write X's held slot. Real ids are UUIDs.
web/src/lib/items/refusedRawDraft.ts:88
↓ 4 callers
Function
validLinkStamps
(stamps ...string)
internal/store/schedule_link_import.go:180
↓ 4 callers
Function
validQueryText
validQueryText reports whether every key and value a handler could read out of this raw query string is bindableText. WHAT IT CHECKS AGAINST. url.Par
internal/server/middleware_request_text.go:332
↓ 4 callers
Function
validateFieldType
(def models.FieldDef, val any)
internal/items/validate.go:358
↓ 4 callers
Function
validateMigrated
validateMigrated runs the shape check the migrate doors run after resolving, which is the step this fix exists to keep from failing.
internal/store/relation_multi_defaults_test.go:423
↓ 4 callers
Function
validateScheduleFields
validateScheduleFields checks the store-owned fields. dtend is the canonical wall text or "" when absent; the caller has already compiled dtstart.
internal/store/schedules.go:216
↓ 4 callers
Function
validationFailedFromBuildErr
validationFailedFromBuildErr wraps a BuildCLIArgs error (typically "missing required argument %q" or "flag %q: <type-mismatch>") as a structured valid
internal/mcp/errors.go:924
↓ 4 callers
Method
variantOf
(t *testing.T, workspaceID string, parent *models.Attachment, kind string, size int64)
internal/store/items_cross_workspace_copy_test.go:86
↓ 4 callers
Function
variantUrl
* The URL for one variant. `original` is the CANONICAL, no-`?variant` download — * that is what "the original" IS on the server (it serves the origin
web/src/lib/attachments/viewerImageLoader.svelte.ts:139
↓ 4 callers
Function
veCollabMember
--------------------------------------------------------------------- Perimeter 4: collab WebSocket GET-upgrade (persists Yjs edits). ----------------
internal/server/middleware_verified_email_test.go:363
↓ 4 callers
Function
versionCount
(t *testing.T, s *store.Store, itemID string)
internal/store/materialize_flush_test.go:43
↓ 4 callers
Method
versionCount
(t *testing.T)
internal/server/handlers_item_versions_bug3031_test.go:46
↓ 4 callers
Function
versionSources
(t *testing.T, srv *Server, itemID string)
internal/server/task3321_u1b_chatgpt_versions_test.go:31
↓ 4 callers
Function
versionUserID
versionUserID is the user_id stored on a version row: NULL rather than ” for a writer with no user (PLAN-2348 U2).
internal/store/items.go:7482
↓ 4 callers
Function
viewerClose
(page: Page)
web/e2e/lib/attachment-viewer.ts:148
↓ 4 callers
Method
visibility
(userID string)
internal/server/handlers_me_needs.go:253
↓ 4 callers
Method
visibleCollectionIDsQ
visibleCollectionIDsQ is visibleCollectionIDs read on a caller-supplied executor, without the fault seam (BUG-3659: the account export re-checks acces
internal/server/server.go:3641
↓ 4 callers
Function
visibleWorkspaceGroup
visibleWorkspaceGroup filters every saved member and orders by the admitted workspace slug and id. Hidden members never contribute response metadata.
internal/server/handlers_workspace_groups.go:160
↓ 4 callers
Method
waitForDrain
waitForDrain waits for every renewal goroutine to finish, up to timeout. Reports whether they all finished; false means at least one is still running
internal/server/session_presence_redis.go:861
↓ 4 callers
Method
waitForWaiters
waitForWaiters waits until n backends of this database wait on a lock.
internal/store/commitment_links_pg_test.go:86
↓ 4 callers
Method
waitParked
waitParked blocks until the proxy has parked a SUBSCRIBE, and fails the test if none arrives. A one-shot read of held is NOT a barrier: the client's w
internal/events/redis_subscribe_confirm_test.go:148
↓ 4 callers
Function
wallInstant
wallInstant resolves a wall in loc. An all-day wall resolves at the all-day fire hour, because Occurrence.At for an all-day occurrence is local midnig
internal/store/schedules.go:258
↓ 4 callers
Function
wallOf
(t time.Time, allDay bool)
internal/schedule/engine.go:31
↓ 4 callers
Function
wallStrings
(ws []schedule.Wall)
internal/store/schedules.go:430
↓ 4 callers
Function
wantRefused
(t *testing.T, err error, reason string)
internal/store/task3408_delivery_test.go:66
↓ 4 callers
Function
wantRemoved
(t *testing.T, pidFile string)
internal/buildtools/bug4068_pidfile_test.go:81
↓ 4 callers
Function
warnPlaybookBodyStale
warnPlaybookBodyStale prints one line to STDERR when a playbook body this command is about to print is one the server knows is BEHIND the item's live
cmd/pad/cmd_playbook.go:350
↓ 4 callers
Function
warnUndeclaredFields
warnUndeclaredFields prints one line to STDERR naming field keys the collection's schema does not declare (BUG-2850). Stderr, never stdout: `pad item
cmd/pad/cmd_item.go:4759
↓ 4 callers
Method
watch
watch names the client address of the connection whose failure counts.
internal/server/bug3637_sse_stalled_reader_test.go:59
↓ 4 callers
Function
wholeSecond
wholeSecond refuses an instant with a fraction of a second. The CLI formats instants to the second and the route keeps the fraction, so the same value
internal/mcp/catalog_item_schedule.go:479
↓ 4 callers
Function
wireOAuthForTest
wireOAuthForTest makes oauthAvailable true the way production does on an https self-host (PLAN-2310 DR-1, DR-4): https addressing, the MCP setting for
internal/server/mcp_capability_test.go:121
↓ 4 callers
Function
withCredentialsLock
withCredentialsLock runs fn with the path of credentials.json while holding credentials.json.lock: exclusive for a write, shared for a read. fn is tol
internal/cli/credentials.go:520
↓ 4 callers
Function
withDuplicateManifest
withDuplicateManifest appends a second attachments/manifest.json, which is the duplicate-manifest reject — one of the four *importStatusError sites th
internal/server/handlers_import_bundle_husk_test.go:93
↓ 4 callers
Function
withForeignOwnerHint
withForeignOwnerHint appends an actionable chown command when a credentials read or write fails with a permission error and credentials.json or creden
internal/cli/credentials.go:411
↓ 4 callers
Method
withoutRead
ScheduleGates is the per-reader DISPLAY of a gate; evaluateAndOpenGates is the act (TASK-4353). What opens a gate, and what decides that a child is re
internal/store/commitment_gates_display_test.go:17
↓ 4 callers
Function
work
(extra: Partial<AgendaWorkEntry> = {})
web/src/lib/calendar/presentation.test.ts:161
↓ 4 callers
Function
workRow
(extra: Partial<AgendaWorkEntry> = {})
web/src/routes/(console)/agenda/agenda.svelte.test.ts:56
↓ 4 callers
Method
write
(w http.ResponseWriter)
internal/server/handlers_apps_install.go:174
↓ 4 callers
Function
writeAccountDisabledIf
--- Account Deletion (GDPR Article 17 — Right to Erasure) --- writeAccountDisabledIf answers 403 account_disabled when err is the store's refusal to m
internal/server/handlers_account.go:27
↓ 4 callers
Function
writeAccountUnclaimed
Unclaimed accounts (TASK-4930): an account an agent signed up for itself, which no person has claimed yet. It holds one workspace and one token pinned
internal/server/middleware_unclaimed.go:22
↓ 4 callers
Function
writeActivationSessionRequired
(w http.ResponseWriter)
internal/server/handlers_activate.go:46
↓ 4 callers
Function
writeCalendarFeedNotFound
(w http.ResponseWriter)
internal/server/handlers_calendar_feeds.go:46
↓ 4 callers
Method
writeCommitmentGraphError
writeCommitmentGraphError handles only the closed graph error vocabulary. Unexpected failures go through the existing sanitized schedule fallback.
internal/server/commitment_errors.go:18
↓ 4 callers
Function
writeConfig
(t *testing.T, path string, data map[string]any)
internal/mcp/install_test.go:863
↓ 4 callers
Method
writeMCPUnauthorized
writeMCPUnauthorized emits the spec-shaped 401 every MCP client expects: WWW-Authenticate with realm + resource_metadata, plus a small JSON body so cu
internal/server/middleware_mcp_auth.go:612
↓ 4 callers
Function
writeMarkdownRow
writeMarkdownRow writes one pipe-delimited row. Cells are expected to be pre-escaped.
internal/cli/format_markdown.go:57
↓ 4 callers
Function
writeMarker
(t *testing.T, cfg *config.Config, pid, port int, deadline time.Time)
internal/cli/refresh_marker_test.go:58
↓ 4 callers
Function
writePadTomlURL
writePadTomlURL links the current directory to serverURL.
cmd/pad/bug3646_pad_toml_token_test.go:45
↓ 4 callers
Method
writeResolveError
(w http.ResponseWriter, r *http.Request, err error)
internal/server/commitment_errors.go:117
↓ 4 callers
Function
writeResolveField
(w http.ResponseWriter, field, code, msg string)
internal/server/handlers_schedules.go:407
↓ 4 callers
Function
writeSSEEvent
writeSSEEvent writes a single SSE event to the response writer. If eventID > 0, an "id:" field is included for Last-Event-ID support. THE "id:" FIELD
internal/server/handlers_events.go:1211
↓ 4 callers
Function
writeScheduleRequired
(w http.ResponseWriter, field string)
internal/server/handlers_schedules.go:144
↓ 4 callers
Function
writeTokenWorkspaceDenied
writeTokenWorkspaceDenied is writeTokenWorkspaceDeniedFor for the request's own token.
internal/server/pinned_token.go:176
↓ 4 callers
Function
yjsFrameIsEnvelopeNonContent
yjsFrameIsEnvelopeNonContent reports whether a persisted sync frame is a SyncStep1 or an empty update/SyncStep2 — facts (1) and (2) above — parsing th
internal/store/yjs_content_bearing.go:75
↓ 3 callers
Method
#clearTimer
()
web/src/lib/items/saveTracker.svelte.ts:96
↓ 3 callers
Method
#settled
After a send settles: run the refresh that was deferred while it was in flight.
web/src/lib/stores/chatThread.svelte.ts:395
↓ 3 callers
Method
Abort
Abort discards the staged bytes. It is idempotent, and safe after Commit.
internal/attachments/staged.go:154
↓ 3 callers
Function
ActorKind
ActorKind is the writer role — "agent" or "user" — as this process can best describe itself. Same self-declared signal as ResolveAgentName, just reduc
internal/cli/agent_identity.go:95
↓ 3 callers
Function
AllToolNames
AllToolNames returns all valid names and aliases that can be passed to `pad agent install`.
internal/cli/agents.go:307
↓ 3 callers
Method
AllUnfillable
AllUnfillable is the condition the error and the summary both test: no `--field` resolves ANY of them, so advising one is advice that cannot be follow
cmd/pad/cmd_item.go:2954
↓ 3 callers
Method
AppendSyncFrame
AppendSyncFrame persists one relay frame, or skips it when it is a byte-identical duplicate of an earlier row (BUG-3135). Either way the returned ID i
internal/collab/room.go:313
↓ 3 callers
Method
AppendSyncFrames
AppendSyncFrames is AppendSyncFrame for a run of frames in one transaction, all or nothing, one result per frame in order (BUG-3253).
internal/collab/room.go:316
↓ 3 callers
Function
AsUniqueFieldHeldError
AsUniqueFieldHeldError unwraps a UniqueFieldHeldError.
internal/store/unique_fields.go:170
↓ 3 callers
Method
Asked
Asked reports whether the item is an ask: in an awaits_human collection, or holding a waiting status on its done field.
internal/needs/needs.go:80
↓ 3 callers
Method
At
At is the as_of time.
internal/needs/cursor.go:170
↓ 3 callers
Function
AttachmentDownloadURL
AttachmentDownloadURL builds the canonical attachment download URL. Pass an empty variant for the original; otherwise "thumb-sm" / "thumb-md" (the ser
internal/server/render/attachments.go:79
↓ 3 callers
Method
AttachmentRowsExistForHashContext
AttachmentRowsExistForHashContext is AttachmentRowsExistForHash bounded by ctx, for a caller that runs it under a process-wide lock (BUG-3652).
internal/store/attachments.go:1384
↓ 3 callers
Method
Backends
Backends returns a snapshot of every registered backend, keyed by prefix. The rowless-blob GC sweep iterates it and type-asserts each store against Li
internal/attachments/registry.go:51
↓ 3 callers
Method
BackfillCommentMentions
BackfillCommentMentions derives comment_mentions for comments written before the table existed (TASK-3917, IDEA-3906). It scans live comments whose bo
internal/store/comment_mentions_backfill.go:36
↓ 3 callers
Method
BackfillStatusTransitions
BackfillStatusTransitions populates status_transitions from history in two passes, designed to be called once from server startup after migrations run
internal/store/status_transitions_backfill.go:159
↓ 3 callers
Method
BackfillUserPlans
BackfillUserPlans sets the plan for all users that have an empty or default plan. In cloud mode, call with "free" to ensure all users have a plan set.
internal/store/limits.go:785
↓ 3 callers
Function
BatchID
BatchID is the id for the i-th message of a request: m0, m1, ... Batch-local and short, because the gateway wants 1 to 64 chars of [A-Za-z0-9_-] uniqu
internal/notify/body.go:88
↓ 3 callers
Method
BeginReadSnapshot
BeginReadSnapshot is beginReadSnapshot for callers outside the store (BUG-3659, the account export). The caller rolls it back.
internal/store/export.go:212
↓ 3 callers
Function
Billable
Billable reports whether calls to the named provider cost provider money.
internal/decision/config.go:25
↓ 3 callers
Method
BindOAuthIdentity
BindOAuthIdentity records that the provider account `subject` signs in to userID, or confirms the record already says so, for a provider the account h
internal/store/oauth_identities.go:116
↓ 3 callers
Method
Bootstrap
(ctx context.Context, workspace string)
internal/mcp/workspace.go:22
↓ 3 callers
Method
ByColumn
ByColumn groups the violation count by "table.column".
internal/store/nulscan.go:136
↓ 3 callers
Method
CancelCustomer
CancelCustomer asks pad-cloud to cancel every active Stripe subscription for customerID and then delete the Stripe customer object. Idempotent at the
internal/billing/cloud_client.go:202
↓ 3 callers
Function
CanonicalizeRef
CanonicalizeRef is the exported alias for canonicalizeRef so the store layer's same-workspace workspace_ref normalization (TASK-1597) can use the same
internal/links/extract.go:684
↓ 3 callers
Method
Capabilities
Capabilities reports what this backend can do. The editor reads these flags via GET /api/v1/server/capabilities and gates rotate/crop UI on per-format
internal/attachments/processor.go:80
↓ 3 callers
Function
Cases
Cases is the table. The cap rows are built from models.MaxAgentNameRunes.
internal/agentchatcases/cases.go:32
↓ 3 callers
Function
CategoryLabel
CategoryLabel returns the human-readable label for a category slug. Unknown categories are returned unchanged so the picker can still render a reasona
internal/collections/templates.go:50
↓ 3 callers
Function
ChatReadSeq
ChatReadSeq returns the highest displayed sequence only when the page reaches the existing read marker. A high-water mark must not skip unseen message
internal/cli/chat.go:52
↓ 3 callers
Method
CheckActiveAdminLoss
CheckActiveAdminLoss answers ErrLastAdmin when removing userID now would leave no active human admin. It runs the same guard in a transaction it rolls
internal/store/users.go:1481
↓ 3 callers
Function
CheckAgentChatTarget
CheckAgentChatTarget refuses, before any request, an @<name> send target that names a DM other than the calling agent's own. An agent has one chat, wi
internal/cli/chat.go:37
↓ 3 callers
Method
CheckLimitTx
CheckLimitTx is CheckLimit with every read routed through the caller's transaction instead of an independent connection (PLAN-2357 / DR-16). The COUN
internal/store/limits.go:139
↓ 3 callers
Function
ChildLinkTypes
ChildLinkTypes is the exported, read-only view of childLinkTypes (items.go) — the link types GetChildItems walks to find an item's children. It exist
internal/store/link_types.go:17
↓ 3 callers
Method
ClaimItemLeaseStatus
ClaimItemLeaseStatus is ClaimItemLease plus acquired: true when the claim gave the item to a holder that did not already hold a live lease on it, fals
internal/store/item_lease.go:70
↓ 3 callers
Method
ClaimOrphanedVariantAttachment
ClaimOrphanedVariantAttachment is the orphan GC's atomic claim for a LIVE variant row whose parent original is tombstoned or gone (BUG-2388) — the lea
internal/store/attachments.go:1149
↓ 3 callers
Method
ClaimStartOffer
(userID, workerID, workspaceID, playbookID string)
internal/server/session_presence_start_test.go:15
↓ 3 callers
Method
CleanExpiredSessions
CleanExpiredSessions removes all sessions past their expiry time.
internal/store/sessions.go:621
↓ 3 callers
Function
ClearChatDirection
()
internal/cli/chat_direction_state.go:95
↓ 3 callers
Method
ClearForecast
ClearForecast removes the forecast and records the clear. Clearing an absent forecast writes nothing.
internal/store/milestone.go:120
↓ 3 callers
Method
ClearRolePark
ClearRolePark clears a role's park line (mode "none", park_sort_order NULL). Idempotent when already "none": returns the current park_seq without bump
internal/store/role_park.go:1045
↓ 3 callers
Method
Close
Close releases the transport's own client. The server closes a transport it replaces or clears (SetHomeHintTransport), so a caller hands over ownershi
internal/homehint/homehint.go:73
↓ 3 callers
Method
Close
Close releases the transport's own client. The server closes a transport it replaces or clears (SetAccessKickTransport), so a caller hands over owners
internal/accesskick/accesskick.go:71
↓ 3 callers
Method
CollectCLIAuthToken
CollectCLIAuthToken hands an approved session's token to its poller at most once (BUG-4836). It deletes the row only while it is still approved, still
internal/store/cli_auth_sessions.go:292
↓ 3 callers
Function
ColorizedStatus
ColorizedStatus returns a status icon + status text with appropriate color.
internal/cli/format.go:66
↓ 3 callers
Method
CommitmentAccessItemsQ
CommitmentAccessItemsQ returns the seed component over links and gates, plus owners of the seed journal lineage. Deleted rows retain their marker.
internal/store/commitment_access.go:21
↓ 3 callers
Method
CompanionCollectionSchema
CompanionCollectionSchema returns a companion collection's schema and settings, read in the fence, for the app layer's field validation. It takes the
internal/store/fenced_items.go:121
← previous
next →
4,801–4,900 of 31,685, ranked by callers