Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
31,685 in github.com/PerpetualSoftware/pad
⨍
Functions
31,685
◇
Types & classes
3,533
↓ 4 callers
Function
commentEntryByID
(entries []models.TimelineEntry, id string)
internal/server/handlers_timeline_comment_agent_test.go:41
↓ 4 callers
Function
commentServer
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 callers
Method
commitUserTabsTx
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 callers
Function
commitmentAssigneeGuard
commitmentAssigneeGuard preserves the snapshot the authority decision used. Workspace owners can act regardless of assignment.
internal/server/handlers_commitments.go:32
↓ 4 callers
Method
commitmentWriteAllowed
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:70
↓ 4 callers
Function
compactAll
(t *testing.T, s *store.Store, itemID string)
internal/store/bug3747_compaction_generation_test.go:28
↓ 4 callers
Function
compactToolDescription
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:402
↓ 4 callers
Function
compactionCols
(t *testing.T, s *store.Store, backend, itemID string)
internal/store/task3531_compaction_test.go:54
↓ 4 callers
Method
completeTx
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 callers
Method
completionAtClock
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 callers
Method
computeWatchAccessVisibility
computeWatchAccessVisibility resolves a user's current access within one workspace, built from the SAME primitives computeSSEVisibility uses (handlers
internal/server/handlers_watch_access.go:209
↓ 4 callers
Function
containsFold
containsFold compares by strings.ToLower, the rule IsTerminalItem and the SQL LOWER(...) IN (...) filters use, so the abandoned check cannot match a v
internal/models/terminal.go:233
↓ 4 callers
Function
containsPair
containsPair returns true when args contains an adjacent (flag, value) pair. Used to assert "--workspace docapp" appears in BuildCLIArgs's output with
internal/mcp/bug985_test.go:209
↓ 4 callers
Function
containsWorkspace
(list []models.Workspace, id string)
internal/server/handlers_workspaces_test.go:136
↓ 4 callers
Function
convRefs
(cs []itemContextConvention)
internal/server/plan3598_item_context_test.go:78
↓ 4 callers
Method
conversationMessageBySeq
(q Queryer, convID string, seq int64)
internal/store/conversations.go:500
↓ 4 callers
Method
cool
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 callers
Method
copy
(enforce bool)
internal/store/bug3653_copy_storage_test.go:53
↓ 4 callers
Method
corruptCollection
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 callers
Method
count
(t *testing.T, q string, args ...any)
internal/server/task3401b_app_writes_test.go:55
↓ 4 callers
Function
countByDoc
(rows []models.Activity)
internal/server/bug3687_activity_visible_page_test.go:134
↓ 4 callers
Method
counts
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 callers
Function
countsDone
(t *testing.T, f *schedFixture, it *models.Item, in ResolveInput, now string)
internal/store/agenda_counts_test.go:246
↓ 4 callers
Method
create
(parent, child int, pr, cr string, off models.ScheduleLinkOffset, mv models.LinkWriteOptions, acc models.Commi
internal/store/commitment_link_write_test.go:71
↓ 4 callers
Function
createChildItem
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 callers
Method
createCommentTx
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 callers
Function
createConfirmedBaseTracker
(source: ConfirmedBaseSource)
web/src/lib/items/confirmedBase.ts:92
↓ 4 callers
Method
createItemChecked
(r *http.Request, workspaceID string, coll *models.Collection, schema models.CollectionSchema, input models.It
internal/server/handlers_items.go:1030
↓ 4 callers
Method
createItemTxWithID
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:575
↓ 4 callers
Function
createTaskThenSeedFields
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 callers
Function
createTestSQLiteDB
(t *testing.T)
cmd/pad/cmd_db_backup_mode_unix_test.go:14
↓ 4 callers
Function
createWSForTestWithCookie
(t *testing.T, srv *Server, token string)
internal/server/task3392_bot_principal_test.go:323
↓ 4 callers
Function
currentPaneState
Current pane depth+ownership, read from SvelteKit `page.state`.
web/src/lib/collections/paneHostController.ts:127
↓ 4 callers
Function
currentPath
The route the title is being composed FOR.
web/src/lib/stores/title.svelte.ts:50
↓ 4 callers
Function
currentUserId
* 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 callers
Method
cut
cut severs every connection opened so far, forcing go-redis to redial and re-subscribe.
internal/watchevents/redis_reconnect_test.go:82
↓ 4 callers
Method
dashboardAs
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 callers
Function
dateParts
(day: string)
web/src/lib/calendar/monthGrid.ts:10
↓ 4 callers
Function
deadlinePart
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:269
↓ 4 callers
Function
decideCmd
()
cmd/pad/notes.go:95
↓ 4 callers
Function
decisionSettingsWorkspace
(t *testing.T, srv *Server)
internal/server/decision_settings_test.go:204
↓ 4 callers
Function
declaredIn
Names declared directly in a statement list (not inside nested blocks).
web/src/test/identityFenceAst.ts:749
↓ 4 callers
Function
decodeAppJSON
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 callers
Function
decodeFieldsBlob
decodeFieldsBlob decodes a stored or proposed fields blob for comparison.
internal/store/items_revalidate.go:72
↓ 4 callers
Function
defaultLeaseWorker
defaultLeaseWorker is the worker id a claim, release or queue read uses when the request body names none (TASK-3613): the X-Pad-Worker header, which t
internal/server/handlers_item_lease.go:238
↓ 4 callers
Method
delivered
(ctx context.Context, number int, seq int64)
cmd/pad/cmd_watch_chat.go:18
↓ 4 callers
Method
deliveries
()
internal/server/outbox_drain_test.go:56
↓ 4 callers
Function
derefOrEmpty
derefOrEmpty renders a nullable id for a log field.
internal/server/handlers_attachments_thumbnails.go:273
↓ 4 callers
Function
derefReminderSchedule
(r *models.Reminder)
internal/server/handlers_reminders.go:318
↓ 4 callers
Function
deviceAt
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 callers
Function
deviceCall
(s *Server, token, action, code string)
internal/server/handlers_activate_test.go:30
↓ 4 callers
Method
deviceCount
()
internal/server/task3939b2a_push_test.go:227
↓ 4 callers
Function
dialItem
(t *testing.T, srv *httptest.Server, itemID string)
internal/collab/bug3771_ws_deadlines_test.go:53
↓ 4 callers
Function
dialWSContentSeq
dialWSContentSeq appends `?content_seq=<seq>` so the test exercises the BUG-2264 stale-seed force_refresh fence.
internal/collab/manager_test.go:457
↓ 4 callers
Function
dialWSSince
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 callers
Function
dim
(t)
plugin/hooks/register.js:532
↓ 4 callers
Method
discardPending
Drop a pending bubble without a result (the user gave up on a failed send).
web/src/lib/chat/model.ts:90
↓ 4 callers
Function
discardSecret
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:437
↓ 4 callers
Function
dispatchChildEnv
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:181
↓ 4 callers
Function
displayFilenameIsolated
(filename: string | null | undefined)
web/src/lib/attachments/display.ts:58
↓ 4 callers
Method
do
(method, path string, body any)
internal/server/bug3353_legacy_token_test.go:52
↓ 4 callers
Function
doAuthedDeleteWithCSRF
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 callers
Method
doClaimCodeGet
()
internal/server/handlers_claim_code_test.go:95
↓ 4 callers
Function
doHeadlessBootstrap
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:245
↓ 4 callers
Function
doLoopbackRawRequest
The localhost recovery endpoint (POST /api/v1/auth/local-reset) is the self-host escape hatch for a locked-out operator. Its entire security model is
internal/server/handlers_auth_local_reset_test.go:16
↓ 4 callers
Function
dom
()
web/src/lib/components/editor/readonlyBodyNoMutation.svelte.test.ts:146
↓ 4 callers
Method
doneAndNextTarget
doneAndNextTarget resolves the outstanding occurrence done and reads the next one's target.
internal/store/commitment_move_series_test.go:64
↓ 4 callers
Function
doneFieldTerminalOptions
(collection: Collection)
web/src/lib/types/index.ts:3527
↓ 4 callers
Method
doneFiltersForWorkspace
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:5264
↓ 4 callers
Function
drag
(day = '2026-11-06', ref = 'EX-30')
web/src/routes/(console)/agenda/agenda.svelte.test.ts:59
↓ 4 callers
Function
dragBlocked
* 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 callers
Function
drainSSE
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 callers
Method
drainWebhooks
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 callers
Method
dropInvisibleRelationDefaults
dropInvisibleRelationDefaults is the visibility check a LATE-RESOLVED DEFAULT owes. `ResolveLateRelationDefaults` lives in `store` and resolves again
internal/server/relation_referents.go:402
↓ 4 callers
Function
droppedByKey
(resp ItemCopyPreflight, key string)
internal/server/handlers_items_copy_preflight_test.go:246
↓ 4 callers
Method
edge
()
internal/store/commitment_links.go:175
↓ 4 callers
Method
effectiveImportBundleMaxBytes
effectiveImportBundleMaxBytes is the compressed-body cap in force.
internal/server/handlers_import_bundle.go:145
↓ 4 callers
Function
endStream
(close = true)
plugin/hooks/register.js:1229
↓ 4 callers
Function
endedResolved
(stillOpen bool)
cmd/pad/schedule_end_test.go:22
↓ 4 callers
Function
enqueue
* 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 callers
Method
enqueue
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 callers
Method
enqueueAssignedNotificationTx
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 callers
Function
ensureClient
($)
plugin/hooks/register.js:334
↓ 4 callers
Method
epoch
(t *testing.T)
internal/store/task3414_redeem_race_test.go:49
↓ 4 callers
Function
equalIDs
(a, b []string)
internal/server/handlers_timeline_collapse_test.go:46
↓ 4 callers
Function
error
()
web/src/lib/stores/admin.svelte.ts:157
↓ 4 callers
Function
escapeHtml
* 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 callers
Function
escapeMarkdownCell
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 callers
Function
escapeWikiBody
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 callers
Function
escapedWikiBodyLen
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 callers
Function
estimateServerNow
(now = performance.now())
web/src/lib/api/serverClock.ts:56
↓ 4 callers
Function
expectOk
(resp: Awaited<ReturnType<APIRequestContext['get']>>, what: string)
web/e2e/lib/permission-walk.ts:75
↓ 4 callers
Function
exportBody
(t *testing.T)
internal/server/handlers_workspace_import_plan_limit_test.go:65
↓ 4 callers
Method
fetcherFor
(user *models.User)
internal/mcp/resources_http_attachment_acl_test.go:112
↓ 4 callers
Function
fieldsAliasDoc
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 callers
Function
fileRef
(id string)
internal/store/attachments_copy_plan_test.go:106
↓ 4 callers
Method
fileView
fileView is the in-memory persisted fields, credentials revealed. It includes environment overrides; Save writes persistView, which drops them.
internal/config/config.go:818
↓ 4 callers
Method
fillOccurrenceAt
fillOccurrenceAt sets OccurrenceAt on the managed rows among rs in one query: the outstanding occurrence's instant, through outstandingInstant. A fire
internal/store/schedule_fire.go:271
↓ 4 callers
Method
fillScheduleAcknowledgements
fillScheduleAcknowledgements reads evidence for current occurrences in one journal query and resolves all account names in one query. It uses the call
internal/store/schedule_ack.go:73
↓ 4 callers
Function
findCatalogTool
findCatalogTool returns the ToolDef with the given name, or a failed test.
internal/mcp/catalog_project_test.go:6
← previous
next →
4,201–4,300 of 31,685, ranked by callers