MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 6 callersFunctionassertHistoryLapsedAgain
assertHistoryLapsedAgain proves a reopened late Done put the history row back exactly as the deadline evaluator left it.
internal/store/schedule_reopen_test.go:684
↓ 6 callersFunctionassertNotEmailBlocked
assertNotEmailBlocked asserts the response is NOT a verified-email 403 (it may legitimately be a 2xx, or a 4xx for an unrelated reason).
internal/server/middleware_verified_email_test.go:166
↓ 6 callersFunctionassertPresent
(t *testing.T, path string)
internal/store/migration_guard_test.go:336
↓ 6 callersFunctionassertRefused
assertRefused is the shared shape of every refusing leg.
internal/server/relation_referents_doors_test.go:180
↓ 6 callersFunctionassertSearchSource
(t *testing.T, r SearchResult, field, commentID string)
internal/store/search_comments_test.go:22
↓ 6 callersFunctionassertSessionActivityHookSilent
(t *testing.T, args ...string)
cmd/pad/cmd_session_activity_test.go:114
↓ 6 callersFunctionattachAs
TASK-2247: attach binds an UNATTACHED attachment to an item, which is what makes an image uploaded with `upload -` and then embedded render on that it
internal/server/handlers_attachments_attach_test.go:27
↓ 6 callersFunctionattachMember
(t *testing.T, f shareAssetFixture, email, role string)
internal/server/handlers_attachments_attach_test.go:79
↓ 6 callersMethodattachTo
attachTo writes a real 2000x1500 PNG — big enough that BOTH specs must scale down, so a skip is unambiguous — and returns the new row's id. Width/Heig
internal/server/handlers_attachments_thumbnails_parent_test.go:62
↓ 6 callersMethodattachWith
(t *testing.T, ws *models.Workspace, filename string, size int64, storageKey, hash string)
internal/store/attachments_copy_plan_test.go:42
↓ 6 callersFunctionattachmentGet
BUG-4939: a successful attachment GET/HEAD is cacheable but must be revalidated on every use (private, no-cache), and carries a strong ETag from the S
internal/server/handlers_attachments_cache_test.go:21
↓ 6 callersMethodattemptDeliver
attemptDeliver performs a single HTTP POST to the webhook URL and classifies the outcome. It does NOT record the result — deliver owns the single term
internal/webhooks/dispatcher.go:599
↓ 6 callersFunctionauthHeaders
(fixture: SuiteFixture)
web/e2e/pane-full-page-capstone.spec.ts:60
↓ 6 callersFunctionbackdatePushDevice
TASK-4027. now() has SECOND precision, so every test that tells a kept timestamp from a reset one backdates the row first: a same-second re-register w
internal/store/push_devices_test.go:423
↓ 6 callersFunctionbackfillSourceUnindexed
backfillSourceUnindexed creates a target and a source linking to it, then clears the index so the backfill will pick the source up.
internal/store/wiki_links_backfill_race_test.go:41
↓ 6 callersMethodbeginReadSnapshot
beginReadSnapshot opens a read-only transaction whose reads share one snapshot; ExportWorkspaceSnapshot says why each option is there.
internal/store/export.go:218
↓ 6 callersMethodbeginWorkspaceGroupWrite
beginWorkspaceGroupWrite serializes writes for one user before touching group rows. SQLite uses BEGIN IMMEDIATE; Postgres takes the strongest required
internal/store/workspace_groups.go:91
↓ 6 callersFunctionblobPresent
(t *testing.T, srv *Server, storageKey string)
internal/server/workspace_purge_test.go:46
↓ 6 callersMethodbootstrap
(t *testing.T, tok string, headers map[string]string)
internal/server/bootstrap_agenda_test.go:60
↓ 6 callersFunctionbroadcast
(env: BCEnvelope)
web/src/lib/services/sse.svelte.ts:326
↓ 6 callersFunctionbug2103Room
BUG-2103: a no-applier PruneAndApply replaces items.content and prunes the op-log while read-only peers stay attached. Their Y.Doc is then backed by n
internal/collab/prune_evict_bug2103_test.go:20
↓ 6 callersFunctionbug2659Collection
(t *testing.T, srv *Server, wsID, slug string)
internal/server/handlers_search_collection_bug2659_test.go:31
↓ 6 callersFunctionbug2659Item
(t *testing.T, srv *Server, wsID string, coll *models.Collection, title string)
internal/server/handlers_search_collection_bug2659_test.go:46
↓ 6 callersFunctionbug2659Titles
(t *testing.T, srv *Server, query, token string)
internal/server/handlers_search_collection_bug2659_test.go:53
↓ 6 callersFunctionbug2659Want
(t *testing.T, got []string, want ...string)
internal/server/handlers_search_collection_bug2659_test.go:75
↓ 6 callersFunctionbug2659Workspace
(t *testing.T, srv *Server, slug string)
internal/server/handlers_search_collection_bug2659_test.go:22
↓ 6 callersFunctionbug3591Set
(t *testing.T, s *Store, id string, w PlanWrite)
internal/store/bug3591_upgrades_test.go:25
↓ 6 callersFunctionbug3591User
BUG-3591: the admin billing dashboard counted "new Pro signups" by created_at, so a long-time free account that upgraded inside the window was missed.
internal/store/bug3591_upgrades_test.go:15
↓ 6 callersFunctionbug3691LiveItemCount
(t *testing.T, e *appsEnv)
internal/server/bug3691_app_plan_limit_test.go:40
↓ 6 callersFunctionbug3691SetPlanCap
(t *testing.T, srv *Server, cloud bool, limit int)
internal/server/bug3691_app_plan_limit_test.go:28
↓ 6 callersFunctionbug3816OAuthOnlyUser
bug3816OAuthOnlyUser makes an account with google and github linked and no password: either provider may go, but not both.
internal/store/bug3816_unlink_last_method_test.go:11
↓ 6 callersFunctionbug3817Env
bug3817Env makes a workspace with an owner, an admin who resends, and one pending invitation the owner sent.
internal/store/bug3817_resend_invitation_test.go:13
↓ 6 callersFunctionbug3817Pending
bug3817Pending lists the workspace's pending invitations by id.
internal/store/bug3817_resend_invitation_test.go:53
↓ 6 callersFunctionbug3820Item
bug3820Item creates an item whose body is v3 and replaces its history with rows (newest first).
internal/store/bug3820_version_body_hash_test.go:33
↓ 6 callersFunctionbug3821Server
bug3821Server serves srv, with a write timeout of timeout, on a real listener whose accepted connections get sndbuf, and reports each request's handle
internal/server/bug3821_write_deadline_test.go:35
↓ 6 callersFunctionbug3839Long
BUG-3839: go-diff cannot patch text that is not valid UTF-8. Near an edit it either panics (slice bounds out of range) or builds a patch that does not
internal/store/bug3839_invalid_utf8_version_test.go:26
↓ 6 callersFunctionbug4019Server
bug4019Server is testServer on whichever backend the run selected.
internal/server/bug4019_totp_lazy_decrypt_test.go:32
↓ 6 callersFunctionbuildRequestErrorResult
buildRequestErrorResult maps a buildAuthedRequest failure onto the structured error envelope. Extracted from executeRequest (BUG-2305) so hand-written
internal/mcp/dispatch_http.go:572
↓ 6 callersFunctionbutton
(name: string)
web/src/routes/(console)/settings/account/task4129SettleFences.svelte.test.ts:143
↓ 6 callersFunctioncall
(tool, args)
web/src/mcp-app/bridge.ts:39
↓ 6 callersMethodcallWorker
(t *testing.T, token, agent, worker, action string)
internal/server/task3613_lease_worker_test.go:24
↓ 6 callersFunctioncanonicalCarriedKey
(key string, floating bool)
internal/store/schedule_carry_v2.go:41
↓ 6 callersFunctioncaptureSkillStdout
captureStdout runs fn with os.Stdout redirected and returns what it printed.
cmd/pad/bug3466_skill_overwrite_test.go:84
↓ 6 callersMethodcatchUp
(t *testing.T, tok string)
internal/server/task3615_catch_up_test.go:122
↓ 6 callersFunctioncatchUpBody
(hasCursor, capped bool, degraded string)
cmd/pad/task4035_catch_up_test.go:25
↓ 6 callersFunctionchatNotice
()
internal/server/chat_delivery_test.go:17
↓ 6 callersFunctionchatSSE
(id string, seq int64, deleted bool)
cmd/pad/cmd_watch_chat_test.go:91
↓ 6 callersMethodcheckItemVisibleQ
checkItemVisibleQ is checkItemVisible parameterized over its executor, so the cross-workspace copy's attachment authorizer can run the same visibility
internal/server/server.go:3782
↓ 6 callersFunctionclaimField
claimField reads one top-level field from stored item fields JSON, so assertions hold on both dialects (Postgres jsonb renders with spaces). Numbers a
internal/store/agent_claim_test.go:820
↓ 6 callersMethodclaimKey
claimKey claims key for (route, scope, canonical request). It answers the request itself and returns ok=false when the key settles it: a stored answer
internal/server/idempotency_keys.go:53
↓ 6 callersFunctionclaimedIDs
(evs []OutboxEvent)
internal/store/event_outbox_test.go:1761
↓ 6 callersFunctionclear
()
web/src/lib/services/homeLive.ts:28
↓ 6 callersFunctionclick
(el: HTMLElement)
web/src/routes/(console)/needs/needsPage.svelte.test.ts:123
↓ 6 callersMethodclientWith
(token string)
cmd/pad/cmd_auth_2fa_test.go:58
↓ 6 callersFunctionclone
(m *appmanifest.Manifest)
internal/server/app_upgrade_diff_test.go:28
↓ 6 callersMethodcollapseInvisibleRelationIssues
collapseInvisibleRelationIssues is the LATE pass's guard against an unjudged `wrong_collection` reaching a caller: the same rule resolveRelationRefere
internal/server/relation_referents.go:231
↓ 6 callersMethodcomment
(item *models.Item, userID, body string)
internal/store/schedule_resolve_test.go:81
↓ 6 callersMethodcomment
(t *testing.T, by *models.User, body string)
internal/store/needs_read_test.go:116
↓ 6 callersFunctioncontentOf
(t *testing.T, srv *Server, id string)
internal/server/bug3080_client_write_test.go:29
↓ 6 callersFunctioncookiePush
cookiePush issues POST .../push as a COOKIE-authenticated caller. The transport is the whole point of this helper, not an incidental detail: RequireW
internal/server/handlers_push_visibility_test.go:28
↓ 6 callersMethodcount
(q string, args ...any)
internal/server/handlers_commitments_http_test.go:130
↓ 6 callersFunctioncountIPChangeEvents
countIPChangeEvents returns the number of session_ip_changed rows in the audit log.
internal/server/middleware_session_ip_test.go:415
↓ 6 callersMethodcountIn
(t *testing.T, query string)
internal/server/handlers_plan_limit_race_test.go:486
↓ 6 callersFunctioncountLiveAttachments
(t *testing.T, s *Store, wsID string)
internal/store/attachments_live_item_test.go:35
↓ 6 callersFunctioncounts
()
docs/brand/social/render.mjs:48
↓ 6 callersMethodcreateAuthSession
(w http.ResponseWriter, r *http.Request, user *models.User, ttl time.Duration)
internal/server/handlers_auth.go:437
↓ 6 callersFunctioncreateCLIAuthSessionFrom
TASK-2253: the CLI sign-in approval page gains Deny and the context to decide with. These pin the server half: who asked is recorded at create and ser
internal/server/task2253_cli_auth_deny_test.go:19
↓ 6 callersFunctioncreateCollabFlusher
(config: CollabFlusherConfig)
web/src/lib/collab/collabFlush.svelte.ts:180
↓ 6 callersFunctioncreateServer
createServer answers capabilities (idempotency_keys = honorsKeys) and scripts the statuses of the create POSTs it receives.
cmd/pad/task3585_create_retry_test.go:13
↓ 6 callersMethodcreateWorkspaceQ
createWorkspaceQ is CreateWorkspace against a caller-supplied executor. It exists for ImportWorkspace (BUG-2892), which has to mint the workspace on
internal/store/workspaces.go:142
↓ 6 callersMethodcurrent
()
web/src/lib/stores/agentsOverview.svelte.ts:57
↓ 6 callersFunctiondbBackupCmd
()
cmd/pad/cmd_db.go:217
↓ 6 callersFunctiondebounceWriter
BUG-2770. CreateActivityDebounced merges by reading a row's metadata, combining it in Go, and writing the result back — two statements. Two writers th
internal/store/activities_debounce_race_test.go:32
↓ 6 callersFunctiondecodeFields
decodeFields is a small test helper: parse an item's fields JSON into a map.
internal/store/items_fieldpatch_test.go:12
↓ 6 callersFunctiondecodeJSONWithLimit
decodeJSONWithLimit is the size-configurable variant. Use this for endpoints that accept large payloads (e.g. bulk-import) where the default cap is to
internal/server/server.go:3319
↓ 6 callersFunctiondecodeRows
(t *testing.T, rows []string)
internal/server/materialize_recovery_test.go:425
↓ 6 callersMethoddedupeTraitDeclarations
dedupeTraitDeclarations resolves workspaces that hold more than one collection declaring the same kernel trait, so the partial unique indexes in migra
internal/store/trait_dedupe.go:55
↓ 6 callersMethoddeferredTimers
`setTimeout(` / `setInterval(` callback bodies, async or not.
web/src/test/identityFenceSource.ts:127
↓ 6 callersFunctiondeletedFixture
(t *testing.T)
internal/store/attachments_deleted_test.go:19
↓ 6 callersMethoddeletes
()
cmd/pad/attachment_delete_test.go:47
↓ 6 callersMethodderived
(digest string)
internal/store/task3397_provision_test.go:65
↓ 6 callersFunctiondescribeDecisionProvider
describeDecisionProvider resolves the decision provider for the report. It goes through decision.Describe, which never returns the API key.
cmd/pad/server_info.go:162
↓ 6 callersFunctiondeviceCreate
(t *testing.T, s *Server)
internal/server/handlers_activate_test.go:15
↓ 6 callersFunctiondispatch
( api: Api, wsSlug: string, _isReadOnlyAction: (toolName: string, action: string) => boolean | undefined,
web/src/lib/webmcp/dispatch.ts:709
↓ 6 callersMethoddo
(t *testing.T, method, path string, body any)
internal/server/handlers_workspace_tabs_test.go:36
↓ 6 callersMethoddo
(t *testing.T, method, path string, body any)
internal/server/bug3372_attribution_test.go:41
↓ 6 callersFunctiondoAttributionRequest
(t *testing.T, srv *Server, agent, method, path string, body any)
internal/server/handlers_items_attribution_test.go:103
↓ 6 callersFunctiondrainOne
drainOne reads one notification or fails.
internal/watchevents/redis_reconnect_test.go:461
↓ 6 callersMethoddropCoverage
(reason string)
internal/watchevents/redis_bus.go:1815
↓ 6 callersMethodemitCommentEventTx
emitCommentEventTx writes one comment-subject event to the outbox on the caller's transaction. The subject is the COMMENT, not the item it hangs off.
internal/store/event_outbox.go:1115
↓ 6 callersMethodenforcePlanLimit
--- Plan Limit Enforcement --- enforcePlanLimit checks a workspace-scoped plan limit and writes a 403 error if the limit is exceeded. Returns true if
internal/server/handlers_cloud.go:1637
↓ 6 callersMethodenqueueDecisionJobsForItemTx
enqueueDecisionJobsForItemTx is the comment door's form: a comment knows its item but not the item's collection.
internal/store/decisions.go:222
↓ 6 callersFunctionensureState
(ws: string)
web/src/lib/stores/localIndex.svelte.ts:441
↓ 6 callersFunctionentry
(id string, n int)
internal/server/task3517_sort_order_test.go:41
↓ 6 callersFunctionescapeTableCell
escapeTableCell escapes characters that would break a markdown table row: `|` becomes `\|`, and existing backslashes are doubled so the escape stays v
internal/urlimport/openapi.go:510
↓ 6 callersMethodetag
(t *testing.T, itemID string)
internal/server/task3401b_app_writes_test.go:45
↓ 6 callersMethodevaluateGatesQ
evaluateGatesQ evaluates every gate without a reader filter or any writes.
internal/store/commitment_gates.go:661
↓ 6 callersFunctionevaluated
evaluated stores one answer for (item, set) at `at`, as the runner does when it completes an evaluation.
internal/store/decisions_debounce_test.go:35
↓ 6 callersMethodevict
evict removes an entry. No-op on empty id or unknown id. Fires onChange only when an entry was actually removed. See touch's comment for why onChange
internal/server/middleware_mcp_session.go:179
↓ 6 callersMethodexportBody
--- POST /api/v1/workspaces/import --- exportBody produces a valid JSON export payload by round-tripping a workspace the test seeded through the store
internal/server/handlers_workspace_create_consent_test.go:337
← previousnext →2,801–2,900 of 31,685, ranked by callers