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
↓ 9 callers
Function
headlessEnv
headlessEnv is triStateEnv without the messaging socket: the cwd-keyed fallback, which is the path every Windows session takes.
internal/cli/session_arm_unverifiable_bug2771_test.go:30
↓ 9 callers
Function
hourly
120 hours
internal/server/handlers_agenda_test.go:468
↓ 9 callers
Function
importRequest
importRequest drives handleImportWorkspace directly with the caller attached, which is how the router presents an authenticated request. contentType s
internal/server/handlers_workspace_import_plan_limit_test.go:52
↓ 9 callers
Function
installErr
(status int, code, format string, args ...any)
internal/server/handlers_apps_install.go:170
↓ 9 callers
Method
intact
(t *testing.T)
internal/store/agent_claim_test.go:65
↓ 9 callers
Method
invite
(t *testing.T, email string)
internal/server/handlers_invitation_accept_limit_test.go:42
↓ 9 callers
Function
isFn
(n: Node | undefined | null)
web/src/test/identityFenceAst.ts:276
↓ 9 callers
Function
isTombstoned
(t *testing.T, srv *Server, id string)
internal/server/handlers_storage_restore_authz_test.go:63
↓ 9 callers
Method
item
(t *testing.T, collID, status string)
internal/decision/attention_test.go:272
↓ 9 callers
Method
journalScheduleChangeRowTx
journalScheduleChangeRowTx is the lineage writer with the row id chosen by the caller, so a cascade can name its first row as the root of the rest.
internal/store/schedule_journal.go:142
↓ 9 callers
Function
jsonPayloadOfSize
Tests for the outbox's two byte bounds (BUG-2827): the per-row cap the write enforces, and the per-pass budget the claim enforces. WHY THE SEAMS EXIS
internal/store/event_outbox_bounds_test.go:27
↓ 9 callers
Function
jsonRoundTrip
TASK-4104 D2: schedules travel with the workspace bundle (export, import and `pad db migrate-to-pg`, which rides them). Runs on SQLite in make test an
internal/store/schedule_carry_test.go:19
↓ 9 callers
Function
linkedRenegotiationInput
()
internal/store/commitment_renegotiate_cascade_test.go:22
↓ 9 callers
Method
liveItems
(t *testing.T)
internal/server/handlers_restore_plan_limit_test.go:34
↓ 9 callers
Method
lockInstallTx
lockInstallTx reads an install of workspaceID FOR UPDATE (Postgres; SQLite is BEGIN IMMEDIATE) and returns its state.
internal/store/app_lifecycle.go:75
↓ 9 callers
Method
lockUserTabsTx
lockUserTabsTx takes the per-user write lock every tab write holds. On Postgres it is the users-row lock enforceUserLimitTx takes (FOR NO KEY UPDATE,
internal/store/workspace_tabs.go:145
↓ 9 callers
Method
logActivityWithMeta
logActivityWithMeta logs activity with optional JSON metadata. For "updated" actions, uses debouncing to coalesce rapid successive saves (e.g., autosa
internal/server/handlers_documents.go:423
↓ 9 callers
Method
loginBody
(t *testing.T, addr, bodyTok string, linkPending *bool, ip, cookieTok string)
internal/server/task4856_native_pending_link_test.go:56
↓ 9 callers
Function
mapCollectionCreate
mapCollectionCreate dispatches `pad collection create <name> [--fields key:type[:opts]; ...] [--icon ...] [--description ...] [--layout ...] [--defaul
internal/mcp/dispatch_http_routes.go:669
↓ 9 callers
Method
mark
mark returns the bus's newest id, so a later accessSince reads only what the door under test published.
internal/server/workspace_access_notify_test.go:76
↓ 9 callers
Method
markUploadInFlight
markUploadInFlight increments the in-flight counter for a content hash. Returns a release func the caller MUST defer; the release decrements and remov
internal/server/server.go:1400
↓ 9 callers
Function
marshalEventPayload
marshalEventPayload renders an event payload, returning an error rather than an empty payload on failure. Callers write the result straight into the
internal/store/event_outbox.go:584
↓ 9 callers
Function
mintTestUser
BUG-2809: the two workspace-mint doors — POST /workspaces and POST /workspaces/import, the latter with a tar.gz body shape behind it — enforce the sam
internal/server/handlers_workspace_mint_parity_test.go:29
↓ 9 callers
Function
multiRelationSchemaFor
`multi_relation` resolution (PLAN-2857 U4, population-table rows 2/14/15). Every element runs the SAME ladder a scalar relation runs, through the sam
internal/store/relation_multi_test.go:20
↓ 9 callers
Function
multiSchema
The EMPTY-LIST rule for `multi_relation` (PLAN-2857 U4): `[]` is normalised at the one entry every write passes through, into whichever spelling of "n
internal/items/multi_relation_normalise_test.go:22
↓ 9 callers
Function
mustGetItemFields
(t *testing.T, srv *Server, itemID string)
internal/server/bug3049_bulk_field_patch_test.go:89
↓ 9 callers
Function
mustSeedWorkspaceForMutation
(t *testing.T, srv *Server, ownerID, slug, role string)
internal/server/handlers_connected_apps_mutations_test.go:86
↓ 9 callers
Function
mutate
(s)
scripts/decision-eval/eval2.py:70
↓ 9 callers
Method
needsDispatch
TASK-4643: pad_needs over the remote dispatcher, against the real server and store (newClearFixture: an item assigned to the owner and carrying a role
internal/mcp/dispatch_http_needs_test.go:18
↓ 9 callers
Method
newAgendaRead
(from, to time.Time, zone usertz.Zone, note string)
internal/server/handlers_agenda.go:321
↓ 9 callers
Function
newChatEnrichFixture
TASK-4039: assertions use wire objects so omitted fields and denial shapes matter.
internal/server/handlers_chat_enrich_test.go:15
↓ 9 callers
Function
newClaimTestEnv
(t *testing.T)
internal/server/handlers_oauth_claim_test.go:57
↓ 9 callers
Function
newCtxFixture
(t *testing.T, d store.DriverType)
internal/server/plan3598_item_context_test.go:22
↓ 9 callers
Function
newMCPAuditWriter
newMCPAuditWriter constructs a writer with a 4096-deep queue. The caller is responsible for kicking the worker via run() and for stopping it via stop(
internal/server/middleware_mcp_audit.go:111
↓ 9 callers
Function
newMCPRecorder
()
cmd/pad/mcp_deadline_recorder_test.go:13
↓ 9 callers
Function
newMentionFixture
(t *testing.T)
internal/store/needs_read_test.go:102
↓ 9 callers
Function
newRestoreLimitEnv
(t *testing.T)
internal/server/handlers_restore_plan_limit_test.go:24
↓ 9 callers
Function
newSchedHTTPOn
(t *testing.T, srv *Server)
internal/server/handlers_commitments_http_test.go:37
↓ 9 callers
Function
newUnclaimedFixture
newUnclaimedFixture makes an unclaimed user that owns one workspace, a pinned token and its agent_signups row, the shape the signup endpoint leaves be
internal/store/unclaimed_accounts_test.go:15
↓ 9 callers
Function
ok
(resp: Awaited<ReturnType<APIRequestContext['get']>>, what: string)
web/e2e/workspace-tabs.spec.ts:25
↓ 9 callers
Function
onWorkspaceRoute
()
web/src/lib/stores/workspaceScope.svelte.ts:45
↓ 9 callers
Function
open
(page: Page, fixture: SuiteFixture, slug: string)
web/e2e/soft-line-break.spec.ts:18
↓ 9 callers
Method
outboxRowCap
outboxRowCap and outboxClaimBudget read the bounds THROUGH the test seams, so every enforcement site gets the override and none can be missed by a tes
internal/store/event_outbox.go:316
↓ 9 callers
Method
parseError
(resp *http.Response)
internal/cli/client.go:3876
↓ 9 callers
Function
parseExamplesFromLong
parseExamplesFromLong extracts the indented invocation lines that follow an "Examples:" header in a cobra Long string. Returns nil when no such sectio
internal/cmdhelp/json.go:200
↓ 9 callers
Function
parseFields
(item: Item)
web/src/lib/types/index.ts:3292
↓ 9 callers
Method
pathFor
pathFor returns the full on-disk path for a given hash. Callers MUST have already validated the hash via validHash — this function does not re-check,
internal/attachments/fs_store.go:61
↓ 9 callers
Function
postMCP
(srv *Server, path, token string)
internal/server/task3321_u2b_mount_test.go:35
↓ 9 callers
Function
processGone
processGone reports nil once pid no longer exists. The supervisor reaps what it kills; an ORPHAN is reaped by whoever adopted it, so a zombie (Linux /
internal/materialize/procgone_unix_test.go:16
↓ 9 callers
Method
publishWorkspaceAccessChangedFromRequest
publishWorkspaceAccessChangedFromRequest is publishWorkspaceAccessChanged with the actor read off the request that made the change.
internal/server/workspace_access_notify.go:69
↓ 9 callers
Function
pushBody
(token string)
internal/server/handlers_push_devices_test.go:103
↓ 9 callers
Function
putDecisionSettings
(t *testing.T, srv *Server, token string, body map[string]interface{})
internal/server/decision_settings_test.go:68
↓ 9 callers
Method
rawPost
(path string, rawBody []byte, ip string, cookieTok string, extra ...*http.Cookie)
internal/server/task4856_native_pending_link_test.go:33
↓ 9 callers
Function
readConfigMap
(t *testing.T, dir string)
internal/config/save_env_test.go:93
↓ 9 callers
Method
recordDeadlineMissTx
recordDeadlineMissTx is the evaluator's writer, also used before applying a renegotiation. Both callers hold the schedule pin and use the same eligibi
internal/store/schedule_deadline_eval.go:526
↓ 9 callers
Function
recorded
(t *testing.T, s *Store, name string)
internal/store/bug3663_migration_025_test.go:113
↓ 9 callers
Function
recoveryFrame
TASK-2198 U4, store half, on both dialects: the op-log recovery write (MaterializeFlush) and the reads that build its job. Postgres legs skip unless P
internal/store/materialize_flush_test.go:22
↓ 9 callers
Function
redraw
($)
plugin/hooks/register.js:331
↓ 9 callers
Function
refreshTestConfig
BUG-3215. install-refresh.sh stops the server, installs, and restarts it with the argv it captured. Any pad CLI call in between found nothing answerin
internal/cli/refresh_marker_test.go:30
↓ 9 callers
Function
relationSchema
BUG-2873. `models.FieldDef.Collection` holds the target's SLUG — it is the only pointer a relation field has, with no id alongside it — and renaming a
internal/store/collections_relation_rename_test.go:26
↓ 9 callers
Function
render
(body: string, refs: ChatRef[] = [], ws?: string)
web/src/lib/chat/markdown.svelte.test.ts:19
↓ 9 callers
Function
renderMarkdown
( content: string, items: Item[], workspaceSlug: string, username?: string, visibleCollectionSlugs?: Set<
web/src/lib/utils/markdown.ts:480
↓ 9 callers
Function
requestUserAgent
requestUserAgent returns the User-Agent header as text the database can store, replacing any invalid UTF-8 and dropping any NUL. A header is not a pa
internal/server/middleware_request_text.go:905
↓ 9 callers
Method
requireCollectionFullyVisible
requireCollectionFullyVisible checks that the collection is visible to the requesting user under FULL-collection-access semantics (BUG-1920). This is
internal/server/server.go:3681
↓ 9 callers
Method
requireCompanionItem
requireCompanionItem resolves a live item in the install's workspace, inside the fenced transaction, and refuses unless its CURRENT collection is a co
internal/store/fenced_tx.go:230
↓ 9 callers
Method
requireNoPointer
(rr *httptest.ResponseRecorder, label string)
internal/server/item_moved_to_test.go:202
↓ 9 callers
Function
resetEmptyConfirmed
BUG-3829: a writer that waits out credentialsLockWait saves without the lock, truncating in place before it writes. A loader that DOES hold the lock u
internal/cli/credentials_bug3829_test.go:15
↓ 9 callers
Method
resetReasons
()
internal/events/observer_test.go:113
↓ 9 callers
Method
resolve
(t *testing.T, i int, state string)
internal/store/commitment_gates_outcome_test.go:37
↓ 9 callers
Function
rowsNamed
rowsNamed picks rows from every table by name; a missing name fails the test.
internal/schedule/conformance_test.go:186
↓ 9 callers
Function
schedErrDetails
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_commitments_http_test.go:104
↓ 9 callers
Function
scheduleActivityMeta
scheduleActivityMeta is the names-only metadata of a schedule write.
internal/server/handlers_schedules.go:247
↓ 9 callers
Method
scheduleOverridesQ
(q Queryer, workspaceID, scheduleID string)
internal/store/schedule_carry_v2.go:161
↓ 9 callers
Method
scheduleRecipientZone
scheduleRecipientZone is the zone a floating schedule is read in: the item's assignee, else its creator, which is exactly the rule enqueueReminderNoti
internal/store/schedules.go:339
↓ 9 callers
Method
scheduleRolesQ
(q Queryer, id string)
internal/store/schedule_carry_v2.go:152
↓ 9 callers
Function
schemaBytes
schemaBytes is the collection's schema exactly as stored: what a handler reads and validates against, and passes as ValidatedSchema.
internal/store/bug3407_revalidate_test.go:38
↓ 9 callers
Function
scrubInTx
scrubInTx runs the scrub inside its own committed transaction, the way DeleteAccountAtomic does.
internal/store/event_outbox_scrub_test.go:47
↓ 9 callers
Function
seedBackfillClient
seedBackfillClient mirrors seedClient in connected_apps_test.go but stays internal to this file so the backfill suite can run in isolation when other
internal/store/oauth_connections_backfill_test.go:64
↓ 9 callers
Function
seedBackfillUser
(t *testing.T, s *Store, email string)
internal/store/oauth_connections_backfill_test.go:40
↓ 9 callers
Function
seedWorkspaceForConn
seedWorkspaceForConn creates a workspace and returns its ID — the join table stores workspace IDs, so tests need a real row.
internal/store/oauth_connections_test.go:48
↓ 9 callers
Function
sessionAlive
(t *testing.T, srv *Server, token string)
internal/server/handlers_auth_replaced_session_test.go:59
↓ 9 callers
Method
setCap
(t *testing.T, limit int)
internal/server/handlers_restore_plan_limit_test.go:56
↓ 9 callers
Function
setItemUpdatedAt
(t *testing.T, s *Store, itemID string, ts time.Time)
internal/store/search_rank_test.go:12
↓ 9 callers
Function
setSchema
(t *testing.T, s *Store, collID, schema string)
internal/store/bug3407_revalidate_test.go:47
↓ 9 callers
Function
setupAgentSignupEnv
(t *testing.T)
cmd/pad/cmd_auth_agent_signup_test.go:122
↓ 9 callers
Function
setupPermissionTest
Phase 2 permission test suite (TASK-488). Tests collection-level visibility, system collection exemptions, and the VisibleCollectionIDs resolution log
internal/store/permissions_test.go:13
↓ 9 callers
Function
sha
BUG-3124 unit B: a caught-up tab stamps the flush watermark without writing content. The proof is cursor == MAX(op-log id) AND sha256(items.content) =
internal/server/bug3124_watermark_stamp_test.go:17
↓ 9 callers
Function
signShareAsset
signShareAsset produces the hex HMAC binding a share link + attachment + expiry together. Returns "" when the secret is too short to sign with (a Serv
internal/server/handlers_share_attachments.go:85
↓ 9 callers
Method
snapshotPath
snapshotPath is snapshotPathFor for this store's database file.
internal/store/migration_guard.go:411
↓ 9 callers
Function
sourceIDs
(p *AttachmentCopyPlan)
internal/store/attachments_copy_plan_test.go:107
↓ 9 callers
Method
stored
(t *testing.T, u *models.User, id string)
cmd/pad/task4507_token_edit_test.go:66
↓ 9 callers
Function
storedSpecInput
storedSpecInput is the schedule's timing as stored, with the start moved to the re-anchor when there is one.
internal/store/schedule_fire.go:73
↓ 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
← previous
next →
1,901–2,000 of 31,685, ranked by callers