MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,743 in github.com/PerpetualSoftware/pad

↓ 9 callersFunctionfkCheckStore
fkCheckStore is a migrated store with a parent/child pair to break.
internal/store/bug3663_migration_025_test.go:90
↓ 9 callersMethodgate
Postgres lock-order tests for gate writes (TASK-4353, 2c). A gate write is a link write behind the same pin, so it queues with a cascade and with a re
internal/store/commitment_gates_pg_test.go:18
↓ 9 callersMethodgateKeyOf
A timing edit of a blocker changes the key of its outstanding occurrence. A PENDING gate fixed on that occurrence follows it to the new outstanding on
internal/store/commitment_gates_rekey_test.go:15
↓ 9 callersMethodgetScheduleByIDQ
getScheduleByIDQ reads a schedule by id, nil when there is none.
internal/store/schedule_fire.go:60
↓ 9 callersMethodgetWorkspace
getWorkspace returns the full workspace object resolved by middleware. Falls back to direct resolution for routes without RequireWorkspaceAccess.
internal/server/server.go:3577
↓ 9 callersFunctiongraphHard
()
internal/server/commitment_graph_entry_test.go:44
↓ 9 callersFunctiongroupByTestCommand
(t *testing.T, items []models.Item, check func(*http.Request))
cmd/pad/cmd_item_group_by_test.go:17
↓ 9 callersFunctionhas
(needle: string)
web/src/lib/components/editor/mermaidThemeWiring.test.ts:35
↓ 9 callersFunctionheadlessEnv
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 callersFunctionhourly
120 hours
internal/server/handlers_agenda_test.go:468
↓ 9 callersFunctionimportRequest
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 callersFunctioninstallErr
(status int, code, format string, args ...any)
internal/server/handlers_apps_install.go:170
↓ 9 callersMethodintact
(t *testing.T)
internal/store/agent_claim_test.go:65
↓ 9 callersMethodinvite
(t *testing.T, email string)
internal/server/handlers_invitation_accept_limit_test.go:42
↓ 9 callersFunctionisFn
(n: Node | undefined | null)
web/src/test/identityFenceAst.ts:276
↓ 9 callersFunctionisTombstoned
(t *testing.T, srv *Server, id string)
internal/server/handlers_storage_restore_authz_test.go:63
↓ 9 callersMethoditem
(t *testing.T, collID, status string)
internal/decision/attention_test.go:272
↓ 9 callersMethodjournalScheduleChangeRowTx
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 callersFunctionjsonPayloadOfSize
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 callersFunctionjsonRoundTrip
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 callersFunctionlinkedRenegotiationInput
()
internal/store/commitment_renegotiate_cascade_test.go:22
↓ 9 callersMethodliveItems
(t *testing.T)
internal/server/handlers_restore_plan_limit_test.go:34
↓ 9 callersMethodlockInstallTx
lockInstallTx reads an install of workspaceID FOR UPDATE (Postgres; SQLite is BEGIN IMMEDIATE) and returns its state.
internal/store/app_lifecycle.go:75
↓ 9 callersMethodlockUserTabsTx
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 callersMethodlogActivityWithMeta
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 callersMethodloginBody
(t *testing.T, addr, bodyTok string, linkPending *bool, ip, cookieTok string)
internal/server/task4856_native_pending_link_test.go:56
↓ 9 callersFunctionmapCollectionCreate
mapCollectionCreate dispatches `pad collection create <name> [--fields key:type[:opts]; ...] [--icon ...] [--description ...] [--layout ...] [--defaul
internal/mcp/dispatch_http_routes.go:669
↓ 9 callersMethodmark
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 callersMethodmarkUploadInFlight
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 callersFunctionmarshalEventPayload
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 callersFunctionmintTestUser
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 callersFunctionmultiRelationSchemaFor
`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 callersFunctionmultiSchema
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 callersFunctionmustGetItemFields
(t *testing.T, srv *Server, itemID string)
internal/server/bug3049_bulk_field_patch_test.go:89
↓ 9 callersFunctionmustSeedWorkspaceForMutation
(t *testing.T, srv *Server, ownerID, slug, role string)
internal/server/handlers_connected_apps_mutations_test.go:86
↓ 9 callersFunctionmutate
(s)
scripts/decision-eval/eval2.py:70
↓ 9 callersMethodneedsDispatch
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 callersMethodnewAgendaRead
(from, to time.Time, zone usertz.Zone, note string)
internal/server/handlers_agenda.go:321
↓ 9 callersFunctionnewChatEnrichFixture
TASK-4039: assertions use wire objects so omitted fields and denial shapes matter.
internal/server/handlers_chat_enrich_test.go:15
↓ 9 callersFunctionnewClaimTestEnv
(t *testing.T)
internal/server/handlers_oauth_claim_test.go:57
↓ 9 callersFunctionnewCtxFixture
(t *testing.T, d store.DriverType)
internal/server/plan3598_item_context_test.go:22
↓ 9 callersFunctionnewMCPAuditWriter
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 callersFunctionnewMCPRecorder
()
cmd/pad/mcp_deadline_recorder_test.go:13
↓ 9 callersFunctionnewMentionFixture
(t *testing.T)
internal/store/needs_read_test.go:102
↓ 9 callersFunctionnewRestoreLimitEnv
(t *testing.T)
internal/server/handlers_restore_plan_limit_test.go:24
↓ 9 callersFunctionnewSchedHTTPOn
(t *testing.T, srv *Server)
internal/server/handlers_commitments_http_test.go:37
↓ 9 callersFunctionnewUnclaimedFixture
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 callersFunctionok
(resp: Awaited<ReturnType<APIRequestContext['get']>>, what: string)
web/e2e/workspace-tabs.spec.ts:25
↓ 9 callersFunctiononWorkspaceRoute
()
web/src/lib/stores/workspaceScope.svelte.ts:45
↓ 9 callersFunctionopen
(page: Page, fixture: SuiteFixture, slug: string)
web/e2e/soft-line-break.spec.ts:18
↓ 9 callersMethodoutboxRowCap
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 callersMethodparseError
(resp *http.Response)
internal/cli/client.go:3876
↓ 9 callersFunctionparseExamplesFromLong
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 callersFunctionparseFields
(item: Item)
web/src/lib/types/index.ts:3292
↓ 9 callersMethodpathFor
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 callersFunctionpostMCP
(srv *Server, path, token string)
internal/server/task3321_u2b_mount_test.go:35
↓ 9 callersFunctionprocessGone
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 callersMethodpublishWorkspaceAccessChangedFromRequest
publishWorkspaceAccessChangedFromRequest is publishWorkspaceAccessChanged with the actor read off the request that made the change.
internal/server/workspace_access_notify.go:69
↓ 9 callersFunctionpushBody
(token string)
internal/server/handlers_push_devices_test.go:103
↓ 9 callersFunctionputDecisionSettings
(t *testing.T, srv *Server, token string, body map[string]interface{})
internal/server/decision_settings_test.go:68
↓ 9 callersMethodrawPost
(path string, rawBody []byte, ip string, cookieTok string, extra ...*http.Cookie)
internal/server/task4856_native_pending_link_test.go:33
↓ 9 callersFunctionreadConfigMap
(t *testing.T, dir string)
internal/config/save_env_test.go:93
↓ 9 callersMethodrecordDeadlineMissTx
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 callersFunctionrecorded
(t *testing.T, s *Store, name string)
internal/store/bug3663_migration_025_test.go:113
↓ 9 callersFunctionrecoveryFrame
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 callersFunctionredraw
($)
plugin/hooks/register.js:331
↓ 9 callersFunctionrefreshTestConfig
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 callersFunctionrelationSchema
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 callersFunctionrender
(body: string, refs: ChatRef[] = [], ws?: string)
web/src/lib/chat/markdown.svelte.test.ts:19
↓ 9 callersFunctionrenderMarkdown
( content: string, items: Item[], workspaceSlug: string, username?: string, visibleCollectionSlugs?: Set<
web/src/lib/utils/markdown.ts:480
↓ 9 callersFunctionrequestUserAgent
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 callersMethodrequireCollectionFullyVisible
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 callersMethodrequireCompanionItem
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 callersMethodrequireNoPointer
(rr *httptest.ResponseRecorder, label string)
internal/server/item_moved_to_test.go:202
↓ 9 callersFunctionresetEmptyConfirmed
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 callersMethodresetReasons
()
internal/events/observer_test.go:113
↓ 9 callersMethodresolve
(t *testing.T, i int, state string)
internal/store/commitment_gates_outcome_test.go:37
↓ 9 callersFunctionrowsNamed
rowsNamed picks rows from every table by name; a missing name fails the test.
internal/schedule/conformance_test.go:186
↓ 9 callersFunctionrunAgentSignup
runAgentSignup runs `pad auth signup` with args and the given --format, returning stdout, stderr and the command's error.
cmd/pad/cmd_auth_agent_signup_test.go:92
↓ 9 callersFunctionschedErrDetails
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_commitments_http_test.go:104
↓ 9 callersFunctionscheduleActivityMeta
scheduleActivityMeta is the names-only metadata of a schedule write.
internal/server/handlers_schedules.go:247
↓ 9 callersMethodscheduleOverridesQ
(q Queryer, workspaceID, scheduleID string)
internal/store/schedule_carry_v2.go:161
↓ 9 callersMethodscheduleRecipientZone
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 callersMethodscheduleRolesQ
(q Queryer, id string)
internal/store/schedule_carry_v2.go:152
↓ 9 callersFunctionschemaBytes
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 callersFunctionscrubInTx
scrubInTx runs the scrub inside its own committed transaction, the way DeleteAccountAtomic does.
internal/store/event_outbox_scrub_test.go:47
↓ 9 callersFunctionseedBackfillClient
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 callersFunctionseedBackfillUser
(t *testing.T, s *Store, email string)
internal/store/oauth_connections_backfill_test.go:40
↓ 9 callersFunctionseedWorkspaceForConn
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 callersFunctionsessionAlive
(t *testing.T, srv *Server, token string)
internal/server/handlers_auth_replaced_session_test.go:59
↓ 9 callersMethodsetCap
(t *testing.T, limit int)
internal/server/handlers_restore_plan_limit_test.go:56
↓ 9 callersFunctionsetItemUpdatedAt
(t *testing.T, s *Store, itemID string, ts time.Time)
internal/store/search_rank_test.go:12
↓ 9 callersFunctionsetSchema
(t *testing.T, s *Store, collID, schema string)
internal/store/bug3407_revalidate_test.go:47
↓ 9 callersFunctionsetupPermissionTest
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 callersFunctionsha
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 callersFunctionsignShareAsset
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 callersMethodsnapshotPath
snapshotPath is snapshotPathFor for this store's database file.
internal/store/migration_guard.go:411
↓ 9 callersFunctionsourceIDs
(p *AttachmentCopyPlan)
internal/store/attachments_copy_plan_test.go:107
↓ 9 callersMethodstored
(t *testing.T, u *models.User, id string)
cmd/pad/task4507_token_edit_test.go:66
↓ 9 callersFunctionstoredSpecInput
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
← previousnext →1,901–2,000 of 31,743, ranked by callers