MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 2 callersFunctionapplyEditsToText
(body: string, edits: PatchEdit[])
web/src/lib/collab/patchApply.ts:71
↓ 2 callersMethodapplyFieldMigrationsTx
applyFieldMigrationsTx runs the per-row field-value migration loop on an EXISTING transaction. Extracted so UpdateCollection can run the schema change
internal/store/collections.go:1051
↓ 2 callersFunctionapplyResultMode
applyResultMode keeps only the result channel the configured client exposes to its model. Errors and one-channel results stay untouched so compact mod
internal/mcp/catalog.go:591
↓ 2 callersFunctionapplyRetag
* Re-stamp `collection_slug` on every cached row of one collection * (BUG-2601). Matches by STABLE `collection_id` — never by old slug, * which a di
web/src/lib/stores/localIndex.svelte.ts:457
↓ 2 callersMethodapplyToDSN
applyToDSN returns connStr with the limits appended as startup parameters. Startup parameters (not a session SET) are what make every connection the p
internal/store/runtime_limits.go:40
↓ 2 callersFunctionapplyVersion
(content string, v tieVersion)
internal/store/version_tie_diagnostic.go:413
↓ 2 callersMethodappsSettings
()
internal/server/handlers_apps_install.go:711
↓ 2 callersFunctionarchivedCollections
(t *testing.T, s *store.Store)
internal/store/collections_archive_test.go:20
↓ 2 callersFunctionargs
(body: string)
web/src/lib/playbooks/argumentsRoundTrip.test.ts:29
↓ 2 callersFunctionarmSeenVisible
()
web/src/lib/services/visibility.svelte.ts:59
↓ 2 callersFunctionarmStateKey
armStateKey derives the per-session key and reports whether the headless (per-repo) fallback was used. socket wins when present; cwd is the fallback.
internal/cli/session_arm_state.go:160
↓ 2 callersFunctionarmStateOwnerAlive
armStateOwnerAlive implements the mandatory liveness check (constraint 2), hardened against owner-identity reuse. A stale armed file must never arm a
internal/cli/session_arm_state.go:378
↓ 2 callersFunctionarmedSessionCounts
(sessions: readonly LiveSession[])
web/src/lib/chat/presence.ts:96
↓ 2 callersFunctionarmedSessions
Sessions payload with `armed` accepting entries and `unarmed` * connected-but-not-accepting entries (PLAN-2613 S4). Armed ones come first * so the
web/src/lib/components/items/PushToAgentDialog.svelte.test.ts:67
↓ 2 callersFunctionarr
(x, ...keys)
plugin/hooks/register.js:80
↓ 2 callersFunctionarrowStep
(order, cur, by, listEntry)
plugin/hooks/register.js:317
↓ 2 callersFunctionartifactCollectionSlug
(collections: readonly Collection[], kind: ArtifactKind)
web/src/lib/collections/artifactSlug.ts:16
↓ 2 callersFunctionartifactExportFilename
artifactExportFilename builds the download filename for an exported item: "<slug>.pad.md".
internal/server/handlers_artifact_export.go:149
↓ 2 callersFunctionartifactIsBindableText
artifactIsBindableText reports whether a decoded artifact carries a NUL in any string it would take into the store. It works by MARSHALLING the artif
internal/server/artifact_import.go:279
↓ 2 callersFunctionasShallow
(path: string)
web/src/lib/collections/paneHostController.chatLatch.svelte.test.ts:15
↓ 2 callersFunctionasUpdateConflictError
asUpdateConflictError reports whether err is (or wraps) a store.UpdateConflictError and returns it. Handlers use it to branch the generic upstream-err
internal/server/handlers_items_open_children_guard.go:652
↓ 2 callersFunctionaside
()
web/src/lib/components/layout/Sidebar.svelte.test.ts:77
↓ 2 callersFunctionask
(extra: Record<string, unknown> = {})
web/src/routes/(console)/agenda/agenda.svelte.test.ts:1547
↓ 2 callersMethodasked
()
cmd/pad/task3612_link_repoint_test.go:54
↓ 2 callersFunctionassertAckLossKeepsTheWorkspace
(t *testing.T, srv *Server)
internal/server/handlers_cloud_member_ack_test.go:79
↓ 2 callersFunctionassertAgendaRoles
(t *testing.T, m map[string]any, want map[string]string)
internal/server/handlers_agenda_test.go:138
↓ 2 callersFunctionassertBlockedUntilRelease
assertBlockedUntilRelease runs write concurrently with a provisioning held inside its transaction: write must not finish while it is held, and must fi
internal/store/task3397_provision_test.go:129
↓ 2 callersFunctionassertBulkAllSucceeded
assertBulkAllSucceeded fails if any item landed in the envelope's `failed` list. Without this a dropped coercion reads as a passing 200.
internal/server/handlers_items_field_coercion_test.go:669
↓ 2 callersFunctionassertBusyWording
(t *testing.T, rr *httptest.ResponseRecorder, wantWrite bool, unknownOverride string)
internal/server/task4278_error_mapping_test.go:176
↓ 2 callersFunctionassertCarriesEntry
assertCarriesEntry checks the item records key at the entry's current hash AND still holds that entry's text, so the recorded hash is true of it.
internal/server/task3462_builtin_origin_test.go:68
↓ 2 callersFunctionassertChatRows
(t *testing.T, s *Store, convID string, conversations, members, messages int)
internal/store/conversations_test.go:1433
↓ 2 callersFunctionassertConnInterfaces
assertConnInterfaces checks, on a REAL connection the caller already asked for, that the base implements everything the wrapper advertises flatly. It
internal/store/nulguard.go:549
↓ 2 callersFunctionassertContentPatchAckLossCommitsOnce
(t *testing.T, srv *Server)
internal/server/handlers_items_ack_loss_test.go:82
↓ 2 callersFunctionassertCounts
assertCounts pins the privacy half of the contract: the numbers stay at the VISIBLE total even though the marker admits there is more.
internal/server/handlers_items_copy_preflight_test.go:1653
↓ 2 callersFunctionassertDismissedReminderCarrier
(t *testing.T, s *Store, ws, item string, sc *models.ItemSchedule)
internal/store/reminder_collision_test.go:308
↓ 2 callersFunctionassertEachEntryOnce
(t *testing.T, seen []string, want ...string)
internal/server/handlers_timeline_structured_test.go:378
↓ 2 callersFunctionassertGapBurstYieldsOneThenOne
assertGapBurstYieldsOneThenOne drives a burst of gaps through one connection and asserts both halves of the bound: exactly ONE announcement inside the
internal/server/handlers_stream_gap_test.go:442
↓ 2 callersFunctionassertInterchangeGoldenCoverage
assertInterchangeGoldenCoverage fails when the golden no longer carries one of the shapes the round trip exists to check, so a regeneration that lost
internal/server/interchange_golden_test.go:559
↓ 2 callersFunctionassertKeptThroughTheDoor
assertKeptThroughTheDoor is the KEEP door's outcome, and each clause is what the dropped-workspace arm did NOT do: the 400 names the slug, the workspa
internal/server/handlers_import_bundle_bug3184_test.go:132
↓ 2 callersFunctionassertMentionsLinear
assertMentionsLinear times ExtractMentions on body(n) and body(4n), best of five each, and fails if 4x the input costs 8x the time or more: about 4x w
internal/links/mentions_test.go:86
↓ 2 callersFunctionassertNoSessionMinted
(t *testing.T, srv *Server, rr *httptest.ResponseRecorder, email string)
internal/server/handlers_auth_admin_register_test.go:38
↓ 2 callersFunctionassertNonRetryableRemapAnswer
TASK-4278. ANY failure of the import's attachment remap keeps the workspace, marks it partial and answers the non-retryable 500, through one helper, w
internal/server/task4278_remap_failures_test.go:25
↓ 2 callersFunctionassertNothingDeleted
assertNothingDeleted counts, with raw SQL, that the whole deletion rolled back: the user, the session, the membership, the authored attribution, and t
internal/store/task4278_ctx_test.go:152
↓ 2 callersFunctionassertNothingLeft
assertNothingLeft: no event left the process and the reminder is still armed — the same three assertions TestFirePathInvariant makes, so the pin and t
internal/store/reminders_pg_test.go:143
↓ 2 callersFunctionassertOnlyAllowed
(t *testing.T, writes []storetest.Write)
internal/appstore/items_test.go:98
↓ 2 callersFunctionassertOnlyAllowedCommentWrites
(t *testing.T, writes []storetest.Write)
internal/appstore/comments_test.go:42
↓ 2 callersFunctionassertOwnSnapshot
(t *testing.T, s *Store, got *models.Item, what string)
internal/store/bug2717_intx_snapshot_test.go:56
↓ 2 callersFunctionassertPlainStreamRefusal
(t *testing.T, resp *http.Response, body []byte)
internal/server/bug3835_mcp_keepalive_test.go:125
↓ 2 callersFunctionassertRefsAreLocal
assertRefsAreLocal fails unless the workspace's item content and resolved version bodies carry at least one reference each, and every reference names
internal/server/bug3656_import_remap_test.go:56
↓ 2 callersFunctionassertRefused
BUG-2800: the watch bus had no way to refuse a subscriber, so the SSE handler admitted streams on an instance that could deliver nothing to them. Thes
internal/watchevents/subscribe_refused_test.go:17
↓ 2 callersMethodassertRefusedIntact
assertRefusedIntact checks a refusal wrote nothing: body, seq, version count and the pending op-log row are all where they were.
internal/server/handlers_item_versions_bug3031_test.go:70
↓ 2 callersFunctionassertRetiresCursor
assertRetiresCursor checks the frame carries an id: line whose value is empty. A mid-stream sync_required that left the cursor standing would have the
internal/server/handlers_stream_gap_test.go:272
↓ 2 callersFunctionassertRolledBack
BUG-3475: a TRANSPORT failure (a stalled upload, a reset, a client that went away) rolls the partial workspace back instead of keeping it, and every k
internal/server/handlers_import_bundle_bug3475_test.go:24
↓ 2 callersFunctionassertSameFields
assertSameFields compares two `fields` blobs by VALUE, not by bytes. The column is TEXT on SQLite — which hands back exactly what was written — and JS
internal/store/items_preimage_test.go:18
↓ 2 callersFunctionassertSetAsideRefusal
(t *testing.T, f bug3133Fixture, before *models.Item, rrCode int, body string, code string, details map[string
internal/server/bug3244_set_aside_guard_test.go:44
↓ 2 callersFunctionassertSignedIn
(t *testing.T, srv *Server, rr *httptest.ResponseRecorder, email string)
internal/server/handlers_auth_admin_register_test.go:138
↓ 2 callersFunctionassertUnmarkedNotFound
assertUnmarkedNotFound is the control: a 404 about something INSIDE a readable workspace must not carry the marker, or a client would purge a workspac
internal/server/bug3069_workspace_not_found_test.go:59
↓ 2 callersFunctionassertUnreadableLog
(t *testing.T, raw string, want map[string]int)
internal/store/reminder_unreadable_test.go:169
↓ 2 callersFunctionassertVerificationsArrived
assertVerificationsArrived checks the destination carries the same verdicts verbatim, with the item and via ids remapped, and judges them the same.
internal/store/task3617_verifications_export_test.go:57
↓ 2 callersMethodassigneeRows
(t *testing.T, scheduleID string)
internal/store/commitment_c1_test.go:454
↓ 2 callersFunctionassignmentRoot
The root identifier an assignment target writes through.
web/src/lib/components/items/childIdentityFencePopulation.test.ts:629
↓ 2 callersFunctionat
(n: Node)
web/src/test/identityFenceAst.ts:866
↓ 2 callersFunctionatNine
The local date at 09:00, `days` after `now`'s date.
web/src/lib/components/needs/deferTimes.ts:8
↓ 2 callersFunctionatoiSafe
atoiSafe returns the decimal value of s, or 0 if s is not a positive decimal integer. Used by promptForMode where 0 (no match) is always an invalid mo
cmd/pad/configure.go:275
↓ 2 callersFunctionats
(occ []Occurrence)
internal/schedule/nextbetween_test.go:36
↓ 2 callersFunctionattachBundle
(container: HTMLElement)
web/src/lib/components/layout/createWorkspaceModalImportProgress.svelte.test.ts:61
↓ 2 callersMethodattachImportStatus
attachImportStatus sets ws.ImportStatus from the partial-import marker (TASK-896). The note is shown to owners and instance admins only; anyone else w
internal/server/handlers_workspaces.go:625
↓ 2 callersMethodattachment
attachment inserts an attachment row bound to itemID ("" = unbound), optionally a variant of parentID.
internal/appstore/comments_test.go:78
↓ 2 callersMethodattachmentCallerIsRestrictedQ
attachmentCallerIsRestrictedQ is attachmentCallerIsRestricted parameterized over its executor (see resolveAttachmentParentItemQ).
internal/server/attachments_authz.go:134
↓ 2 callersFunctionattachmentFilenameSource
attachmentFilenameSource is the filename_source an insert writes (BUG-2819). An unset value is stored as "unknown" — the honest answer for a row whose
internal/store/attachments.go:63
↓ 2 callersFunctionattachmentIDPathSegment
attachmentIDPathSegment renders an attachment id as a single, inert URL path segment. The id reaches these URLs from item content ("pad-attachment:" r
internal/cli/client.go:2970
↓ 2 callersFunctionattachmentImageSrc
(raw: string, origin: string)
web/src/lib/chat/urlPolicy.ts:51
↓ 2 callersFunctionattachmentLinkUrl
(ctx: AttachmentActionContext)
web/src/lib/attachments/actions.ts:153
↓ 2 callersFunctionattachmentRefsIn
attachmentRefsIn returns the distinct attachment UUIDs referenced by the copied content and the final destination fields, in first-appearance order (c
internal/store/attachments_copy_plan.go:643
↓ 2 callersFunctionattachmentRowsFor
(t *testing.T, srv *Server, workspaceID string)
internal/server/handlers_import_bundle_husk_test.go:164
↓ 2 callersFunctionattachmentURL
attachmentURL returns the canonical download URL for an attachment. Uses the workspace slug from the request — the same shape every other API endpoint
internal/server/handlers_attachments.go:545
↓ 2 callersMethodattachmentUsage
attachmentUsage recounts the install's live ORIGINAL attachment rows. The caller holds the seq lock (see LOCKS above).
internal/store/fenced_attachments.go:78
↓ 2 callersFunctionattachmentVariantPath
attachmentVariantPath builds the attachment blob URL with an optional ?variant= query (the resource layer always requests thumb-md).
internal/mcp/resources_http.go:315
↓ 2 callersFunctionattentionEntries
(entries: AgendaEntry[], priorityList: AgendaWorkEntry[])
web/src/lib/calendar/presentation.ts:328
↓ 2 callersFunctionattentionKey
One schedule has at most one outstanding occurrence, so that occurrence is keyed by its schedule.
web/src/lib/calendar/presentation.ts:318
↓ 2 callersMethodattributionQueryQ
(q Queryer, table, installCol string, ids []string)
internal/store/app_attribution.go:34
↓ 2 callersFunctionauc
auc is the Mann-Whitney U statistic over positives vs negatives, ties counted half.
scripts/decision-eval/attention/main.go:290
↓ 2 callersFunctionaudienceFixture
TASK-4238 (calendar P1b): a schedule's audience routes the push. A fire of a managed (schedule) reminder pushes to its recipient only when the audienc
internal/store/schedule_audience_push_test.go:17
↓ 2 callersFunctionauditLogDetail
auditLogDetail is the Details column of `pad workspace audit-log`: the row's metadata, with a `changes` member passed through the activity display rul
cmd/pad/cmd_workspace.go:1491
↓ 2 callersFunctionauditedMCPServerWith
auditedMCPServerWith is auditedMCPServer with the metrics call-name predicate passed through SetMCPTransport, the production door (BUG-2817).
internal/server/middleware_mcp_audit_test.go:41
↓ 2 callersFunctionauth
(f: SuiteFixture)
web/e2e/bug-3240-collab-seed.spec.ts:20
↓ 2 callersFunctionauthHeaders
* BUG-2602 — ItemDetail's collection writes raced under fences that * ordered STARTS, and loadData's cross-collection escape hatch admitted * any ge
web/e2e/bug-2602-collection-adopt-race.spec.ts:34
↓ 2 callersFunctionauthHeaders
(fixture: SuiteFixture)
web/e2e/bug-3159-roles-children-touch-drag.spec.ts:38
↓ 2 callersFunctionauthHeaders
* BUG-3157 — on the mobile board, a tap on a card's status chip moved the card * a lane. The chip was a one-tap CYCLE control: it advanced the status
web/e2e/bug-3157-status-chip-tap-does-not-move.spec.ts:21
↓ 2 callersFunctionauthHeaders
* BUG-3160 — an open item timeline never showed an activity row the debounce * merge had changed. `mergeIntoUnlinkedActivity` folds a second update b
web/e2e/bug-3160-timeline-merged-row.spec.ts:19
↓ 2 callersFunctionauthHeaders
(fixture: SuiteFixture)
web/e2e/bug-3040-refused-field-write-reverts.spec.ts:30
↓ 2 callersFunctionauthHeaders
* BUG-2281 regression e2e — the inline "New quick action" form must open * and stay open. * * Found during the BUG-2129 switch-safety reconciliatio
web/e2e/quickactions-inline-form.spec.ts:35
↓ 2 callersFunctionauthHeaders
(fixture: SuiteFixture)
web/e2e/bug-3038-list-retry-rederives.spec.ts:23
↓ 2 callersFunctionauthHeaders
* TASK-2231 (audit C114): the tag and starred pages fetched full-content items * (and their own collection list) to render card summaries the local i
web/e2e/task-2231-tag-starred-from-index.spec.ts:13
↓ 2 callersFunctionauthHeaders
(fixture: SuiteFixture)
web/e2e/pane-controller.spec.ts:115
↓ 2 callersFunctionauthJson
(fixture: SuiteFixture)
web/e2e/task-2210-dashboard-caps.spec.ts:20
↓ 2 callersFunctionauthJson
(fixture: SuiteFixture)
web/e2e/bug-3492-list-jk-rendered-order.spec.ts:27
↓ 2 callersMethodauthServerIssuerURL
===================================================================== Helpers shared with handlers_well_known.go for the discovery doc ===============
internal/server/handlers_oauth.go:2431
↓ 2 callersMethodauthorizeCopyDestination
authorizeCopyDestination is the ladder's destination half (steps 4 and 5): workspace-level access to the destination, then the collection lookup and i
internal/server/handlers_items_copy_resolve.go:220
↓ 2 callersFunctionautoPopulateDates
autoPopulateDates auto-fills start_date/end_date when status changes to active/completed. Only sets dates if the schema defines those date fields and
internal/server/handlers_items.go:4360
← previousnext →6,501–6,600 of 28,840, ranked by callers