MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 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:2116
↓ 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:188
↓ 3 callersFunctioncursorStorageKey
(itemID: string)
web/src/lib/collab/wsProvider.svelte.ts:172
↓ 3 callersFunctiondateFields
(collection: Collection)
web/src/lib/calendar/monthGrid.ts:73
↓ 3 callersFunctiondaySection
(day = '2026-11-06')
web/src/routes/(console)/agenda/agenda.svelte.test.ts:57
↓ 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 callersFunctiondeadlineWriteSnapshot
Include all resolution evidence, not just the target and managed reminder.
internal/store/commitment_past_deadline_test.go:13
↓ 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 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 callersFunctiondedupeIDs
Batch reads behind the importance and simplicity scorers on GET /me/needs (TASK-3959, IDEA-3906 B4b). All are read-only, take the ids the router alrea
internal/store/needs_scoring.go:15
↓ 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:373
↓ 3 callersMethoddeleteAccountAtomic
(ctx context.Context, userID string, issuedGrantWorkspaces *[]string)
internal/store/users.go:1448
↓ 3 callersFunctiondeleteLineageLink
(spec lineageLinkSpec, sourceRef, targetRef string)
cmd/pad/lineage.go:156
↓ 3 callersMethoddeleteWorkspace
(workspaceID string)
internal/webhooks/dispatcher_test.go:42
↓ 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 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:42
↓ 3 callersFunctiondescribeAttachmentType
( mime: string | null | undefined, filename?: string | null, )
web/src/lib/attachments/display.ts:290
↓ 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:615
↓ 3 callersFunctiondirExists
(parts ...string)
internal/cli/detect.go:208
↓ 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:179
↓ 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:237
↓ 3 callersFunctiondispatchHistory
(t *testing.T, d *HTTPHandlerDispatcher, input map[string]any)
internal/mcp/dispatch_http_history_test.go:70
↓ 3 callersFunctiondispatchList
(t *testing.T, d *HTTPHandlerDispatcher, input map[string]any)
internal/mcp/dispatch_http_item_list_summary_test.go:83
↓ 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:417
↓ 3 callersFunctiondoMetricsRequest
(srv *Server, remoteAddr, authHeader string)
internal/server/metrics_auth_test.go:31
↓ 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 callersFunctiondoneFieldTerminalOptions
(collection: Collection)
web/src/lib/types/index.ts:3339
↓ 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
↓ 3 callersMethoddrop
(reason string)
internal/watchevents/observer.go:179
↓ 3 callersFunctiondropFileIntoEditor
( page: Page, filename: string, base64: string, mimeType = 'image/png', editorSelector = '.editor-content
web/e2e/lib/attachment-viewer.ts:662
↓ 3 callersFunctiondropPostgresDB
(tb testing.TB, baseURL, dbName string)
internal/store/storetest/postgres.go:224
↓ 3 callersFunctiondropPostgresTemplateDB
(tb testing.TB, baseURL, name string)
internal/store/store_test.go:329
↓ 3 callersFunctiondueOf
dueOf is the instant the fire pass fires the outstanding occurrence: the override if set, else the occurrence, less the lead.
internal/store/schedule_carry_matrix_test.go:45
↓ 3 callersFunctiondurationsByCollection
durationsByCollection turns per-collection samples into median+count entries, ordered by count desc then slug.
internal/store/reports.go:992
↓ 3 callersFunctioneditor
()
web/src/lib/components/editor/frontmatterRoundtrip.svelte.test.ts:74
↓ 3 callersFunctioneditor
()
web/src/lib/components/editor/canonicalMarkdown.svelte.test.ts:116
↓ 3 callersMethodemailConfigured
emailConfigured reports whether this instance can actually SEND an emailed link — a sender is wired AND the public base URL is usable. This is the DR-
internal/server/server.go:1231
↓ 3 callersFunctionemailNotVerifiedPayload
(message string)
internal/mcp/errors.go:1586
↓ 3 callersMethodemit
emit prints one chat line to the agent and, once that write succeeded, appends the same line to the chat-seen log. Every chat line goes through here a
cmd/pad/cmd_watch_chat.go:162
↓ 3 callersMethodemitCommentEventAsInstallTx
emitCommentEventAsInstallTx is emitCommentEventTx for an installed app's write; see emitItemEventAsInstallTx.
internal/store/event_outbox.go:1121
↓ 3 callersMethodemitItemEventAsInstallTx
emitItemEventAsInstallTx is emitItemEventTx for a write an installed app made: actorInstall is frozen into the app-projection block as actor_via_app (
internal/store/event_outbox.go:1082
↓ 3 callersFunctionemitRealPadJSON
emitRealPadJSON builds the real pad cobra tree and emits its JSON representation with a static (no-resolver, no live-workspace) configuration. Tests t
cmd/pad/cmdhelp_real_test.go:22
↓ 3 callersMethodemitRefOnlyDeletionWithProjectionTx
emitRefOnlyDeletionWithProjectionTx is emitRefOnlyDeletionTx carrying a comment's app-projection block, which the caller computed before the delete ch
internal/store/event_outbox.go:1481
↓ 3 callersFunctionencode
(t *testing.T, m map[string]any)
internal/appmanifest/manifest_test.go:37
↓ 3 callersFunctionendDrag
()
web/src/lib/components/editor/block-drag-handle.ts:757
↓ 3 callersMethodendGuardCounts
TASK-4537: a done or skip that would end the schedule of an open item is refused unless the caller consents. Runs on SQLite in make test and on Postgr
internal/store/schedule_end_guard_test.go:20
↓ 3 callersFunctionendedResolved
(stillOpen bool)
cmd/pad/schedule_end_test.go:22
↓ 3 callersFunctionensureSkills
ensureSkills detects AI tools, installs missing skill files, and updates outdated ones. Returns a summary of what it did.
cmd/pad/init.go:542
↓ 3 callersFunctionentryKey
(entry: AgendaEntry)
web/src/lib/calendar/presentation.ts:116
↓ 3 callersFunctionentryOf
(t *testing.T, d *upgradeDiff, kind, key string)
internal/server/app_upgrade_diff_test.go:48
↓ 3 callersFunctionentryStates
(m map[string]any, title string)
internal/server/handlers_calendar_test.go:622
↓ 3 callersFunctionenvDataDir
envDataDir is the ONE reader of PAD_DATA_DIR and PAD_DB_PATH (Load and userConfigPath both call it): PAD_DATA_DIR sets the data dir and its pad.db; PA
internal/config/config.go:323
↓ 3 callersFunctionenvTokenNotice
envTokenNotice returns a one-line warning when PAD_TOKEN is set, or "" when it isn't. login/logout print it to stderr (gh-style) so users aren't surpr
cmd/pad/cmd_auth.go:832
↓ 3 callersFunctionequalBytes
(a, b []byte)
internal/server/handlers_attachments_download_test.go:339
↓ 3 callersMethoderaseUserTxCtx
eraseUserTx removes one account and every reference to it, in the caller's transaction: the de-identify, outbox scrub, delete and final delete steps o
internal/store/users.go:1741
↓ 3 callersFunctionescapeHTML
escapeHTML exists to keep byte parity with escapeHtml in web/src/lib/markdown/attachments.ts (TASK-4195). html.EscapeString emits `&#34;` for a double
internal/server/render/attachments.go:177
↓ 3 callersFunctionescapeTable
escapeTable replaces newlines and pipes so a value can sit in a markdown table cell without breaking the table grid.
internal/cmdhelp/md.go:298
↓ 3 callersMethodestablishSubscription
establishSubscription opens a workspace's Redis subscription and does not return until Redis has acknowledged it, the bound expires, or the CALLER's c
internal/events/redis_bus.go:1703
↓ 3 callersMethodetagKeyUsable
()
internal/appstore/appstore.go:85
↓ 3 callersFunctionev
(extra: Partial<ItemCommitmentView> = {}, o: Parameters<typeof offsets>[0] = {})
web/src/lib/commitment.test.ts:153
↓ 3 callersMethodevalComments
(t *testing.T, item *models.Item)
internal/decision/per_comment_test.go:32
↓ 3 callersMethodevaluateAndOpenGates
evaluateAndOpenGates records successful gates and their notices atomically.
internal/store/commitment_gates.go:587
↓ 3 callersFunctioneventIDs
(es []Event)
internal/events/redis_discarded_peak_test.go:88
↓ 3 callersFunctionexistenceClaimsIn
(root: Element)
web/src/test/existenceClaim.ts:22
↓ 3 callersMethodexitString
exitString describes how the child ended, once it has been reaped.
internal/materialize/supervisor.go:497
← previousnext →5,001–5,100 of 28,840, ranked by callers