MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 7 callersFunctionchatRouteCases
()
internal/server/handlers_chat_test.go:711
↓ 7 callersFunctionchooseStatus
(container: ParentNode, status: string)
web/src/lib/components/collections/statusPickerTestKit.ts:40
↓ 7 callersFunctioncodeFrom
codeFrom returns the code a decide redirect carries, or "" with the redirect's error.
internal/server/task3399_delegated_flow_test.go:133
↓ 7 callersFunctioncollapseAutosaveBursts
collapseAutosaveBursts walks the newest-first entries and drops a collab-snapshot version when the previous kept entry is also a collab-snapshot versi
internal/server/handlers_timeline.go:660
↓ 7 callersMethodcomments
()
internal/server/handlers_commitments_resolve_test.go:33
↓ 7 callersFunctioncommitmentSeed
(t *testing.T, s *Store)
internal/store/commitment_dates_migration_test.go:55
↓ 7 callersFunctionconnectWatchStreamWithHeaders
connectWatchStreamWithHeaders is connectWatchStream plus arbitrary request headers — the seam the session-identity headers need (PLAN-2558 S2, TASK-25
internal/server/handlers_watch_events_test.go:56
↓ 7 callersFunctionconsentScopedRequest
These tests cover BUG-2102: the OAuth consent allow-list was enforced only by RequireWorkspaceAccess, which fires solely for /{slug} path-param routes
internal/server/token_workspace_consent_scope_test.go:31
↓ 7 callersFunctioncontentDisposition
contentDisposition builds a Content-Disposition header value that carries name faithfully (BUG-3190). A name of printable ASCII with no quote or back
internal/server/content_disposition.go:28
↓ 7 callersMethodcount
(t *testing.T, q string, args ...any)
internal/store/schedule_copy_test.go:42
↓ 7 callersFunctioncountAttachmentsIn
(t *testing.T, s *Store, workspaceID string)
internal/store/items_cross_workspace_copy_test.go:115
↓ 7 callersFunctioncountReads
countReads counts credentials-file reads, and calls onRead (when set) with the read's 1-based number before it happens.
internal/cli/credentials_bug3828_test.go:29
↓ 7 callersFunctioncountsItem
countsItem makes an item created at createdAt whose history is the given (instant, status) steps. Its own create row is replaced, so the history is ex
internal/store/agenda_counts_test.go:16
↓ 7 callersFunctioncreateDrainCollection
(t *testing.T, srv *Server, workspaceID string)
internal/server/outbox_drain_test.go:186
↓ 7 callersFunctioncreateDrainItem
(t *testing.T, srv *Server, workspaceID, collectionID, title string)
internal/server/outbox_drain_test.go:200
↓ 7 callersFunctioncreateLegacyTitledItem
createLegacyTitledItem creates an item and then writes `title` onto the row DIRECTLY, bypassing the write-time validation in CreateItem/UpdateItem (mo
internal/store/items_test.go:57
↓ 7 callersFunctioncutoffTS
(t time.Time)
internal/store/push_dispatch.go:84
↓ 7 callersMethoddecide
(t *testing.T, params url.Values, decision, access string)
internal/server/task3399_delegated_flow_test.go:114
↓ 7 callersFunctiondecodeMCPSettings
PLAN-2310 U1: GET/PUT /api/v1/admin/mcp, through the router.
internal/server/handlers_admin_mcp_test.go:16
↓ 7 callersFunctiondecodeScheduleView
(raw json.RawMessage)
cmd/pad/cmd_schedule.go:138
↓ 7 callersFunctiondecodeWrite
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_items_bug3133_pending_guard_test.go:80
↓ 7 callersMethoddecompressedBundleCap
decompressedBundleCap is the ceiling on the tar stream: a multiple of the body cap for attachment bytes, plus both metadata files at their own cap.
internal/server/handlers_import_bundle.go:145
↓ 7 callersFunctiondiffUpgrade
diffUpgrade compares the installed manifest with the new one, using the fresh preview for the new artifacts' digests.
internal/server/app_upgrade_diff.go:90
↓ 7 callersFunctiondirectionEnv
(t *testing.T)
internal/cli/chat_direction_state_test.go:12
↓ 7 callersMethoddisconnect
()
web/src/lib/components/common/Lightbox.svelte.test.ts:1639
↓ 7 callersMethoddispatchResult2
(t *testing.T, cmd []string, input map[string]any)
internal/mcp/plan3578_patch_test.go:110
↓ 7 callersFunctiondisplayWidth
displayWidth returns the visible column width of s: escape and control sequences are stripped, then the remaining runes are counted. Every rune is app
internal/cli/format.go:184
↓ 7 callersMethoddo
(method, path string, body any)
internal/server/bug3334_fail_closed_test.go:229
↓ 7 callersMethoddoClaim
doClaim issues a POST /api/v1/oauth/claim with Bearer PAT auth. extraReqID, if non-empty, attaches a WithMCPTokenIdentity context override to simulate
internal/server/handlers_oauth_claim_test.go:104
↓ 7 callersMethodeffectBlocks
* Every `$effect(...)` body on the page. * * The population no other enumerator reaches, and the one BUG-3084 found * last and hardest. A reacti
web/src/test/identityFenceSource.ts:140
↓ 7 callersMethodenqueueDecisionJobsTx
enqueueDecisionJobsTx makes an evaluation owed for every question set that applies to the item, on the caller's transaction. COALESCING: one row per
internal/store/decisions.go:164
↓ 7 callersMethodenqueueNotificationsTx
enqueueNotificationsTx writes each fact for its user, and only for a user who has at least one registered device: a person who never installed the app
internal/store/notifications.go:62
↓ 7 callersMethodensureNULTriggersReporting
ensureNULTriggersReporting is ensureNULTriggers, reporting whether it actually RESTORED anything. The bool exists for tests and is not decoration: th
internal/store/nulcolumns.go:820
↓ 7 callersFunctionensureWorkspace
── Shared helpers ──────────────────────────────────────────────────────────── ensureWorkspace checks if the current directory is linked to a workspac
cmd/pad/init.go:407
↓ 7 callersFunctionfail
(kind: ImportTransportFailure)
web/src/lib/api/importUpload.ts:83
↓ 7 callersFunctionfieldsPatchOf
(t *testing.T, body map[string]any)
cmd/pad/item_column_fields_test.go:70
↓ 7 callersFunctionfilter
()
web/src/routes/(console)/agenda/agenda.svelte.test.ts:46
↓ 7 callersFunctionfiniteOr
* Coerce a possibly-NaN/Infinite measurement to something usable. * * Infinity takes the fallback rather than saturating at a bound: an infinite *
web/src/lib/attachments/zoom.ts:160
↓ 7 callersFunctionfireInstant
fireInstant is the one function that turns an occurrence into the instant its managed row is armed at, used by create, update and the firing path. at
internal/store/schedules.go:272
↓ 7 callersFunctionfloorRequest
PLAN-2310 DR-9 acceptance: the MCP/OAuth security floor.
internal/server/mcp_security_floor_test.go:20
↓ 7 callersFunctionflush
()
web/src/lib/stores/chat.svelte.test.ts:46
↓ 7 callersFunctionformatItemAsMarkdown
formatItemAsMarkdown turns the JSON body returned by `pad item show --format json` into a self-contained markdown document: heading with ref + title,
internal/mcp/resources.go:362
↓ 7 callersFunctionfsBackendKeys
fsBackendKeys lists every object the test's FS backend currently holds.
internal/server/handlers_import_bundle_husk_test.go:221
↓ 7 callersMethodgates
(t *testing.T, i int, acc models.CommitmentAccess)
internal/store/commitment_gates_outcome_test.go:45
↓ 7 callersFunctiongetConfiguredConfig
()
cmd/pad/configure.go:69
↓ 7 callersMethodgetContext
(ctx context.Context, path string, result interface{})
internal/cli/client.go:3176
↓ 7 callersMethodgraphAccessLoader
(r *http.Request, workspaceID string, mode commitmentAccessMode, seeds ...string)
internal/server/handlers_commitment_links.go:179
↓ 7 callersFunctiongraphField
(field, code string)
internal/server/handlers_commitment_links.go:88
↓ 7 callersFunctiongroupError
(t *testing.T, rr *httptest.ResponseRecorder, status int, code, field, detail string)
internal/server/handlers_workspace_groups_test.go:92
↓ 7 callersFunctionhasDocument
()
web/src/lib/a11y/viewerBackdrop.ts:60
↓ 7 callersFunctionheadlessTestServer
headlessTestServer builds an httptest.Server that speaks the minimal subset of the Pad API that the headless bootstrap path touches: - GET /api/v1/a
cmd/pad/setup_headless_test.go:31
↓ 7 callersFunctionhides
Visibility on the UUID and REF rungs (PLAN-2857 U4). It used to live only in the SERVER's post-resolution pass, which is gated on the field TYPE — so
internal/store/relation_visibility_rungs_test.go:24
↓ 7 callersFunctionhopTransitions
hopTransitions returns only the "real" status hops — excluding the create-time "entered initial status" seed row (id prefix "create_") that every crea
internal/store/status_transitions_test.go:37
↓ 7 callersFunctionhttpAckBody
()
internal/server/schedule_ack_test.go:30
↓ 7 callersFunctionidempotencyKey
idempotencyKey reads the caller's key: the header, else op_key. Empty when none; an error when it is malformed.
internal/server/handlers_items_patch.go:106
↓ 7 callersFunctionidentityTestServer
(t *testing.T, offset byte)
internal/server/handlers_server_identity_test.go:22
↓ 7 callersMethodinsertLinkTx
(tx *sql.Tx, workspaceID string, l linkRow)
internal/store/commitment_links.go:701
↓ 7 callersFunctioninsertOutboxRow
insertOutboxRow writes one outbox row directly, so a retention test can pin occurred_at / dispatched_at to values a real emit would never produce on d
internal/store/event_outbox_test.go:1542
↓ 7 callersMethodintrospectAppToken
introspectAppToken is the app API's token check, in-process (DOC-3371 §4 "Token middleware", steps 1–3). In order: an ACTIVE ACCESS token (a refresh t
internal/server/app_tokens.go:173
↓ 7 callersFunctioninvalidf
invalidf builds a ValidationError. Unexported: the store decides what is caller-visible, and a caller-supplied Reason from outside the package would b
internal/store/validation_error.go:56
↓ 7 callersFunctionisCancellation
isCancellation reports whether err represents a user-initiated abort from any interactive init prompt. Init RunEs use this to convert the sentinel int
cmd/pad/cancel.go:84
↓ 7 callersFunctionisFnNode
(n: Node | undefined | null)
web/src/lib/components/items/childIdentityFencePopulation.test.ts:380
↓ 7 callersFunctionisItemDone
isItemDone reports whether an item is in a terminal state for its collection's configured done field. Falls back to the default-terminal list against
internal/server/handlers_dashboard.go:333
↓ 7 callersFunctionisPublicAPIPath
isPublicAPIPath reports whether the given request path is an API endpoint that bypasses authentication entirely. These handlers must work even when th
internal/server/middleware_auth.go:416
↓ 7 callersFunctionisStale
(err error)
internal/store/schedule_resolve_test.go:85
↓ 7 callersFunctionitemPrefetchHandler
itemPrefetchHandler routes /api/v1/workspaces/{ws}/items/{ref} GETs to a static map keyed by ref so each link-test can declare just the items it needs
internal/mcp/dispatch_http_links_test.go:18
↓ 7 callersMethodjobItems
jobItems returns item_id -> number of rows, for the attention set.
internal/decision/effort_backfill_test.go:49
↓ 7 callersMethodjournalScheduleAfterTx
(tx *sql.Tx, id, change, key, role, before, actor string)
internal/store/schedule_journal.go:157
↓ 7 callersFunctionjsonRecord
(pid int, exe string)
internal/buildtools/bug4068_pidfile_test.go:27
↓ 7 callersFunctionkeepPathMessage
keepPathMessage is the client-facing text of a keep-path error. Only text this handler authored reaches it: a store.ValidationError's Reason (the stor
internal/server/handlers_import_bundle.go:1495
↓ 7 callersMethodkid
(title string)
internal/server/handlers_milestone_test.go:16
↓ 7 callersMethodlink
(t *testing.T, parent, child int)
internal/store/commitment_links_pg_test.go:59
↓ 7 callersFunctionlinkInvalid
(detail string)
internal/schedule/links.go:548
↓ 7 callersMethodlogActivityWithMeta
logActivityWithMeta logs activity with optional JSON metadata. For "updated" actions, uses debouncing to coalesce rapid successive saves (e.g., autosa
internal/server/handlers_documents.go:423
↓ 7 callersMethodmarker
(t *testing.T)
internal/decision/effort_backfill_test.go:70
↓ 7 callersMethodmerge
Merge a fetched page (see mergeBySeq).
web/src/lib/chat/model.ts:55
↓ 7 callersMethodmisses
(t *testing.T, i int)
internal/store/commitment_cancel_test.go:45
↓ 7 callersFunctionmount
(html: string)
web/src/lib/collections/paneFocus.svelte.test.ts:18
↓ 7 callersFunctionmustCollectionID
(t *testing.T, srv *Server, wsID, slug string)
internal/server/bug3334_fail_closed_test.go:169
↓ 7 callersMethodmustNotExist
mustNotExist is the counterfactual half of every refusal leg: the thing a 403-after-the-write would have left behind.
internal/server/handlers_workspace_create_consent_test.go:178
↓ 7 callersFunctionnewBUG3687Fixture
(t *testing.T, srv *Server)
internal/server/bug3687_activity_visible_page_test.go:33
↓ 7 callersFunctionnewCutterBus
newCutterBus builds a bus whose Redis connection can be severed, plus the miniredis behind it, so a test can publish directly to the channel while the
internal/watchevents/redis_reconnect_test.go:94
↓ 7 callersFunctionnewMentionFixture
(t *testing.T)
internal/store/needs_read_test.go:101
↓ 7 callersFunctionnewMonitorEnsureDM
(stderr io.Writer)
cmd/pad/cmd_watch_chat_ensure.go:33
↓ 7 callersFunctionnewReplayBuffer
(size int)
internal/events/bus.go:451
↓ 7 callersFunctionnewReplayBuffer
(size int)
internal/watchevents/watchevents.go:374
↓ 7 callersFunctionnewSeededFlippedBus
(t *testing.T)
internal/events/redis_generation_guard_test.go:35
↓ 7 callersFunctionnewSquatFixture
(t *testing.T)
internal/server/bug3382_verify_claim_test.go:30
↓ 7 callersFunctionnewStampFixture
newStampFixture makes the state the stamp exists for: an item whose op-log holds a row above its (NULL) watermark while items.content is current — wha
internal/server/bug3124_watermark_stamp_test.go:33
↓ 7 callersFunctionnewTabsFixture
(t *testing.T)
internal/server/handlers_workspace_tabs_test.go:23
↓ 7 callersFunctionnewWatchHarness
newWatchHarness posts size bytes to srv. statuses are what import-status answers, in order; the last repeats.
cmd/pad/bug3476_import_watch_test.go:57
↓ 7 callersFunctionnewWebhookTestWorkspace
newWebhookTestWorkspace creates a user + workspace so webhook FK constraints are satisfied, and returns the workspace ID.
internal/store/webhooks_test.go:16
↓ 7 callersFunctionnormalizeAgentName
(raw: string)
web/src/lib/chat/presence.ts:38
↓ 7 callersFunctionnotFoundCollErr
notFoundCollErr is the create/list wire shape for a missing collection.
internal/cli/collection_alias_test.go:10
↓ 7 callersMethodnotifications
TASK-4103 C2b-1 and C2b-2: the frozen instant of an overridden floating fire, and the fire stamp that keys the notification.
internal/store/schedule_fire_stamp_test.go:14
↓ 7 callersMethodnow
()
internal/materialize/supervisor_test.go:259
↓ 7 callersFunctionnullIfEmpty
(v string)
internal/store/webhook_deliveries.go:141
↓ 7 callersFunctionnumericInput
numericInput pulls an int64 out of a JSON-typed input value. JSON decoders deliver numbers as float64 (or json.Number when UseNumber()); we accept bot
internal/mcp/dispatch_http_routes.go:1879
↓ 7 callersFunctionoauthLoginBody
(email string)
internal/server/handlers_bug3322_totp_doors_test.go:45
↓ 7 callersFunctionon
(day: string)
web/src/lib/calendar/presentation.ts:465
← previousnext →2,201–2,300 of 28,840, ranked by callers