MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 5 callersFunctionreplayFrames
(doc: Y.Doc, frames: Uint8Array[])
web/src/lib/collab/materializer/replay.ts:32
↓ 5 callersFunctionreq
(title: string)
web/src/lib/stores/confirmDialog.svelte.test.ts:11
↓ 5 callersMethodrequireCommentVisible
requireCommentVisible checks that a comment's underlying item is in a visible collection. Writes a 404 and returns false if not.
internal/server/handlers_comments.go:603
↓ 5 callersMethodrequireConnectionOwner
requireConnectionOwner is the per-mutation prologue. Returns the (currentUser, requestID, ok) triple. On `ok=false` the response has already been writ
internal/server/handlers_connected_apps.go:341
↓ 5 callersMethodreserve
A place in the order, taken before an outside fetch is sent.
web/src/lib/stores/pendingInvitations.svelte.ts:60
↓ 5 callersMethodresolve
(body any)
internal/server/handlers_commitments_resolve_test.go:24
↓ 5 callersMethodresolveAttachmentParentItem
resolveAttachmentParentItem loads and validates the parent item of an attachment row that has ALREADY been established as live and belonging to the re
internal/server/attachments_authz.go:74
↓ 5 callersFunctionresolveBody
(t *testing.T, c recordedCall)
cmd/pad/schedule_end_test.go:30
↓ 5 callersFunctionresolveCollectionDoneFilter
resolveCollectionDoneFilter is shared by collection reads and transactional schedule resolution, including the fallback for undecodable collection JSO
internal/store/items.go:5337
↓ 5 callersMethodresolveCommitmentGraphItem
resolveCommitmentGraphItem has no archived fallback. Visibility failures and disappearing ends use the graph error adapter at every door.
internal/server/handlers_commitment_links.go:161
↓ 5 callersMethodresolvePushDispatchSettings
resolvePushDispatchSettings fills every unset knob and stores the result, so a tick reached directly never sees a zero (the outbox drain's lesson).
internal/server/push_dispatch.go:176
↓ 5 callersMethodresolveRemoteCaller
resolveRemoteCaller uses only request metadata for modern callers. Legacy callers can fall back to their session's registered identity.
internal/mcp/client_identity.go:221
↓ 5 callersMethodresolveRoleSlug
resolveRoleSlug rewrites a `--role <slug>` input into `agent_role_id <uuid>` by hitting the agent-roles endpoint and finding a matching role. Mirrors
internal/mcp/dispatch_http_advanced.go:112
↓ 5 callersFunctionresolveRoleValue
resolveRoleValue is the occurrence's seed wall displaced by the role's offset, or the override that replaces it, read in loc. It is the derivation the
internal/store/commitment.go:41
↓ 5 callersFunctionresp
(rows: ReturnType<typeof row>[], extra: Record<string, unknown> = {})
web/src/routes/(console)/needs/needsPage.svelte.test.ts:82
↓ 5 callersMethodrespondWithConnection
respondWithConnection re-fetches + writes the connection DTO post- mutation so the page can re-render without a separate list refresh. Stats lookup is
internal/server/handlers_connected_apps.go:367
↓ 5 callersMethodrestoreOne
(it *models.Item)
internal/server/handlers_restore_plan_limit_test.go:63
↓ 5 callersMethodrestoreOverride
BUG-3031: a version restore prunes the whole op-log and mints its undo point from items.content. Content-bearing op-log rows above the flush watermark
internal/server/handlers_item_versions_bug3031_test.go:21
↓ 5 callersMethodresync
The stream cannot vouch for what it missed: refetch now.
web/src/lib/stores/chat.svelte.ts:134
↓ 5 callersFunctionretryAfterStepUp
retryAfterStepUp runs call and, only when the server answers step_up_required, runs the step-up prompt and retries exactly once. Prompts go to errOut.
cmd/pad/cmd_token.go:382
↓ 5 callersFunctionretryOnParentSetChanged
retryOnParentSetChanged runs fn, retrying (up to maxParentLockRetries) while it returns errParentSetChanged. fn MUST open and own its own transaction
internal/store/items.go:5775
↓ 5 callersFunctionretryableWithKey
retryableWithKey: no API answer at all (a transport error) or a 5xx.
internal/cli/client.go:1405
↓ 5 callersFunctionrevalidateAttachmentMetadata
( workspaceSlug: string, uuid: string, getDownloadUrl: AttachmentUrlBuilder, options?: MetadataFetchOption
web/src/lib/components/editor/attachment-metadata.ts:351
↓ 5 callersMethodrunAppPendingSweep
runAppPendingSweep is one pass.
internal/server/app_pending_sweep.go:71
↓ 5 callersFunctionrunBUG4066Child
(t *testing.T, which string, extra ...string)
cmd/pad/bug4066_relative_data_dir_test.go:54
↓ 5 callersFunctionrunCommentCmd
(t *testing.T, stub *commentStub, cmd *cobra.Command, args ...string)
cmd/pad/comment_edit_delete_test.go:52
↓ 5 callersFunctionrunCreate
(t *testing.T, args ...string)
cmd/pad/task3585_create_retry_test.go:45
↓ 5 callersFunctionrunScriptIn
runScriptIn is runScript with the SCRIPT's own working directory set, which is what a refresh run from a worktree looks like (BUG-3196).
internal/buildtools/install_refresh_test.go:1676
↓ 5 callersFunctionrunWatchMonitor
(ctx context.Context)
cmd/pad/cmd_watch.go:508
↓ 5 callersFunctionsame
()
web/e2e/chat-shell-layout.spec.ts:91
↓ 5 callersFunctionsameBytes
sameBytes fails unless a and b are the same response: status, every header, and the body byte for byte.
internal/server/task3939b2b_notification_test.go:39
↓ 5 callersFunctionsampleConvention
()
internal/artifact/encode_test.go:38
↓ 5 callersFunctionsaveFresh
(t *testing.T)
internal/cli/credentials_bug3648_test.go:368
↓ 5 callersMethodscanActivitiesWithNames
scanActivitiesWithNames is scanActivitiesWithUser plus the read-time names a row needs beyond its own actor: today, OriginalActorName on a schedule_re
internal/store/activities.go:1095
↓ 5 callersFunctionscanReminder
(row interface{ Scan(...any) error })
internal/store/reminders.go:100
↓ 5 callersFunctionscheduleRolesFromExport
(r *models.ScheduleRolesExport)
internal/store/commitment.go:78
↓ 5 callersFunctionschema
(options: string[])
web/e2e/bug-3043-lane-draft-rehome.spec.ts:31
↓ 5 callersFunctionschemaHasField
schemaHasField returns true if the collection schema defines a field with the given key.
internal/server/handlers_items.go:4387
↓ 5 callersFunctionscopeBindings
(fn: Node)
web/src/test/identityFenceAst.ts:764
↓ 5 callersFunctionscrubItemPII
scrubItemPII returns a copy of the item with the JOIN-POPULATED assignee identity removed, for storage in an event payload. An outbox payload is a FR
internal/store/event_outbox.go:698
↓ 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 callersFunctionseqStamp
seqStamp reads an entry's chain stamp. Values are strings (the handlers' metadata maps are string-valued) or numbers; ok is false without both.
internal/store/activity_seq_chain.go:82
↓ 5 callersFunctionseriesMoveFixture
The move scope: occurrence (the default) or series, which also writes the root's native target offset from the outstanding occurrence on.
internal/server/commitment_move_scope_test.go:17
↓ 5 callersFunctionservedRowETag
(t *testing.T, srv *Server, id string)
internal/server/handlers_attachments_cache_test.go:32
↓ 5 callersFunctionserverResponds
serverResponds reports whether an HTTP request to host:port gets a response.
internal/cli/server.go:307
↓ 5 callersFunctionsession
()
web/src/lib/stores/auth.svelte.ts:175
↓ 5 callersFunctionsessionCookieSet
sessionCookieSet reports whether the response set a non-empty session cookie.
internal/server/handlers_bug3322_totp_doors_test.go:21
↓ 5 callersMethodset
(key string, p float64)
internal/decision/attention_test.go:259
↓ 5 callersMethodset
(workspaceID string, info *store.WorkspaceStorageInfo)
internal/server/handlers_storage.go:79
↓ 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:386
↓ 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:300
↓ 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 callersFunctionsortedRefs
(refs ...string)
internal/server/bug3331_search_scope_test.go:205
↓ 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 callersFunctionsseEventVisibleFor
sseVisibility is the per-connection event-filter state. All four fields are rebuilt atomically on each revalidation tick so that permission-tightening
internal/server/handlers_events.go:717
↓ 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 callersFunctionstoredFields
(t *testing.T, s *Store, itemID string)
internal/store/item_entries_index_test.go:104
↓ 5 callersFunctionsurfacedKeys
(ds []models.ItemDecision)
internal/decision/task3618_surfaced_test.go:12
↓ 5 callersFunctionswapLock
swapLock replaces the lock with fn for the test and captures the warning.
internal/cli/credentials_bug3648_test.go:608
↓ 5 callersFunctiont4590Occurrence
(t *testing.T, sc *models.ItemSchedule)
internal/store/task4590_move_snooze_test.go:31
↓ 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:473
↓ 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 callersFunctiontask3392SetKind
(t *testing.T, srv *Server, userID, kind string)
internal/server/task3392_bot_principal_test.go:60
↓ 5 callersFunctiontask3397UpgradeFix
TASK-3397 (U8b2): the upgrade transaction's lock order.
internal/store/task3397_upgrade_test.go:13
↓ 5 callersFunctiontask4690Bulk
TASK-4690: a bulk assign records the same "assigned: <before> → <after>" change text and assignee id stamp the single PATCH does (TASK-4684), so the n
internal/server/task4690_bulk_assign_activity_test.go:17
↓ 5 callersFunctiontask4693Create
(client *cli.Client, stdin string, errOut *bytes.Buffer)
cmd/pad/task4693_token_stepup_test.go:28
↓ 5 callersFunctiontask4693SignedIn
task4693SignedIn sets the session's stored sign-in time; nil stores NULL.
internal/server/handlers_tokens_stepup_test.go:52
↓ 5 callersFunctiontask4699Commit
(t *testing.T, w *task4699World, title string, body map[string]any)
internal/server/task4699_placement_test.go:174
↓ 5 callersFunctiontask4699Detail
(m map[string]any)
internal/server/task4699_placement_test.go:64
↓ 5 callersFunctiontask4723Day
task4723Day is the New York calendar day n days from now, and the instant that day starts at for a caller whose day starts at minute.
internal/server/task4723_placement_test.go:34
↓ 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 callersFunctiontestMCPSessionDigest
(id string)
internal/server/middleware_mcp_session_test.go:448
↓ 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 callersFunctiontimingFixture
(t *testing.T, origin string, deadline bool)
internal/server/handlers_commitments_timing_test.go:49
↓ 5 callersFunctiontokenRotateCmd
()
cmd/pad/cmd_token.go:195
↓ 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:2773
← previousnext →3,701–3,800 of 31,685, ranked by callers