MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 5 callersFunctionsearchCmd
--- search ---
cmd/pad/cmd_item.go:3877
↓ 5 callersFunctionseedAttachmentNamed
(t *testing.T, s *Store, ws *models.Workspace, filename string)
internal/store/attachment_bidi_backfill_test.go:26
↓ 5 callersFunctionseedGrantChain
seedGrantChain inserts one access-token row in a chain. Returns the request_id so tests can revoke / list / audit by it.
internal/server/handlers_connected_apps_test.go:73
↓ 5 callersFunctionseedItemBody
seedItemBody creates an item with a valid body, then sets the stored body to body directly, as a row an older release left behind. ok is false on Post
internal/store/bug3839_invalid_utf8_version_test.go:77
↓ 5 callersFunctionseedStoredFields
seedStoredFields writes an item's fields blob through the STORE, below every write door. BUG-3163 closed create's `fields` and a full `fields` update
internal/server/reserved_seed_test.go:16
↓ 5 callersFunctionseedTwoNumberOnes
seedTwoNumberOnes puts two items numbered 1 in one workspace, one in each of two collections: per-collection numbering.
internal/store/bug3664_legacy_numbering_test.go:39
↓ 5 callersFunctionserverResponds
serverResponds reports whether an HTTP request to host:port gets a response.
internal/cli/server.go:283
↓ 5 callersFunctionsession
()
web/src/lib/stores/auth.svelte.ts:175
↓ 5 callersMethodsetCreated
(t *testing.T, it *models.Item, at string)
internal/server/handlers_calendar_test.go:78
↓ 5 callersMethodsetIdentity
(baseURL, userID string)
cmd/pad/cmd_watch_chat.go:170
↓ 5 callersMethodsetInstallStateTx
(tx *sql.Tx, installID, state string, bumpEpoch bool)
internal/store/app_lifecycle.go:91
↓ 5 callersMethodsetSourceContent
setSourceContent rewrites the source item's body — the attacker's own legitimate edit of an item they hold, which is the whole vector.
internal/server/handlers_items_copy_attachment_authz_test.go:94
↓ 5 callersMethodsetTxTimeouts
setTxTimeouts raises (or lowers) statement_timeout and lock_timeout for the rest of this transaction only (SET LOCAL), for the few long paths that leg
internal/store/tx_timeouts.go:23
↓ 5 callersFunctionsettle
settle sorts by instant and drops a repeated instant. It also masks a repeat the merge itself might yield, so nothing at the public API shows one; the
internal/schedule/engine.go:555
↓ 5 callersFunctionsettle
()
web/src/routes/messages/messagesRoutes.svelte.test.ts:133
↓ 5 callersMethodsettleLinkedPlan
settleLinkedPlan applies the rules that stand between a plan and its writes: the time budget, authority over each hard deadline, the one reason of a r
internal/store/commitment_cascade.go:346
↓ 5 callersMethodsettleNotifications
settleNotifications runs one UPDATE per chunk of ids, each conditioned on the claim and on the row still being pending, so a claimer whose lease lapse
internal/store/push_dispatch.go:267
↓ 5 callersFunctionsetupLeaseCLI
(t *testing.T)
cmd/pad/cmd_item_lease_test.go:69
↓ 5 callersFunctionsignInWith
signInWith posts a password login carrying the given cookies and optional bearer, and returns the recorder. A non-loopback RemoteAddr keeps it on the
internal/server/handlers_auth_replaced_session_test.go:22
↓ 5 callersFunctionskillHash
(b []byte)
internal/cli/skillstamp.go:36
↓ 5 callersFunctionskipInput
(sc *models.ItemSchedule, may bool)
internal/store/commitment_move_deadline_test.go:53
↓ 5 callersMethodslept
()
internal/materialize/supervisor_test.go:279
↓ 5 callersFunctionsortedActionNames
sortedActionNames returns def.Actions' keys in lexical order. Used for both the schema's action enum (so the ordering is stable across builds and repr
internal/mcp/catalog.go:723
↓ 5 callersFunctionsplitDispatcherBashBlocks
splitDispatcherBashBlocks returns the raw bodies of the dispatcher's fenced bash blocks, with strict fence pairing: a ```bash open must be closed by a
cmd/pad/agent_dispatcher_commands_test.go:178
↓ 5 callersFunctionstagingEntries
(t *testing.T, s *FSStore)
internal/attachments/staged_test.go:21
↓ 5 callersMethodstateDeclarations
* The names of every `let … = $state(…)` declaration in the script, in * order. The population the transient-state disposition tables are held * a
web/src/test/identityFenceSource.ts:148
↓ 5 callersFunctionstatementTimeoutMS
statementTimeoutMS is a positive timeout in whole milliseconds, rounded up: truncating one under 1ms would give 0, which PostgreSQL reads as no timeou
internal/store/version_tie_diagnostic.go:113
↓ 5 callersFunctionstatusColor
(status: unknown)
web/src/lib/utils/fieldColors.ts:103
↓ 5 callersMethodstopDecisionTick
stopDecisionTick signals the loop to exit and cancels an in-flight provider call, so Stop() does not wait out a network round trip before closing the
internal/server/decision_tick.go:185
↓ 5 callersFunctionstoredFields
(t *testing.T, s *Store, itemID string)
internal/store/item_entries_index_test.go:104
↓ 5 callersFunctionswapLock
swapLock replaces the lock with fn for the test and captures the warning.
internal/cli/credentials_bug3648_test.go:608
↓ 5 callersFunctiontabs
(strip: Element)
web/src/lib/components/connectWorkspaceModalTabs.svelte.test.ts:24
↓ 5 callersFunctiontabsRevision
Tests for the per-user tabs revision (BUG-3285). Like the other tab tests they run on whichever dialect testStore gives.
internal/store/workspace_tabs_revision_test.go:13
↓ 5 callersFunctiontagInput
()
web/src/lib/components/items/itemDetailIdentityLoad.svelte.test.ts:467
↓ 5 callersMethodtap
A single-finger tap: down then up at the same point, no move.
web/e2e/lib/attachment-viewer.ts:409
↓ 5 callersFunctiontask3392Bot
task3392Bot creates a bot through its one real door, then makes it CREDENTIAL-ELIGIBLE by SQL: a valid bcrypt hash of a known password and a verified
internal/server/task3392_bot_principal_test.go:35
↓ 5 callersFunctiontask3392SameAnswer
sameAnswer asserts two responses are byte-identical in status and body.
internal/server/task3392_bot_principal_test.go:68
↓ 5 callersFunctiontask3392SetKind
(t *testing.T, srv *Server, userID, kind string)
internal/server/task3392_bot_principal_test.go:60
↓ 5 callersFunctiontask3615Want
(t *testing.T, name string, sec store.CatchUpSection, want ...string)
internal/server/task3615_catch_up_test.go:140
↓ 5 callersFunctiontestImportRefSlugs
testImportRefSlugs uses the shared store harness: SQLite by default and Postgres under PAD_TEST_POSTGRES_URL (make test-pg), with no build tag.
internal/store/export_import_refslug_test.go:81
↓ 5 callersMethodtickLeases
tickLeases runs n ticks, each a full lease (plus a second) after the last.
internal/server/task4032_push_record_failure_test.go:48
↓ 5 callersMethodtimeout
timeout is opTimeout with the production default applied, so a zero-valued struct (a test that only set the fields it cared about) still bounds its ca
internal/server/session_presence_redis.go:301
↓ 5 callersFunctiontimingFixture
(t *testing.T, origin string, deadline bool)
internal/server/handlers_commitments_timing_test.go:49
↓ 5 callersFunctiontokenCreateCmd
()
cmd/pad/cmd_token.go:48
↓ 5 callersFunctiontoolCallBody
(tool, action string)
internal/server/task2308_mcp_scope_test.go:75
↓ 5 callersFunctiontotalFirstWrites
totalFirstWrites sums every pre-created series, so a count under the wrong label still shows up as a count.
internal/server/task3926_funnel_metrics_test.go:34
↓ 5 callersMethodtouchUserWrite
touchUserWrite records a write by the request's user (Store.TouchUserWrite) and, when it was that user's first ever, counts it on the funnel. kind is
internal/server/funnel_metrics.go:69
↓ 5 callersFunctiontp
A touch pointer event, dispatched on the IMAGE by default (the painted-image hit).
web/src/lib/components/common/Lightbox.svelte.test.ts:2761
↓ 5 callersFunctiontrackedEpochReadDetails
( block: string )
web/src/test/identityFenceSource.ts:482
↓ 5 callersFunctiontruncateBindableText
truncateBindableText cuts s to at most maxBytes bytes WITHOUT splitting a rune, so the result is still valid UTF-8. A plain s[:n] slices bytes. If by
internal/server/middleware_request_text.go:866
↓ 5 callersFunctiontruncateForSummary
truncateForSummary shortens a comment body (or any free-text field) to a single-line notification summary. Collapses newlines to spaces first so a mul
internal/server/handlers_comments.go:191
↓ 5 callersFunctionu11StoreFixture
(t *testing.T, installID string)
internal/store/task3414_redeem_race_test.go:21
↓ 5 callersFunctionunwrapErrorEnvelope
unwrapErrorEnvelope extracts the structured ErrorEnvelope from a CallToolResult. Test helper — fails fast if the result isn't shaped like a structured
internal/mcp/dispatch_http_envelope_uniform_test.go:277
↓ 5 callersMethodupsertAppWebhookTx
upsertAppWebhookTx makes the install's hook match spec, on the caller's transaction (provisioning, upgrade, the backfill). A nil spec, or one with no
internal/store/app_webhooks.go:72
↓ 5 callersFunctionuser
()
web/src/lib/stores/auth.svelte.ts:176
↓ 5 callersMethodwait
(ctx context.Context)
internal/server/handlers_events_cancel_test.go:31
↓ 5 callersFunctionwaitForReset
waitForReset blocks until the observer has recorded a reset FOR THE GIVEN REASON, returning the counts. It fails the test rather than returning empty,
internal/watchevents/redis_reconnect_test.go:120
↓ 5 callersMethodwaitForUpdate
()
internal/webhooks/dispatcher_test.go:84
↓ 5 callersFunctionwaitMonitorEnsureDM
(t *testing.T, done <-chan struct{})
cmd/pad/cmd_watch_chat_ensure_test.go:22
↓ 5 callersFunctionwalk
(dir: string)
web/src/mcp-app/bridge.test.ts:78
↓ 5 callersMethodwalk
walk feeds visit every occurrence in library order, with the key the walk is bounded on: the wall reading (wall-clock path) or the instant (elapsed pa
internal/schedule/engine.go:291
↓ 5 callersFunctionwantMentions
(t *testing.T, s *Store, commentID, label string, want ...*models.User)
internal/store/task3917_comment_mentions_test.go:54
↓ 5 callersFunctionwantValidation
(t *testing.T, err error, what string)
internal/store/bug3407_revalidate_test.go:54
↓ 5 callersFunctionwarnContentPendingFlush
warnContentPendingFlush prints one line to STDERR when a content write reached the collaborative document but not yet items.content (BUG-2995). It ma
cmd/pad/cmd_item.go:4740
↓ 5 callersFunctionwatchStreamDelivers
watchStreamDelivers is the stream's delivery decision. It answers workspace_access_changed itself and hands every other kind to watchNotificationVisib
internal/server/handlers_watch_events.go:916
↓ 5 callersFunctionwikiRowCount
These tests set package-level hooks, so they are not parallel. Parallel tests start only after every sequential one has finished, and the hooks ignore
internal/store/wiki_links_backfill_race_test.go:19
↓ 5 callersFunctionwireTestImageProcessor
wireTestImageProcessor (pure-Go build): wires the real pure-Go processor so thumbnail integration tests can derive variants against a working backend.
internal/server/testimageprocessor_purego_test.go:12
↓ 5 callersFunctionwithAuthorizer
(req AttachmentCopyRequest, auth AttachmentAuthorizer)
internal/store/attachments_copy_plan_test.go:1129
↓ 5 callersFunctionwithFlushError
withFlushError wraps w, a chi wrapper that unwraps to the writer beneath it. A writer that does not unwrap, or is not a Flusher, is returned as is: th
internal/server/flush_error_writer.go:39
↓ 5 callersMethodwithLocals
* Walks a nested function's body with `locals` as the names that resolve to * a binding of the unit rather than to component state (a * nested arr
web/src/test/identityFenceAst.ts:996
↓ 5 callersFunctionwithRequestDeadline
( fn: (signal: AbortSignal) => Promise<T>, opts: { idempotent: boolean; ms?: number; signal?: AbortSignal |
web/src/lib/api/client.ts:1011
↓ 5 callersFunctionwithoutCatchArms
(block: string)
web/src/test/identityFenceSource.ts:350
↓ 5 callersMethodworkspaceAccessUsers
workspaceAccessUsers reads the users who reach a workspace, for a lifecycle door that must read them BEFORE its own write (a purge deletes the rows).
internal/server/workspace_access_notify.go:92
↓ 5 callersFunctionworkspaceGroupCaller
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_workspace_groups.go:33
↓ 5 callersFunctionwriteAttachmentNotFound
writeAttachmentNotFound is the single denial writer for the blob read path. Every authorization-dependent refusal — attachment missing, wrong workspac
internal/server/handlers_attachments.go:569
↓ 5 callersFunctionwriteCommentDeleted
writeCommentDeleted refuses a write addressed to a tombstone (BUG-3252): an edit, a reply or a reaction. 409 rather than 404, because the comment is t
internal/server/handlers_comments.go:245
↓ 5 callersFunctionwriteDeadlineOwnerRequired
(w http.ResponseWriter)
internal/server/handlers_commitments.go:368
↓ 5 callersMethodwriteItemCommitment
(w http.ResponseWriter, r *http.Request, workspaceID string, item *models.Item, status int, note string)
internal/server/handlers_commitments.go:143
↓ 5 callersFunctionwritePIDRecord
writePIDRecord serialises rec to path.
internal/cli/pidfile.go:37
↓ 5 callersFunctionwriteScheduleError
writeScheduleError maps a store error from a schedule write onto the API and reports whether it handled err. Nothing is persisted on any of these.
internal/server/handlers_schedules.go:152
↓ 5 callersFunctionwriteV2Record
(t *testing.T, dir string, reg SessionRegistration)
internal/cli/session_registry_test.go:217
↓ 5 callersFunctionwriteWorkspaceGroupValidation
(w http.ResponseWriter, field, code, message string)
internal/server/handlers_workspace_groups.go:45
↓ 5 callersMethodwriteWorkspaceTabs
writeWorkspaceTabs answers with list, the caller's open set as a write left it (or as a read found it), filtered to the visible set. Every write answe
internal/server/handlers_workspace_tabs.go:80
↓ 5 callersFunctionwritesOf
(reqs []recordedRequest, method string)
cmd/pad/item_stdin_blank_test.go:69
↓ 5 callersFunctionyjsFrameHash
yjsFrameHash is the content_hash column value: the sha256 of the WHOLE frame, envelope included. The step2/update equivalence of fact (3) is NOT folde
internal/store/yjs_content_bearing.go:139
↓ 4 callersMethod#cancelTimer
()
web/src/lib/stores/chat.svelte.ts:154
↓ 4 callersFunctionAbandonedValuesForDoneField
AbandonedValuesForDoneField is the complement of PositiveTerminalValuesForDoneField within the terminal set: the terminal values that close an item WI
internal/models/terminal.go:169
↓ 4 callersMethodActive
Active reports whether any upload holds hash.
internal/attachments/inflight.go:64
↓ 4 callersMethodActorDisplay
ActorDisplay is the actor's display name, read in this transaction, so a write's stored author, response and notifications agree.
internal/store/fenced_items.go:177
↓ 4 callersMethodApplyExternalContentGuarded
ApplyExternalContentGuarded is ApplyExternalContent with the request marked `guarded` (BUG-3542): a tab that holds unconfirmed local edits refuses it
internal/collab/applier.go:471
↓ 4 callersMethodAsOpenChildren
AsOpenChildren returns the parsed open-children details when this APIError carries them, or nil otherwise. Returns nil for any error other than "open_
internal/cli/client.go:2420
↓ 4 callersMethodBackfillBidiAttachmentFilenames
BackfillBidiAttachmentFilenames rewrites every attachment row whose filename carries a Bidi_Control character to its served name. Called from server s
internal/store/attachment_bidi_backfill.go:77
↓ 4 callersMethodBackfillConventionRoles
BackfillConventionRoles copies a convention's `role` field into its empty agent-role column where the field names a live role. See the comment above f
internal/store/convention_role_backfill.go:73
↓ 4 callersMethodBackfillStructuredEntryIDs
BackfillStructuredEntryIDs gives every implementation note and decision-log entry already stored without a usable, unique id a persisted one (BUG-2788
internal/store/structured_entry_id_backfill.go:55
↓ 4 callersFunctionBlockedExtension
BlockedExtension reports whether ext (with its leading dot, any case) is one ValidateUpload refuses as extension_blocked: a known extension whose type
internal/attachments/mime.go:666
↓ 4 callersFunctionBuiltinStateHash
BuiltinStateHash hashes a body and a set of fields the way BuiltinEntry.Hash does, so an item's current state can be compared with an entry's. The fie
internal/collections/builtin.go:125
↓ 4 callersFunctionCarriedSourceValues
CarriedSourceValues narrows a source item's field map to the values that actually SURVIVED migration. The migrate doors need "which values carried",
internal/store/relation_referents.go:1870
↓ 4 callersMethodCheckLimit
CheckLimit checks whether a workspace operation is allowed under the owner's plan. Resolution order: 1. User plan_overrides[feature] — per-user overri
internal/store/limits.go:103
↓ 4 callersMethodClaimSoftDeletedAttachment
ClaimSoftDeletedAttachment is the orphan GC's atomic claim for a soft-deleted row past its grace window (BUG-2415): the DELETE re-asserts deleted_at i
internal/store/attachments.go:1235
↓ 4 callersMethodClaimStripeEvent
ClaimStripeEvent takes a Stripe event for handling (BUG-3561). The marker used to be final the moment it was written, BEFORE the handler ran, so a sid
internal/store/stripe_events.go:55
← previousnext →3,401–3,500 of 28,840, ranked by callers