MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 6 callersFunctionReservedItemFieldKeys
ReservedItemFieldKeys returns the reserved keys in a stable order, for callers that need to enumerate rather than test membership (schema-key validati
internal/models/item.go:359
↓ 6 callersFunctionResolve
Resolve applies the rules in strict, exclusive order and returns the first that yields at least one eligible person, or ok=false when none does (the i
internal/needs/needs.go:138
↓ 6 callersFunctionResolveAutoArmFromDisk
ResolveAutoArmFromDisk loads both config sources (the nearest .pad.toml and the user's config.toml) and returns the resolved auto-arm decision. Failur
internal/cli/arm_consent.go:82
↓ 6 callersMethodRevokeUserAppGrant
RevokeUserAppGrant ends a delegated app grant the user holds, in one transaction: its access and refresh tokens are deactivated, an unused code or PKC
internal/store/app_grants.go:104
↓ 6 callersFunctionSanitizeMarkdownText
Markdown list rendering (#898). The `--format markdown` branch of the list commands writes a GitHub-flavored markdown table. Two rules separate it fr
internal/cli/format_markdown.go:32
↓ 6 callersMethodSetAccessKickTransport
SetAccessKickTransport installs the cross-instance kick transport and subscribes this instance to it. Idempotent for the same transport; installing a
internal/server/access_kick.go:154
↓ 6 callersMethodSetAfterItemPreLockReadHookForTesting
SetAfterItemPreLockReadHookForTesting sets the afterItemPreLockRead seam (see its field comment) for the lifetime of the returned restore function, so
internal/store/testing_helpers.go:155
↓ 6 callersMethodSetAppAPIAudience
SetAppAPIAudience records the app API resource (the only audience an install client may hold). The server sets it at startup from its origin; with non
internal/store/install_clients.go:174
↓ 6 callersFunctionSetApplierTimeoutsForTesting
SetApplierTimeoutsForTesting shrinks the designated-applier round-trip's first-attempt and retry budgets, returning a function that restores them. Th
internal/collab/applier_testhooks.go:19
↓ 6 callersMethodSetBootstrapToken
SetBootstrapToken wires the in-memory token + on-disk path into the Server. Called once at startup from cmd/pad/main.go after EnsureBootstrapToken suc
internal/server/bootstrap.go:145
↓ 6 callersMethodSetOpLogGCConfig
SetOpLogGCConfig overrides the default sweep interval (1h) and minimum row age (24h). Pass 0 for either to keep the package default. Must be called be
internal/server/oplog_gc.go:46
↓ 6 callersMethodSetSpawn
SetSpawn injects the goroutine spawner used for deliveries. Passing the server's tracked-goroutine helper (Server.goAsync) makes Server.Stop() wait fo
internal/webhooks/dispatcher.go:272
↓ 6 callersMethodSetUserEmailVerified
SetUserEmailVerified marks a user's email as verified (email_verified_at = now) WITHOUT a token — for paths that prove email control by other means, e
internal/store/email_verification.go:200
↓ 6 callersMethodSnapshot
Snapshot includes the target's persisted state and workspace-wide mutation counts, including rows belonging to soft-deleted items.
internal/store/storetest/ref_prefix.go:52
↓ 6 callersMethodStage
Stage writes r to a temp file beside the content-addressed shard, hashing as it goes, and fsyncs it. It reads at most limit bytes and refuses with Err
internal/attachments/staged.go:52
↓ 6 callersMethodStartOpLogGC
StartOpLogGC kicks off the periodic prune-sweep loop. Idempotent — calling twice silently no-ops. Must be called AFTER SetCollabRoomManager; the loop
internal/server/oplog_gc.go:66
↓ 6 callersMethodStartSynced
StartSynced reports whether the rule itself produces Start. When it does not, Start is not an occurrence (dateutil semantics): a WEEKLY BYDAY=FR rule
internal/schedule/spec.go:134
↓ 6 callersMethodString
()
internal/server/bug4019_totp_lazy_decrypt_test.go:134
↓ 6 callersMethodSuspendTraitUniquenessForTesting
SuspendTraitUniquenessForTesting drops TASK-2710's partial unique indexes and returns a restore function that recreates them. Defer the restore, so a
internal/store/testing_helpers.go:60
↓ 6 callersMethodSweepExpiredOAuthRows
SweepExpiredOAuthRows deletes rows whose requested_at is before the table's cutoff, batchSize rows per statement and at most maxBatches statements per
internal/store/oauth_sweep.go:65
↓ 6 callersFunctionToItemSummaries
ToItemSummaries projects a slice of items into summary shape, preserving order. A nil input yields a non-nil empty slice so the JSON encodes as `[]`.
internal/cli/item_summary.go:224
↓ 6 callersFunctionToolSkillPath
ToolSkillPath returns the full path where a tool's skill file would be installed.
internal/cli/agents.go:210
↓ 6 callersMethodTouchUserWrite
TouchUserWrite updates last_write_at for a user, throttled to avoid write amplification. Only writes if the stored value is older than 5 minutes. Best
internal/store/users.go:1110
↓ 6 callersFunctionURLHost
URLHost deliberately drops userinfo, path, query and fragment: URL secrets need not have recognisable names (a webhook path is often the credential).
internal/logging/redaction.go:227
↓ 6 callersFunctionUndeclaredOverrideKeys
UndeclaredOverrideKeys returns the keys in an override map that the target schema does not declare, sorted so a caller's error message is stable for a
internal/items/overrides.go:31
↓ 6 callersMethodUniqueFieldConflictsQ
UniqueFieldConflictsQ returns the keys of fields declaring `unique_scope: workspace_collection` whose value in fields is already held by another live
internal/store/unique_fields.go:35
↓ 6 callersMethodUnmarkStripeEventProcessed
UnmarkStripeEventProcessed deletes a row from stripe_processed_events, allowing Stripe retries of the same event ID to be handled again (TASK-736). Us
internal/store/stripe_events.go:155
↓ 6 callersMethodUpdateWorkspaceGroup
UpdateWorkspaceGroup renames the group and/or replaces its members. visible is the set of workspaces the caller can see; when ids replaces the list, t
internal/store/workspace_groups.go:241
↓ 6 callersFunctionValidateFieldsWithDrops
ValidateFieldsWithDrops is ValidateFields plus the discarded-default list (BUG-3079). For a door that has a `warnings.dropped_fields` channel; a door
internal/items/validate.go:90
↓ 6 callersFunctionValidateUsername
ValidateUsername checks a username for format, length, and reserved word violations. It does NOT check uniqueness (that requires a store call).
internal/server/username.go:16
↓ 6 callersFunctionVerifyClaimCode
VerifyClaimCode returns true if code matches the derived code for (userID, workspaceID) at the current OR previous time bucket — the sliding 5–10 minu
internal/server/claim_codes.go:127
↓ 6 callersFunctionWithAPITokenAuth
WithAPITokenAuth marks ctx as authenticated via an API token, the same way TokenAuth does on the Bearer-token path. Required when dispatching through
internal/server/context.go:46
↓ 6 callersFunctionWrapOpKey
WrapOpKey wraps err in an OpKeyError when the marshalled request body has a non-empty top-level op_key. It returns err unchanged when err is nil or th
internal/cli/client.go:3260
↓ 6 callersFunctionackJournal
(t *testing.T, f *schedFixture, sc *models.ItemSchedule)
internal/store/schedule_ack_test.go:27
↓ 6 callersMethodactiveTokens
(t *testing.T)
internal/store/bug3678_refresh_after_revoke_test.go:62
↓ 6 callersFunctionactiveUserFixture
BUG-3349: no credential is minted for an account that is disabled or gone. Every credential insert goes through requireActiveUserTx.
internal/store/bug3349_active_user_test.go:20
↓ 6 callersMethodaddAppPrincipalMemberTx
addAppPrincipalMemberTx makes a bot a member of its install's workspace. The install transaction is its only caller. The ordinary member door (addWork
internal/store/app_principal.go:55
↓ 6 callersMethodaddOwnerOrCompensate
addOwnerOrCompensate adds userID as the owner of a workspace that was just created, and makes that membership FATAL to the create (BUG-2715). THE DEF
internal/server/workspace_owner_compensation.go:67
↓ 6 callersMethodaddr
()
internal/events/redis_reconnect_test.go:61
↓ 6 callersFunctionagendaCall
(t *testing.T, calls []recordedCall)
cmd/pad/task4105_agenda_test.go:18
↓ 6 callersFunctionapiRequest
apiRequest makes a JSON API request to the test server.
internal/server/handlers_events_test.go:94
↓ 6 callersFunctionappActor
appActor is the FencedActor for this request: the bot as an agent for a service token (§4: the actor is decided by token kind; X-Pad-Agent is ignored)
internal/server/app_api_write.go:82
↓ 6 callersFunctionappAddRecheck
appAddRecheck registers a re-check of an authorization the handler made. It is run against the store as it stands when the response is about to be sen
internal/server/app_api.go:614
↓ 6 callersMethodappReadmitBeforeWrite
appReadmitBeforeWrite re-admits a write after its body is read and before its write, and reports false after answering: a body can arrive slowly, and
internal/server/app_api_write.go:383
↓ 6 callersMethodappVisibleItem
appVisibleItem resolves an item by ID in the token's workspace, inside the ceiling and the actor's visibility, or answers the same 404 a missing item
internal/server/app_api_read.go:383
↓ 6 callersFunctionappWriteAllows
appWriteAllows reports whether a collection is one the app may write: a companion. Outside the app API everything passes.
internal/server/app_api.go:757
↓ 6 callersFunctionapplyImageSemantics
()
web/src/lib/components/editor/attachment-image.ts:444
↓ 6 callersFunctionapplyPadTomlOverride
applyPadTomlOverride layers the per-directory .pad.toml `url` field on top of cfg when present and Mode is not already explicitly set by --url. The ov
cmd/pad/main.go:336
↓ 6 callersFunctionapplyRenegotiation
(t *testing.T, f *schedFixture, in models.CommitmentRenegotiateInput, now time.Time)
internal/store/commitment_renegotiate_test.go:58
↓ 6 callersFunctionassertLapsed
(t *testing.T, f *schedFixture, sc *models.ItemSchedule)
internal/store/schedule_lapse_test.go:27
↓ 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 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 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 callersFunctionauthKind
authKind returns how this request's principal was established, or "" when no credential was accepted — the fresh-install window and the legacy no-auth
internal/server/middleware_auth.go:112
↓ 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 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 callersFunctionbroadcast
(env: BCEnvelope)
web/src/lib/services/sse.svelte.ts:326
↓ 6 callersFunctionbtn
(label: string | RegExp, scope: ParentNode = host)
web/src/routes/(console)/needs/needsPage.svelte.test.ts:83
↓ 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 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 callersFunctionbutton
(name: string)
web/src/routes/(console)/settings/account/task4129SettleFences.svelte.test.ts:143
↓ 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 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:3724
↓ 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 callersFunctionclone
(m *appmanifest.Manifest)
internal/server/app_upgrade_diff_test.go:28
↓ 6 callersFunctioncoll
(schema: unknown)
web/src/lib/utils/unique.test.ts:18
↓ 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 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
← previousnext →2,501–2,600 of 28,840, ranked by callers