MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 3 callersMethodcopyTransport
copyTransport picks the RoundTripper the mutating copy runs on. A dedicated *http.Client is NOT enough on its own: retry behaviour in Go is usually i
internal/cli/client_items_copy.go:449
↓ 3 callersFunctioncount
(n: number, one: string, many: string)
web/src/lib/workspaces/importSummary.ts:13
↓ 3 callersMethodcount
(t *testing.T, q string, args ...any)
internal/server/handlers_apps_upgrade_test.go:53
↓ 3 callersFunctioncountAttachments
countAttachments counts live attachment rows in a workspace.
internal/server/handlers_attachments_test.go:615
↓ 3 callersFunctioncountChildProgress
(children: Item[], collections: Collection[])
web/src/lib/collections/childProgress.ts:117
↓ 3 callersFunctioncountExportBundleTar
countExportBundleTar computes the exact tar entry count and 512-byte header block count (including PAX/GNU extension headers and the end-of-archive ze
internal/server/export_entry_limit.go:47
↓ 3 callersFunctioncountInColl
TASK-3585: idempotency keys on cross-workspace copy and move.
internal/server/task3585_copy_key_test.go:12
↓ 3 callersFunctioncountParentLinks
countParentLinks returns how many `parent` link rows an item is the source of. The invariant is that a well-behaved item has at most one — the DELETE-
internal/store/parent_link_concurrency_test.go:30
↓ 3 callersFunctioncountRows
BUG-3135: the relay's append skips a frame byte-identical to an earlier row of the same item. These pin what is skipped, what is not, and what the ski
internal/store/bug3135_sync_frame_dedupe_test.go:17
↓ 3 callersMethodcountRows
(query string)
internal/server/handlers_items_copy_preflight_test.go:880
↓ 3 callersFunctioncountSessions
(t *testing.T, srv *Server)
internal/server/task2253_cli_auth_deny_test.go:152
↓ 3 callersFunctioncountSource
(sources []string, want string)
internal/server/task3321_u1b_chatgpt_versions_test.go:44
↓ 3 callersFunctioncountUAChangeEvents
countUAChangeEvents returns the number of session_ua_changed rows in the audit log.
internal/server/middleware_session_ua_test.go:47
↓ 3 callersMethodcounts
()
internal/server/session_presence_observer_test.go:33
↓ 3 callersFunctioncover
(axis, v string)
internal/schedule/neverpartial_test.go:323
↓ 3 callersFunctioncreateActivityItem
TASK-2219 (audit C47): the web activity page filtered its loaded page by collection CLIENT-side, so a collection whose rows were not in the newest pag
internal/server/task2219_activity_collection_test.go:19
↓ 3 callersMethodcreateByTitle
createByTitle drives the create door as `user` with a relation supplied BY TITLE, returning the recorder so each leg can assert on the outcome.
internal/server/relation_titles_doors_test.go:276
↓ 3 callersMethodcreateCLIAuthSession
(ttl time.Duration, req CLIAuthRequester)
internal/store/cli_auth_sessions.go:100
↓ 3 callersFunctioncreateChatUser
(tag: string)
web/e2e/lib/chat-users.ts:18
↓ 3 callersFunctioncreateCloneAttachment
(t *testing.T, s *Store, wsID string)
internal/store/attachments_remap_chunk_test.go:94
↓ 3 callersFunctioncreateCollectionForCoercion
(t *testing.T, srv *Server, token, wsSlug, name, schema string)
internal/server/handlers_items_field_coercion_test.go:655
↓ 3 callersMethodcreateCollectionTx
createCollectionTx is CreateCollection on the caller's transaction, so the app installer creates companion collections in its one provisioning transac
internal/store/collections.go:70
↓ 3 callersMethodcreateCrew
(title string, supplied []any)
internal/server/relation_multi_roundtrip_test.go:65
↓ 3 callersFunctioncreateDocForTest
BUG-2798 / BUG-2796, at the route rather than at the validator. CONVE-19: models.ValidateDocumentTitle having a test proves the validator works, not
internal/server/handlers_documents_title_test.go:22
↓ 3 callersMethodcreateDocument
(t *testing.T, content string)
internal/store/attachments_document_refs_test.go:20
↓ 3 callersFunctioncreateKeyedSingleFlight
(options: SingleFlightOptions = {})
web/src/lib/stores/singleFlight.ts:99
↓ 3 callersFunctioncreateLineageLink
(spec lineageLinkSpec, sourceRef, targetRef string)
cmd/pad/lineage.go:126
↓ 3 callersFunctioncreateRawBase
()
web/src/lib/items/rawBase.ts:41
↓ 3 callersFunctioncreatedIn
(rep *ReportData, label string)
internal/store/reports_tz_test.go:26
↓ 3 callersFunctioncreatedWorkspacePath
createdWorkspacePath is the SPA path of a workspace autoCreateWorkspace just made for user, or "" when it made none (TASK-3595). Workspace routes are
internal/server/handlers_cloud.go:2164
↓ 3 callersMethodcsrfFromAppConsent
csrfFromAppConsent reads the consent CSRF cookie from the app's own consent page, which serves with MCP off too (readCSRFFromCookie registers an MCP c
internal/server/task3399_delegated_flow_test.go:86
↓ 3 callersFunctioncurrentSessionArmKey
currentSessionArmKey returns the (socket, cwd) pair identifying THIS process's session, read from the environment and the working directory. A cwd err
internal/cli/session_arm_state.go:189
↓ 3 callersFunctioncursorStorageKey
(itemID: string)
web/src/lib/collab/wsProvider.svelte.ts:172
↓ 3 callersFunctiondateFields
(collection: Collection)
web/src/lib/calendar/monthGrid.ts:83
↓ 3 callersFunctiondayCounts
(entries: AgendaEntry[])
web/src/lib/calendar/presentation.ts:368
↓ 3 callersFunctiondaySection
(day = '2026-11-06')
web/src/routes/(console)/agenda/agenda.svelte.test.ts:58
↓ 3 callersFunctiondayStartPayload
dayStartPayload is the "day_start" value the caller's own auth payloads carry: "HH:MM" when set, nil (JSON null) when never set (TASK-4699).
internal/server/day_start.go:7
↓ 3 callersFunctiondayWindow
(dateISO: string, zone: string)
web/src/lib/calendar/presentation.ts:62
↓ 3 callersFunctiondaysAgo
Whole local calendar days from `d` to `now` (0 = same day, 1 = yesterday). DST-safe.
web/src/lib/chat/grouping.ts:21
↓ 3 callersFunctiondbName
(userId: string | null, ws: string)
web/src/lib/stores/localIndexPersistence.ts:195
↓ 3 callersMethoddeadlineJournal
One journal read per page matches the current canonical deadline value and finds the latest conversion by parsed instant, not RFC3339Nano text order.
internal/store/schedule_deadline_eval.go:256
↓ 3 callersMethoddeadlineMissCandidateTx
deadlineMissCandidateTx rechecks the current deadline and the evaluator's canonical journal dedupe under the schedule pin. It writes nothing, so a ren
internal/store/schedule_deadline_eval.go:488
↓ 3 callersFunctiondeadlocksDetected
deadlocksDetected reads this database's cumulative deadlock counter. The error channel alone cannot prove no deadlock HAPPENED — only that none SURFA
internal/store/items_cross_workspace_copy_pg_test.go:299
↓ 3 callersFunctiondecide
( stored: ItemIndexRow | undefined, tombstone: Tombstone | undefined, incoming: ItemIndexRow, )
web/src/lib/stores/itemRowMerge.test.ts:27
↓ 3 callersMethoddecisionDebounceFunc
()
internal/store/decisions.go:80
↓ 3 callersFunctiondecodeChatResult
(res *CallToolResult)
internal/mcp/dispatch_http_chat.go:50
↓ 3 callersFunctiondecodeErrorEnvelope
(t *testing.T, body []byte)
internal/server/handlers_items_content_route_test.go:42
↓ 3 callersFunctiondecodeExportStream
(r io.Reader, repair *nulRepairTally)
internal/server/export_stream_decode.go:77
↓ 3 callersFunctiondecodeLeaseErr
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/task3613_lease_worker_test.go:44
↓ 3 callersFunctiondecodeRecord
(t *testing.T, out string)
cmd/pad/cmd_session_registry_test.go:57
↓ 3 callersFunctiondecodeRecords
(t *testing.T, out string)
cmd/pad/cmd_session_registry_test.go:66
↓ 3 callersFunctiondecodeSetPlan
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_plan_source_test.go:50
↓ 3 callersFunctiondecodeUserGrantsResponse
decodeUserGrantsResponse requires a 200 and decodes the body, failing the test otherwise.
internal/server/handlers_grant_visibility_test.go:895
↓ 3 callersFunctiondeepNestFrame
deepNestFrame builds one y-protocols Update frame whose Yjs update (v1 encoding) nests depth XmlElements named node, each the only child of the one be
internal/materialize/adversarial_test.go:32
↓ 3 callersFunctiondefaultAudience
(isAgent: boolean)
web/src/lib/calendar/audience.ts:12
↓ 3 callersFunctiondeferred
()
web/src/routes/(console)/needs/needsPage.svelte.test.ts:437
↓ 3 callersMethoddeleteAccountAtomic
(ctx context.Context, userID string, issuedGrantWorkspaces *[]string)
internal/store/users.go:1596
↓ 3 callersFunctiondeleteLineageLink
(spec lineageLinkSpec, sourceRef, targetRef string)
cmd/pad/lineage.go:156
↓ 3 callersMethoddeleteWorkspace
(workspaceID string)
internal/webhooks/dispatcher_test.go:42
↓ 3 callersFunctiondeletedRequest
(ws string, user *models.User, role, method, path, id string, bearer bool)
internal/server/handlers_deleted_attachments_test.go:32
↓ 3 callersFunctiondeletedWorkspaceEnv
BUG-3104: an invitation that outlives its workspace (DeleteAccountAtomic removes only the invitations the departing user SENT) must read as an unknown
internal/server/handlers_invitation_deleted_workspace_test.go:26
↓ 3 callersMethoddeliver
deliver sends the round-trip's durable outcome exactly once. MUST be called with r.pendingMu held.
internal/collab/applier.go:387
↓ 3 callersFunctiondeliverTestHook
Tests for DeliverEvent — the synchronous delivery seam the outbox drain acks on (TASK-2714 requirements 1 and 2).
internal/webhooks/dispatcher_test.go:545
↓ 3 callersFunctiondeliveredSessionCount
deliveredSessionCount answers "how many of userID's own live sessions will this push's delivery predicate match?" (PLAN-2558 S5, TASK-2588). It reads
internal/server/handlers_push.go:484
↓ 3 callersMethoddelta
(t *testing.T)
internal/server/bug3428_phase2_epoch_guard_test.go:92
↓ 3 callersMethoddenyCLIAuthSessionCore
(w http.ResponseWriter, r *http.Request, sess *store.CLIAuthSession)
internal/server/handlers_cli_auth.go:338
↓ 3 callersMethoddependents
An item's dependents are the gates it blocks: the items its success releases (TASK-4611). They are display only, and name only dependents the reader c
internal/store/commitment_gates_dependents_test.go:16
↓ 3 callersMethoddequeue
()
internal/server/materialize_recovery.go:378
↓ 3 callersFunctionderiveTOTPStep
deriveTOTPStep returns the TOTP time-step whose generated code equals passcode, searching the same ±1 skew window totp.Validate accepts (in the librar
internal/server/handlers_2fa.go:43
↓ 3 callersMethodderiveThumbnailsCtx
deriveThumbnailsCtx is the context-aware implementation of deriveThumbnails. Synchronous HTTP callers (such as share-link resolution) pass their reque
internal/server/handlers_attachments_thumbnails.go:114
↓ 3 callersFunctiondescribeAttachmentType
( mime: string | null | undefined, filename?: string | null, )
web/src/lib/attachments/display.ts:290
↓ 3 callersMethoddest
()
internal/store/occurrence_roles.go:37
↓ 3 callersMethoddestinationAttachments
destinationAttachments lists every live attachment row in workspace B, read straight out of the database rather than from any response: the claim is a
internal/server/handlers_items_copy_attachment_authz_test.go:153
↓ 3 callersFunctiondeterministicFirstTick
deterministicFirstTick makes a connection's first revalidation land a full interval out instead of anywhere inside it: with the interval at an hour, n
internal/server/task3365_access_kick_test.go:89
↓ 3 callersFunctiondeviceByToken
(t *testing.T, s *Store, userID, token string)
internal/store/push_devices_test.go:430
↓ 3 callersFunctiondialAt
dialAt joins the item's collab room announcing `since`, and reads the first control frame: op_log_cursor for an admitted tab, force_refresh otherwise.
internal/server/task3531_compaction_test.go:182
↓ 3 callersMethoddialReady
dialReady dials the collab WS and blocks until the initial control frame (the post-replay op_log_cursor, sent AFTER addConn) proves the conn is regist
internal/server/handlers_items_collab_versions_test.go:616
↓ 3 callersFunctiondialWSQuery
(t *testing.T, serverURL, itemID string, q url.Values)
internal/collab/task3501_resume_observer_test.go:42
↓ 3 callersFunctiondirExists
(parts ...string)
internal/cli/detect.go:208
↓ 3 callersMethoddisableUserAndRevokeAccessTx
disableUserAndRevokeAccessTx is DisableUserAndRevokeAccess on the caller's transaction: the app uninstall disables the install's bot inside UninstallA
internal/store/users.go:1385
↓ 3 callersMethoddisarm
disarm clears the deadline once the last write in flight has returned, so it bounds only the writes and not whatever the handler does next.
internal/server/middleware_write_deadline.go:180
↓ 3 callersMethoddispatchCreateItemLink
dispatchCreateItemLink handles the create-side of the link surface (block, blocked-by, implements, supersedes, split-from). Resolves both refs, then P
internal/mcp/dispatch_http_links.go:186
↓ 3 callersMethoddispatchDeleteItemLink
dispatchDeleteItemLink handles the un-* side of the link surface (unblock, unimplements, unsupersede, unsplit). Mirrors the CLI's deleteLineageLink +
internal/mcp/dispatch_http_links.go:250
↓ 3 callersFunctiondispatchHistory
(t *testing.T, d *HTTPHandlerDispatcher, input map[string]any)
internal/mcp/dispatch_http_history_test.go:104
↓ 3 callersFunctiondispatchList
(t *testing.T, d *HTTPHandlerDispatcher, input map[string]any)
internal/mcp/dispatch_http_item_list_summary_test.go:83
↓ 3 callersMethoddispatchResult
PLAN-3555 phase 1 at the MCP doors: the unguarded-write warning reaches the agent, replace reaches the server and is refused where it contradicts itse
internal/mcp/plan3555_replace_test.go:19
↓ 3 callersMethoddispose
Teardown: invalidate the fences so every in-flight continuation reads stale.
web/src/lib/attachments/surfaceMetadata.svelte.ts:108
↓ 3 callersFunctiondispositionFilename
dispositionFilename reads the filename parameter the way a client does.
internal/server/handlers_attachments_bug2818_test.go:128
↓ 3 callersFunctiondivider
()
web/src/lib/components/collections/PaneHost.svelte.test.ts:47
↓ 3 callersMethoddo
do runs one job of the given mode, holding the job slot.
internal/materialize/supervisor.go:303
↓ 3 callersMethoddo
(t *testing.T, rt capRoute)
cmd/pad/mcp_capability_test.go:158
↓ 3 callersFunctiondoBrowserLogin
doBrowserLogin implements the browser-based CLI auth flow. It creates a pending session, prints the auth URL, and polls until approved.
cmd/pad/cmd_auth.go:429
↓ 3 callersFunctiondoDeviceLogin
doDeviceLogin leaves approval to a browser on any device. When device login was chosen automatically (SSH) and the server predates it, the session it
cmd/pad/cmd_auth.go:463
↓ 3 callersMethoddoWithBearer
(t *testing.T, rt capRoute, pat string)
cmd/pad/bug3326_remote_set_workspace_test.go:55
↓ 3 callersFunctiondone
()
web/src/lib/stores/localIndex.svelte.ts:417
↓ 3 callersFunctiondraftKey
(field: string, lane: string)
web/src/lib/collections/laneDrafts.ts:77
↓ 3 callersFunctiondraftKey
(user: string, n: number)
web/src/lib/chat/chatRecords.ts:19
↓ 3 callersFunctiondraftSaveTarget
( key: string, field: FieldDef | undefined | null, clientDefaults: Record<string, unknown>, )
web/src/lib/collections/laneDrafts.ts:106
↓ 3 callersFunctiondrainContains
drainContains reads whatever is already queued on ch without blocking.
internal/events/gap_signal_test.go:203
↓ 3 callersFunctiondrainCountingRequests
drainCountingRequests reads conn until it closes, never acking, and counts the applier_request frames it was sent (TASK-1979): what the applier was AS
internal/collab/applier_test.go:57
← previousnext →5,501–5,600 of 31,685, ranked by callers