MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 4 callersFunctioncliAuthPollServer
cliAuthPollServer builds an httptest.Server serving GET api/v1/auth/cli/sessions/{code}, delegating each request to handle so tests can script status
cmd/pad/cmd_auth_poll_test.go:43
↓ 4 callersFunctioncliPositionals
cliPositionals returns the positionals of a BuildCLIArgs vector: everything after its `--` terminator, which is where BUG-3142 put them. Nil when the
internal/mcp/dispatch_test.go:487
↓ 4 callersFunctionclick
(el: HTMLElement)
web/src/routes/(console)/needs/needsPage.svelte.test.ts:91
↓ 4 callersMethodclientWith
(token string)
cmd/pad/cmd_auth_2fa_test.go:58
↓ 4 callersFunctionclock
(time?: string)
web/src/lib/commitment.ts:83
↓ 4 callersMethodclose
()
web/src/lib/collab/wsProviderCursor.svelte.test.ts:23
↓ 4 callersFunctionclosedReceiveBus
BUG-2741: Close cancels the receive loop's context AND closes its pubsub, so both select cases can be ready at once and Go picks one at random. When i
internal/watchevents/bug2741_closed_receive_test.go:22
↓ 4 callersFunctioncollect
collect gathers every dependency the given tree declares.
cmd/depages/main.go:175
↓ 4 callersFunctioncollectServerInfo
(cfg *config.Config)
cmd/pad/server_info.go:163
↓ 4 callersMethodcollection
(ws, name, schema string)
internal/server/bug2367_migrate_doors_test.go:54
↓ 4 callersFunctioncollectionTraits
collectionTraits fetches a collection over the API and parses its traits.
internal/server/handlers_collection_traits_test.go:168
↓ 4 callersFunctioncolls
colls are collections with the open/done schema, so isOpen can judge a target; a target whose collection is missing is not open (fail closed).
internal/server/needs_scorers_test.go:31
↓ 4 callersFunctioncommentEntryByID
(entries []models.TimelineEntry, id string)
internal/server/handlers_timeline_comment_agent_test.go:41
↓ 4 callersFunctioncommentServer
commentServer answers capabilities (idempotency_keys = honorsKeys) and scripts the statuses of the comment POSTs it receives.
cmd/pad/task3585_comment_retry_test.go:13
↓ 4 callersMethodcommitUserTabsTx
commitUserTabsTx finishes a tab write that holds lockUserTabsTx: it bumps the user's revision, reads the list as this write leaves it, and commits. Ev
internal/store/workspace_tabs.go:161
↓ 4 callersFunctioncommitmentAssigneeGuard
commitmentAssigneeGuard preserves the snapshot the authority decision used. Workspace owners can act regardless of assignment.
internal/server/handlers_commitments.go:30
↓ 4 callersMethodcommitmentWriteAllowed
commitmentWriteAllowed is the single decision for writing an item's commitment. Its consumers: the POST and PATCH commitment doors (requireCommitmentW
internal/server/handlers_commitments.go:64
↓ 4 callersFunctioncompactAll
(t *testing.T, s *store.Store, itemID string)
internal/store/bug3747_compaction_generation_test.go:28
↓ 4 callersFunctioncompactToolDescription
compactToolDescription reflows a catalog description for the wire (TASK-3536). The source keeps its hand-wrapped layout, which reads well in Go; on th
internal/mcp/catalog.go:403
↓ 4 callersFunctioncompactionCols
(t *testing.T, s *store.Store, backend, itemID string)
internal/store/task3531_compaction_test.go:54
↓ 4 callersMethodcompleteTx
completeTx records the write's answer in its transaction, guarded by the claim token; its error rolls the write back.
internal/server/idempotency_keys.go:31
↓ 4 callersMethodcompletionAtClock
TASK-4103 C2b-ii r3 fixes. Each test is red at 3d50ef5e6: production passes time.Now() with nanoseconds, and the resolve tests' clock now does too. co
internal/store/schedule_resolve_fix3_test.go:16
↓ 4 callersMethodcomputeWatchAccessVisibility
computeWatchAccessVisibility resolves a user's current access within one workspace, built from the SAME primitives computeSSEVisibility uses (handlers
internal/server/handlers_watch_access.go:200
↓ 4 callersFunctioncontainsWorkspace
(list []models.Workspace, id string)
internal/server/handlers_workspaces_test.go:136
↓ 4 callersFunctionconvRefs
(cs []itemContextConvention)
internal/server/plan3598_item_context_test.go:78
↓ 4 callersMethodconversationMessageBySeq
(q Queryer, convID string, seq int64)
internal/store/conversations.go:500
↓ 4 callersMethodcool
cool is the channel a handler's select must watch alongside the bus's gap channel. It fires when a window closes; the handler then calls flush.
internal/server/stream_gap_announcer.go:74
↓ 4 callersMethodcopy
(enforce bool)
internal/store/bug3653_copy_storage_test.go:53
↓ 4 callersMethodcorruptCollection
corruptCollection creates a collection and overwrites its stored settings with raw, as a hand edit would (import repairs such values to {}).
internal/server/bug3976_settings_not_object_test.go:45
↓ 4 callersFunctioncountByDoc
(rows []models.Activity)
internal/server/bug3687_activity_visible_page_test.go:134
↓ 4 callersMethodcounts
counts returns the current global total and this user's count, for log lines. Snapshot only — never use it to decide admission, which is acquire's job
internal/server/stream_admission.go:191
↓ 4 callersMethodcreate
(parent, child int, pr, cr string, off models.ScheduleLinkOffset, mv models.LinkWriteOptions, acc models.Commi
internal/store/commitment_link_write_test.go:71
↓ 4 callersFunctioncreateCLIAuthSessionFrom
TASK-2253: the CLI sign-in approval page gains Deny and the context to decide with. These pin the server half: who asked is recorded at create and ser
internal/server/task2253_cli_auth_deny_test.go:19
↓ 4 callersFunctioncreateChildItem
createChildItem creates a test item and wires it as a child of parentID via SetParentLink — the same path the HTTP handler takes in production (handle
internal/store/wiki_links_test.go:1296
↓ 4 callersMethodcreateCommentTx
createCommentTx is the body of CreateComment against a caller's transaction: stamp, INSERT, read back, emit. It returns the new id and leaves the comm
internal/store/comments.go:105
↓ 4 callersMethodcreateItemChecked
(r *http.Request, workspaceID string, coll *models.Collection, schema models.CollectionSchema, input models.It
internal/server/handlers_items.go:1007
↓ 4 callersMethodcreateItemTxWithID
createItemTxWithID is createItemTx with the destination item's id supplied by the caller instead of minted inside. Its callers are createItemTx, whic
internal/store/items.go:569
↓ 4 callersFunctioncreateTaskThenSeedFields
createTaskThenSeedFields creates a plain task through the API and then seeds its stored fields blob (see seedStoredFields).
internal/server/reserved_seed_test.go:30
↓ 4 callersFunctioncurrentPaneState
Current pane depth+ownership, read from SvelteKit `page.state`.
web/src/lib/collections/paneHostController.ts:119
↓ 4 callersFunctioncurrentPath
The route the title is being composed FOR.
web/src/lib/stores/title.svelte.ts:50
↓ 4 callersFunctioncurrentUserId
* The signed-in user's id, read WITHOUT establishing a reactive dependency. * * `setCurrent` reads this synchronously before its first await, and no
web/src/lib/stores/workspace.svelte.ts:111
↓ 4 callersMethodcut
cut severs every connection opened so far, forcing go-redis to redial and re-subscribe.
internal/watchevents/redis_reconnect_test.go:82
↓ 4 callersMethoddashboardAs
dashboardAs signs the user in through a real cookie session and reads the dashboard through the full middleware chain.
internal/server/task772_dashboard_visibility_test.go:93
↓ 4 callersFunctiondateParts
(day: string)
web/src/lib/calendar/monthGrid.ts:10
↓ 4 callersFunctiondbBackupCmd
()
cmd/pad/cmd_db.go:155
↓ 4 callersFunctiondeadlinePart
deadlinePart is D: 1 when overdue or due today, falling to 0 over 14 days, 0 with no date. "Overdue" is decided by the dashboard's own itemOverdue ove
internal/server/needs_scorers.go:370
↓ 4 callersFunctiondecideCmd
()
cmd/pad/notes.go:95
↓ 4 callersFunctiondeclaredIn
Names declared directly in a statement list (not inside nested blocks).
web/src/test/identityFenceAst.ts:749
↓ 4 callersFunctiondecodeAppJSON
decodeAppJSON decodes a request DTO through the ordinary body rules (size cap, NUL refusal, repeated members) and refuses any key the DTO does not nam
internal/server/app_api_write.go:54
↓ 4 callersFunctiondecodeFieldsBlob
decodeFieldsBlob decodes a stored or proposed fields blob for comparison.
internal/store/items_revalidate.go:72
↓ 4 callersMethoddeleteWithResult
deleteWithResult is delete for an endpoint that answers with a body.
internal/cli/client.go:3329
↓ 4 callersMethoddelivered
(ctx context.Context, number int, seq int64)
cmd/pad/cmd_watch_chat.go:18
↓ 4 callersMethoddeliveries
()
internal/server/outbox_drain_test.go:56
↓ 4 callersFunctionderefReminderSchedule
(r *models.Reminder)
internal/server/handlers_reminders.go:272
↓ 4 callersFunctiondeviceAt
deviceAt registers a device for userID with its own session. ttl is the session's remaining life (negative: already expired).
internal/store/task3939_push_dispatch_test.go:60
↓ 4 callersMethoddeviceCount
()
internal/server/task3939b2a_push_test.go:227
↓ 4 callersFunctiondialItem
(t *testing.T, srv *httptest.Server, itemID string)
internal/collab/bug3771_ws_deadlines_test.go:53
↓ 4 callersFunctiondialWSContentSeq
dialWSContentSeq appends `?content_seq=<seq>` so the test exercises the BUG-2264 stale-seed force_refresh fence.
internal/collab/manager_test.go:457
↓ 4 callersFunctiondialWSSince
dialWSSince is the resume-cursor variant: appends `?since=<id>` to the WS URL so the test exercises the TASK-1319 force_refresh path.
internal/collab/manager_test.go:441
↓ 4 callersFunctiondim
(t)
plugin/hooks/register.js:532
↓ 4 callersMethoddiscardPending
Drop a pending bubble without a result (the user gave up on a failed send).
web/src/lib/chat/model.ts:90
↓ 4 callersFunctiondiscardSecret
discardSecret drops a secret nobody may see. Go strings are immutable, so this cannot scrub the bytes; it makes the discard explicit at the call site
internal/store/app_provision.go:425
↓ 4 callersFunctiondispatchChildEnv
dispatchChildEnv is the environment of every `pad` child this dispatcher execs: the parent's, with the relative data-dir warning silenced (config.Inte
internal/mcp/dispatch.go:175
↓ 4 callersFunctiondoAuthedDeleteWithCSRF
doAuthedDeleteWithCSRF issues a DELETE with both the session cookie + the CSRF double-submit pair. The session-cookie code path requires CSRF on every
internal/server/handlers_connected_apps_test.go:21
↓ 4 callersMethoddoClaimCodeGet
()
internal/server/handlers_claim_code_test.go:95
↓ 4 callersFunctiondoHeadlessBootstrap
doHeadlessBootstrap is the shared core of the non-interactive (agent) admin bootstrap introduced by BUG-988. Both setupCmd and padInitCmd funnel throu
cmd/pad/cmd_auth.go:243
↓ 4 callersFunctiondocsCollection
docsCollection returns the standard Docs collection shared across templates.
internal/collections/templates.go:257
↓ 4 callersMethoddoneFiltersForWorkspace
doneFiltersForWorkspace returns a done-filter per collection in the workspace. Used by cross-collection queries (e.g. agent-role breakdowns) that need
internal/store/items.go:5204
↓ 4 callersFunctiondraftEdits
(base: string, draft: string)
web/src/lib/items/draftPatch.ts:115
↓ 4 callersFunctiondrag
(day = '2026-11-06', ref = 'EX-30')
web/src/routes/(console)/agenda/agenda.svelte.test.ts:58
↓ 4 callersFunctiondragBlocked
* Should this plugin's WINDOW-level listeners stand down? (BUG-2453) * * The owner is the editor surface asking to act — `editorView.dom`
web/src/lib/components/editor/block-drag-handle.ts:846
↓ 4 callersMethoddrain
(t *testing.T)
internal/server/effort_backfill_lifecycle_test.go:90
↓ 4 callersFunctiondrainSSE
drainSSE collects everything published to a workspace's channel, giving stragglers a short window to arrive.
internal/server/handlers_items_copy_test.go:649
↓ 4 callersMethoddrainWebhooks
drainWebhooks collects deliveries over one quiet window. The window is a wait for something that must NOT arrive in half these assertions, so it is ge
internal/server/handlers_items_copy_test.go:672
↓ 4 callersMethoddropInvisibleRelationDefaults
dropInvisibleRelationDefaults is the visibility check a LATE-RESOLVED DEFAULT owes. `ResolveLateRelationDefaults` lives in `store` and resolves again
internal/server/relation_referents.go:402
↓ 4 callersFunctiondroppedByKey
(resp ItemCopyPreflight, key string)
internal/server/handlers_items_copy_preflight_test.go:246
↓ 4 callersMethodedge
()
internal/store/commitment_links.go:175
↓ 4 callersMethodeffectiveImportBundleMaxBytes
effectiveImportBundleMaxBytes is the compressed-body cap in force.
internal/server/handlers_import_bundle.go:158
↓ 4 callersMethodemailUnverifiedBlocked
emailUnverifiedBlocked is the central predicate for PLAN-1933 DR-4's email-verification gate. It reports whether a request carrying `user` must be rej
internal/server/middleware_verified_email.go:41
↓ 4 callersMethodemitMemberEventTx
emitMemberEventTx writes one member-subject event to the outbox on the caller's transaction. The subject id is the USER, which is the only identifier
internal/store/event_outbox.go:1192
↓ 4 callersFunctionenc
(obj: Record<string, unknown>)
web/e2e/lib/demo-seed.ts:24
↓ 4 callersFunctionenqueue
* Append a job to the queue so that its link SETTLES whatever the job does. * A throw from a caller's `onError` / `onRendered` used to reject the lin
web/src/lib/components/editor/mermaidRender.ts:76
↓ 4 callersMethodenqueue
enqueue tries to push one entry without blocking. Returns true on success; on a full queue, increments the drop counter and returns false. The MCP mid
internal/server/middleware_mcp_audit.go:123
↓ 4 callersMethodenqueueAssignedNotificationTx
enqueueAssignedNotificationTx tells toUser they were given item. Assigning yourself notifies nobody; an empty actor (a system write) is not "you".
internal/store/notifications.go:104
↓ 4 callersFunctionensureClient
($)
plugin/hooks/register.js:334
↓ 4 callersMethodepoch
(t *testing.T)
internal/store/task3414_redeem_race_test.go:49
↓ 4 callersFunctionequalIDs
(a, b []string)
internal/server/handlers_timeline_collapse_test.go:46
↓ 4 callersFunctionequalRefs
(a, b []string)
internal/server/bug3331_search_scope_test.go:211
↓ 4 callersFunctionerror
()
web/src/lib/stores/admin.svelte.ts:155
↓ 4 callersFunctionescapeHtml
* Escape HTML-significant characters so user-controlled strings can be * safely interpolated into attribute values and text nodes. Local copy so * t
web/src/lib/markdown/attachments.ts:209
↓ 4 callersFunctionescapeMarkdownCell
escapeMarkdownCell makes an arbitrary string safe INSIDE a table cell: it sanitizes as above, then escapes backslashes and pipes. Order matters. Esca
internal/cli/format_markdown.go:48
↓ 4 callersFunctionescapeWikiBody
escapeWikiBody escapes a title for emission INSIDE a `[[...]]` body, so the parser reads back exactly the title that went in. Byte-for-byte the same
internal/links/links.go:462
↓ 4 callersFunctionescapedWikiBodyLen
escapedWikiBodyLen is len(escapeWikiBody(s)) WITHOUT building it. The projection path runs before the cascade's cap can fire, so it must not material
internal/links/links.go:483
↓ 4 callersFunctionestimateServerNow
(now = performance.now())
web/src/lib/api/serverClock.ts:56
↓ 4 callersMethodevict
evict removes an entry. No-op on empty id or unknown id. Fires onChange only when an entry was actually removed. See touch's comment for why onChange
internal/server/middleware_mcp_session.go:128
↓ 4 callersFunctionexpectOk
(resp: Awaited<ReturnType<APIRequestContext['get']>>, what: string)
web/e2e/lib/permission-walk.ts:75
↓ 4 callersFunctionexportBody
(t *testing.T)
internal/server/handlers_workspace_import_plan_limit_test.go:65
↓ 4 callersMethodfetcherFor
(user *models.User)
internal/mcp/resources_http_attachment_acl_test.go:112
↓ 4 callersFunctionfieldsAliasDoc
Tests for the #1066 contract (ToolSurfaceVersion 0.24): 1. pad_item create/update accept a `fields` OBJECT as an alias that merges into the same path
internal/mcp/catalog_item_fields_test.go:31
↓ 4 callersFunctionfileRef
(id string)
internal/store/attachments_copy_plan_test.go:106
← previousnext →3,801–3,900 of 28,840, ranked by callers