Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
28,840 in github.com/PerpetualSoftware/pad
⨍
Functions
28,840
◇
Types & classes
3,245
↓ 47 callers
Function
seedStaleItem
BUG-3000: a read that serves items.content must say so when that content is behind the item's live collaborative document. The window was UNBOUNDED w
internal/store/item_content_state_test.go:28
↓ 47 callers
Function
setupFormatRoutingTest
End-to-end coverage of the --format routing itself, not just the render helpers: the command is executed through cobra against an httptest server, so
cmd/pad/format_markdown_routing_test.go:25
↓ 47 callers
Method
state
(id string)
internal/server/task3939b_push_fixture_test.go:213
↓ 46 callers
Function
actorFromRequest
actorFromRequest derives actor and source from the request's auth context. Actor is "user" or "agent" (determined by X-Pad-Agent header). Source is "w
internal/server/handlers_documents.go:352
↓ 46 callers
Function
bearerJSON
bearerJSON marshals body and issues a Bearer-authenticated request. Needed for any mutation issued AFTER a real user has been created in the test's st
internal/server/handlers_watches_test.go:53
↓ 46 callers
Method
countRows
(t *testing.T, query string, args ...interface{})
internal/store/workspace_purge_test.go:67
↓ 46 callers
Function
resolve
(table: GateTable, code: string, extraNested: SignedRow[])
web/src/test/identityFenceGate.ts:498
↓ 46 callers
Method
setContent
setContent overwrites an item's markdown body.
internal/server/handlers_share_attachments_test.go:172
↓ 46 callers
Function
waitForWatchEvent
(t *testing.T, ch <-chan watchSSEEvent, timeout time.Duration)
internal/server/handlers_watch_events_test.go:113
↓ 45 callers
Method
CopyItemAcrossWorkspaces
CopyItemAcrossWorkspaces copies one item from its workspace into another, atomically. THE LOCK ORDER. Changed only deliberately, and stated here beca
internal/store/items_cross_workspace_copy.go:503
↓ 45 callers
Method
IsEmailVerified
IsEmailVerified returns true if the user's email address has been verified. Mirrors IsDisabled: a non-empty EmailVerifiedAt timestamp means verified,
internal/models/user.go:109
↓ 45 callers
Function
auditMeta
auditMeta safely marshals a map to a JSON string for audit log metadata. Falls back to "{}" on marshal error so audit calls never break.
internal/server/handlers_documents.go:494
↓ 45 callers
Method
dispose
()
web/src/lib/utils/throttledRefresh.ts:22
↓ 45 callers
Method
handle
(w io.Writer, p watchStreamPayload)
cmd/pad/cmd_watch_chat.go:224
↓ 45 callers
Function
newDoorFixture
(t *testing.T)
internal/server/relation_referents_doors_test.go:69
↓ 45 callers
Function
release
()
plugin/tests/seen.test.ts:278
↓ 45 callers
Method
requireEditPermission
requireEditPermission checks if the user has edit access to the given item. For regular members (editor/owner), this uses the standard role check. For
internal/server/server.go:4058
↓ 45 callers
Method
resolveOccurrenceAt
(workspaceID, itemID string, in ResolveInput, nowT time.Time)
internal/store/schedule_resolve.go:155
↓ 45 callers
Function
uniqueName
(t *testing.T)
internal/buildtools/install_refresh_test.go:119
↓ 45 callers
Method
user
(name string)
internal/server/handlers_me_needs_test.go:45
↓ 44 callers
Method
CreateCollection
(wsSlug string, input models.CollectionCreate)
internal/cli/client.go:297
↓ 44 callers
Function
Load
()
internal/config/config.go:466
↓ 44 callers
Method
Search
(params SearchParams)
internal/store/search.go:128
↓ 44 callers
Method
Value
()
internal/store/nulguard_test.go:641
↓ 44 callers
Function
freePort
freePort returns a loopback port that is free now, chosen OUTSIDE the kernel's ephemeral range (BUG-3491). It used to bind :0 and close, handing back
internal/buildtools/install_refresh_test.go:183
↓ 44 callers
Function
installStub
(t *testing.T, dir, name string)
internal/buildtools/install_refresh_test.go:132
↓ 44 callers
Function
join
()
web/src/lib/services/accessStream.svelte.ts:157
↓ 44 callers
Function
killStub
(t *testing.T, name string)
internal/buildtools/install_refresh_test.go:145
↓ 44 callers
Function
meAgendaOK
(t *testing.T, w *agendaWorld, u *models.User, query string, mods ...func(context.Context) context.Context)
internal/server/handlers_me_agenda_test.go:38
↓ 44 callers
Function
withTempHome
withTempHome chroots ~/.pad to a fresh tempdir for the test. CredentialsPath resolves via os.UserHomeDir → $HOME, so a t.Setenv("HOME", ...) is enough
internal/cli/credentials_test.go:14
↓ 43 callers
Method
ValidateSession
ValidateSession hashes the provided token, looks it up, checks expiry, and returns the session info including the associated user and binding metadata
internal/store/sessions.go:260
↓ 43 callers
Function
appContextFrom
(r *http.Request)
internal/server/app_api.go:98
↓ 43 callers
Method
ensure
(agent string)
internal/server/handlers_chat_test.go:43
↓ 43 callers
Function
min
(a, b int)
internal/models/reserved_field_decode_guard_test.go:506
↓ 43 callers
Method
move
(i int, role, to string, mut func(*models.LinkedMoveInput))
internal/store/commitment_links_test.go:109
↓ 43 callers
Function
placeholders
placeholders returns a comma-separated string of SQL placeholders: "?, ?, ?"
internal/store/search.go:54
↓ 43 callers
Function
runSched
runSched runs one CLI call against a stub in its own subtest, so each call's server is closed before the next call sets the machine zone.
cmd/pad/task4105_remind_schedule_test.go:24
↓ 43 callers
Method
seed
Entering raw mode: the text the editor starts from, at the row's seq then.
web/src/lib/items/rawBase.ts:26
↓ 42 callers
Method
CreateAccessToken
============================================================ Access tokens (handler/oauth2/storage.go AccessTokenStorage) ============================
internal/store/oauth.go:332
↓ 42 callers
Method
String
()
internal/logging/redaction_followups_test.go:802
↓ 42 callers
Function
commitmentCall
(f *schedHTTP, method string, body any)
internal/server/handlers_commitments_test.go:19
↓ 42 callers
Method
guestResourceFilter
guestResourceFilter returns the full-collection IDs and granted item IDs for the current user if they need item-level grant filtering. Returns nil/nil
internal/server/server.go:3856
↓ 41 callers
Method
Error
()
internal/collab/applier.go:299
↓ 41 callers
Method
FireDueReminders
THE FIRE-PATH INVARIANT, stated once so the next change is measured against it rather than against the last bug: THE CANDIDATE SCAN IS A HINT AND MA
internal/store/reminders.go:582
↓ 41 callers
Method
IsApp
IsApp reports whether the user is an installed app's bot principal. A bot can never sign in, hold a session, be claimed, be an admin or own anything.
internal/models/user.go:58
↓ 41 callers
Function
New
New creates a MemoryBus with the default replay buffer size.
internal/watchevents/watchevents.go:490
↓ 41 callers
Function
cloudAdminReq
cloudAdminReq is a small helper that builds a request with optional JSON body and the caller-chosen headers.
internal/server/cloud_admin_gate_test.go:19
↓ 41 callers
Function
isCollectionVisible
isCollectionVisible checks if a collection ID is in the visible set. If visibleIDs is nil, all collections are visible.
internal/server/server.go:3952
↓ 41 callers
Function
newNfx
(t *testing.T, srv *Server)
internal/server/handlers_me_needs_test.go:43
↓ 41 callers
Function
oneShot
oneShot is a schedule at 09:00 UTC on the agendaWindow's day.
internal/server/handlers_agenda_test.go:69
↓ 41 callers
Function
readCommitment
(t *testing.T, rr *httptest.ResponseRecorder, status int)
internal/server/handlers_commitments_test.go:26
↓ 41 callers
Method
reset
The editor is clean again (or the item changed): the next edit re-seeds.
web/src/lib/items/rawBase.ts:34
↓ 40 callers
Method
CreateCommitmentSchedule
CreateCommitmentSchedule creates an item's schedule with native roles: the one create path that stores roles_origin 'native'.
internal/store/commitment.go:400
↓ 40 callers
Function
Resolve
Resolve turns a wall reading into a UTC instant in loc (RFC 5545 3.3.5). A reading in a spring-forward gap does not exist: it takes the offset in forc
internal/schedule/wall.go:82
↓ 40 callers
Function
classifyHTTPStatus
classifyHTTPStatus is the legacy entry point preserved for callers that don't know their resource kind. New callers should use classifyHTTPStatusKind
internal/mcp/errors.go:1046
↓ 40 callers
Function
derefStr
(p *string)
internal/store/schedule_resolve.go:1077
↓ 40 callers
Function
isBearerAuth
isBearerAuth reports whether the request was authenticated via an Authorization: Bearer header rather than a browser session cookie. True for: PATs on
internal/server/middleware_auth.go:707
↓ 40 callers
Method
load
Point the loader at an entry (or `undefined` to release).
web/src/lib/attachments/viewerTextLoader.svelte.ts:88
↓ 40 callers
Method
resolvableBody
resolvableBody is a request the copy can actually satisfy: the two needs_value entries the base fixture leaves open are supplied, so the preflight com
internal/server/handlers_items_copy_test.go:111
↓ 40 callers
Function
runItemCopy
runItemCopy is the whole command, minus flag binding. Order of operations is load-bearing: 1. Build the request (the SAME body both endpoints take).
cmd/pad/cmd_item.go:2179
↓ 40 callers
Method
sched
(t *testing.T, wsID, itemID string)
internal/store/schedule_copy_test.go:103
↓ 40 callers
Function
workspaceRole
workspaceRole returns the user's role in the current workspace, as set by RequireWorkspaceAccess. Returns empty string if not set.
internal/server/middleware_auth.go:909
↓ 39 callers
Method
GetCommitment
GetCommitment reads an item's schedule as roles: the effective value of each role for the outstanding occurrence with that occurrence's overrides appl
internal/store/commitment.go:147
↓ 39 callers
Method
Materialize
(ctx context.Context, job materialize.Job)
internal/server/materialize_recovery.go:65
↓ 39 callers
Method
NextAfter
NextAfter returns the first occurrence strictly after t, or found=false when the set is exhausted. A pinned schedule ignores view.
internal/schedule/engine.go:320
↓ 39 callers
Method
SetUserPlan
SetUserPlan writes a user's billing plan under the plan-source rule (PLAN-3291 DR-6), enforced here rather than by callers: - a write that LOWERS the
internal/store/limits.go:626
↓ 39 callers
Function
baseOpts
()
cmd/pad/item_copy_test.go:144
↓ 39 callers
Function
chatMsg
(id string, seq int64)
cmd/pad/cmd_watch_chat_test.go:95
↓ 39 callers
Function
check
check parses and validates a rule the way Compile will: ParseRule, then Validate against the Start.
internal/schedule/rule_test.go:12
↓ 39 callers
Method
deps
()
cmd/pad/item_copy_test.go:114
↓ 39 callers
Function
newNotifyFixture
(t *testing.T)
internal/store/notification_settings_test.go:19
↓ 39 callers
Function
newTransitionTestWorkspace
(t *testing.T, s *Store)
internal/store/status_transitions_test.go:48
↓ 39 callers
Method
release
* Drop the lease. `released` is false on a repeat call (no-op). `stackEmpty` * reports whether any lease remains AFTER this release — the caller use
web/src/lib/a11y/viewerBackdrop.ts:37
↓ 39 callers
Function
restore
()
web/e2e/lib/paneSettle.ts:42
↓ 38 callers
Method
Listen
Listen builds the HTTP server and binds addr, returning the listener without accepting on it yet. A failure here is the "address already in use" case,
internal/server/server.go:2859
↓ 38 callers
Function
NewDispatcher
NewDispatcher creates a Dispatcher with the given store. The delivery client enforces the SSRF guard at connect time, not just at parse time: its dia
internal/webhooks/dispatcher.go:294
↓ 38 callers
Method
Run
Run refreshes now and then on the cadence above, until ctx ends.
internal/billing/offer.go:186
↓ 38 callers
Function
attachmentsServerOn
BUG-3094: the bundle import's validation-reject rollback soft-deleted only, the fourth member of the class BUG-3087 closed on the cloud auto-create do
internal/server/handlers_import_bundle_husk_test.go:49
↓ 38 callers
Method
createScheduleAt
(workspaceID, itemID string, in models.ScheduleCreate, nowT time.Time)
internal/store/schedules.go:443
↓ 38 callers
Method
env
()
internal/buildtools/install_refresh_test.go:240
↓ 38 callers
Function
refOf
refOf builds a PREFIX-NUMBER string from a fresh item — used by the integration tests since the canonical ref isn't on the model directly. ItemNumber
internal/store/wiki_links_test.go:556
↓ 38 callers
Function
setTempHomeMain
Tests for the PAD_TOKEN override's command-level behaviour (issue #879, layer 1): whoami reports the effective identity, and logout never invalidates
cmd/pad/env_token_override_test.go:20
↓ 38 callers
Function
setupTokenAuthEnv
(t *testing.T)
internal/server/handlers_tokens_session_auth_test.go:36
↓ 38 callers
Function
workspaceIDForSlug
workspaceIDForSlug looks up the internal UUID for a slug — used by tests that synthesize attachment rows directly via the store (bypassing the upload
internal/server/handlers_storage_test.go:433
↓ 37 callers
Method
CreateInvitation
CreateInvitation creates a pending workspace invitation. Generates a 128-bit (16-byte) random code and stores only its SHA-256 hash. The plaintext cod
internal/store/workspace_members.go:1142
↓ 37 callers
Method
Error
()
internal/webhooks/validate.go:22
↓ 37 callers
Function
NewErrorResult
NewErrorResult packages an ErrorPayload as an MCP CallToolResult with IsError=true. Both the JSON envelope and a human-readable summary are returned:
internal/mcp/errors.go:368
↓ 37 callers
Function
OccurrenceKey
OccurrenceKey identifies the recurrence instance independently of its target.
internal/store/schedule_journal.go:56
↓ 37 callers
Method
SetUserPlanOverrides
SetUserPlanOverrides updates per-user limit overrides (JSON string).
internal/store/limits.go:736
↓ 37 callers
Method
Valid
Valid reports whether v is one of the stored values.
internal/models/mcp_audit.go:104
↓ 37 callers
Function
applySQLiteMigration
applySQLiteMigration applies a single migration file atomically. Behavior (IDEA-1485): 1. PRAGMA statements are lifted out of the migration body (se
internal/store/store.go:1241
↓ 37 callers
Function
chatObject
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_chat_test.go:51
↓ 37 callers
Function
daily
daily is a pinned daily 09:00 UTC rule with a 30 minute lead.
internal/store/schedule_copy_test.go:51
↓ 37 callers
Method
do
(t *testing.T, archive bool)
internal/store/schedule_copy_test.go:93
↓ 37 callers
Function
errorCode
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_workspace_create_consent_test.go:196
↓ 37 callers
Function
loginUser
(t *testing.T, srv *Server, email, password string)
internal/server/handlers_rbac_test.go:94
↓ 37 callers
Function
mustWall
(t *testing.T, s string)
internal/schedule/resolve_test.go:17
↓ 37 callers
Function
newBootAgendaWorld
(t *testing.T, now string)
internal/server/bootstrap_agenda_test.go:25
↓ 37 callers
Function
newMonitorChat
(sink chatSink, printed *recentSet)
cmd/pad/cmd_watch_chat.go:155
↓ 37 callers
Function
newPlanFixture
(t *testing.T)
internal/store/attachments_copy_plan_test.go:24
← previous
next →
301–400 of 28,840, ranked by callers