MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 6 callersFunctioncounts
()
docs/brand/social/render.mjs:48
↓ 6 callersFunctioncountsGot
(days []AgendaDayCount)
internal/store/agenda_counts_test.go:39
↓ 6 callersFunctioncreateCollabFlusher
(config: CollabFlusherConfig)
web/src/lib/collab/collabFlush.svelte.ts:175
↓ 6 callersFunctioncreateServer
createServer answers capabilities (idempotency_keys = honorsKeys) and scripts the statuses of the create POSTs it receives.
cmd/pad/task3585_create_retry_test.go:13
↓ 6 callersMethodcreateWorkspaceQ
createWorkspaceQ is CreateWorkspace against a caller-supplied executor. It exists for ImportWorkspace (BUG-2892), which has to mint the workspace on
internal/store/workspaces.go:140
↓ 6 callersFunctionday
(date: string)
web/src/lib/commitment.ts:82
↓ 6 callersFunctiondebounceWriter
BUG-2770. CreateActivityDebounced merges by reading a row's metadata, combining it in Go, and writing the result back — two statements. Two writers th
internal/store/activities_debounce_race_test.go:32
↓ 6 callersFunctiondecisionSettingsWorkspace
(t *testing.T, srv *Server)
internal/server/decision_settings_test.go:203
↓ 6 callersFunctiondecodeFields
decodeFields is a small test helper: parse an item's fields JSON into a map.
internal/store/items_fieldpatch_test.go:12
↓ 6 callersFunctiondecodeJSONWithLimit
decodeJSONWithLimit is the size-configurable variant. Use this for endpoints that accept large payloads (e.g. bulk-import) where the default cap is to
internal/server/server.go:3226
↓ 6 callersFunctiondecodeRows
(t *testing.T, rows []string)
internal/server/materialize_recovery_test.go:425
↓ 6 callersMethoddedupeTraitDeclarations
dedupeTraitDeclarations resolves workspaces that hold more than one collection declaring the same kernel trait, so the partial unique indexes in migra
internal/store/trait_dedupe.go:55
↓ 6 callersMethoddeferredTimers
`setTimeout(` / `setInterval(` callback bodies, async or not.
web/src/test/identityFenceSource.ts:127
↓ 6 callersFunctiondel
(seq: number)
web/src/routes/messages/messagesRoutes.svelte.test.ts:1052
↓ 6 callersMethodderived
(digest string)
internal/store/task3397_provision_test.go:65
↓ 6 callersFunctiondescribeDecisionProvider
describeDecisionProvider resolves the decision provider for the report. It goes through decision.Describe, which never returns the API key.
cmd/pad/server_info.go:158
↓ 6 callersFunctiondispatch
( api: Api, wsSlug: string, _isReadOnlyAction: (toolName: string, action: string) => boolean | undefined,
web/src/lib/webmcp/dispatch.ts:708
↓ 6 callersMethoddo
(t *testing.T, method, path string, body any)
internal/server/handlers_workspace_tabs_test.go:36
↓ 6 callersMethoddo
(t *testing.T, method, path string, body any)
internal/server/bug3372_attribution_test.go:41
↓ 6 callersFunctiondoAttributionRequest
(t *testing.T, srv *Server, agent, method, path string, body any)
internal/server/handlers_items_attribution_test.go:103
↓ 6 callersFunctiondoneFieldKey
(collection: Collection)
web/src/lib/types/index.ts:3329
↓ 6 callersFunctiondrainOne
drainOne reads one notification or fails.
internal/watchevents/redis_reconnect_test.go:461
↓ 6 callersMethoddrop
The connection dropped: closed, and the close event fired.
web/src/lib/collab/wsProviderCatchUp.svelte.test.ts:35
↓ 6 callersMethoddropCoverage
(reason string)
internal/watchevents/redis_bus.go:1815
↓ 6 callersMethoddueAfterConversion
(now time.Time, state deadlineJournalState)
internal/store/schedule_deadline_eval.go:332
↓ 6 callersFunctionenable
enable runs setup with a code computed from the secret it printed, so the test types what a user would read off the app.
cmd/pad/cmd_auth_2fa_test.go:99
↓ 6 callersMethodenforcePlanLimit
--- Plan Limit Enforcement --- enforcePlanLimit checks a workspace-scoped plan limit and writes a 403 error if the limit is exceeded. Returns true if
internal/server/handlers_cloud.go:1598
↓ 6 callersMethodenqueueDecisionJobsForItemTx
enqueueDecisionJobsForItemTx is the comment door's form: a comment knows its item but not the item's collection.
internal/store/decisions.go:346
↓ 6 callersFunctionensureState
(ws: string)
web/src/lib/stores/localIndex.svelte.ts:441
↓ 6 callersFunctionentry
(id string, n int)
internal/server/task3517_sort_order_test.go:41
↓ 6 callersFunctionenvelopeFrom
envelopeFrom reads the ErrorEnvelope back out of an MCP error result's structured content. Used by classifyHTTPStatus's 404 workspace path so we can l
internal/mcp/errors.go:473
↓ 6 callersFunctionescapeTableCell
escapeTableCell escapes characters that would break a markdown table row: `|` becomes `\|`, and existing backslashes are doubled so the escape stays v
internal/urlimport/openapi.go:510
↓ 6 callersMethodevaluateGatesQ
evaluateGatesQ evaluates every gate without a reader filter or any writes.
internal/store/commitment_gates.go:511
↓ 6 callersMethodexportBody
--- POST /api/v1/workspaces/import --- exportBody produces a valid JSON export payload by round-tripping a workspace the test seeded through the store
internal/server/handlers_workspace_create_consent_test.go:337
↓ 6 callersMethodextraSession
extraSession is a second live session of the user, as a second device has.
internal/server/handlers_push_devices_test.go:47
↓ 6 callersFunctionextractCommandBlock
extractCommandBlock returns the substring of `md` covering one command's section, identified by its full path (e.g. "item create"). Used to scope asse
internal/cmdhelp/md_test.go:356
↓ 6 callersFunctionextractPRFromItem
(item *models.Item)
cmd/pad/cmd_github.go:448
↓ 6 callersFunctionextractVerifyToken
extractVerifyToken pulls the padver_ token out of a verification email body.
internal/server/handlers_verify_email_test.go:80
↓ 6 callersFunctionfailOnDeadlockOrError
Lock-order tests for the tabs revision (BUG-3285). They only discriminate on Postgres (PAD_TEST_POSTGRES_URL, `make test-pg`), where the loss paths ta
internal/store/workspace_tabs_lockorder_test.go:18
↓ 6 callersFunctionfakeUser
===================================================================== Helpers ===================================================================== fa
internal/mcp/dispatch_http_envelope_test.go:414
↓ 6 callersMethodfaultFrom
faultFrom makes visibleCollectionIDs fail from its nth call on (1-based), and counts calls.
internal/server/bug3334_fail_closed_test.go:238
↓ 6 callersFunctionfetchVersions
(t *testing.T, srv *Server, wsSlug, itemSlug, query string)
internal/server/handlers_item_versions_bounds_test.go:64
↓ 6 callersFunctionfileExists
(dir, name string)
internal/cli/detect.go:203
↓ 6 callersMethodfilterWatchesByCurrentAccess
filterWatchesByCurrentAccess re-checks each watch's CURRENT visibility (workspace membership / role / collection access / item grants) before it is us
internal/server/handlers_watch_access.go:34
↓ 6 callersFunctionfinish
(paths: string[])
web/src/lib/stores/chatSurface.svelte.ts:225
↓ 6 callersMethodfinish
()
internal/server/handlers_agenda.go:381
↓ 6 callersMethodfitState
fitState shortens a STRING state, if needed, so that the request's estimated size fits the measured token budget. It reports whether it truncated. The
internal/decision/typesafe.go:438
↓ 6 callersFunctionflexJSONToString
flexJSONToString accepts a raw JSON value and returns it as a canonical JSON-encoded string. Acceptable inbound shapes: - absent / empty / null → nil
internal/models/item.go:1882
↓ 6 callersFunctionfold
fold collapses whitespace, so a folded (>-) expression compares as one line.
internal/buildtools/ci_release_branches_test.go:84
↓ 6 callersFunctionforecastOnlyItem
(t *testing.T, w *agendaWorld, title, value string)
internal/server/handlers_agenda_forecast_test.go:199
↓ 6 callersFunctionforecastWorld
(t *testing.T)
internal/server/handlers_agenda_forecast_test.go:17
↓ 6 callersFunctionformatNumber
formatNumber formats native numbers without exponents and preserves json.Number literals. NaN and infinities keep strconv's spellings so callers can a
internal/mcp/number.go:12
↓ 6 callersFunctionftsImportBundle
(content string)
internal/store/import_fts_test.go:38
↓ 6 callersFunctionftsIntegrity
BUG-2758. ImportWorkspace and RemapAttachmentReferencesInWorkspace each ran a post-commit rebuildFTSForWorkspace that re-inserted every item of the wo
internal/store/import_fts_test.go:32
↓ 6 callersFunctiongetAuthedSession
getAuthedSession issues a GET as a logged-in user via a session cookie (GET needs no CSRF). The UA + IP match CreateSession so the session-binding mid
internal/server/handlers_items_moved_out_test.go:14
↓ 6 callersMethodgetJSON
getJSON serves a GET in-process and returns the response body, mapping any 4xx/5xx to a Go error (the resource protocol surfaces these as JSON-RPC err
internal/mcp/resources_http.go:291
↓ 6 callersMethodgetWorkspaceDocument
isUUID is defined in handlers_items.go getWorkspaceDocument resolves workspace slug and document ID from URL params.
internal/server/server.go:4239
↓ 6 callersMethodgrantHiddenItemToOwner
grantHiddenItemToOwner gives the fixture's restricted owner an item-level grant on the hidden item, independent of their collection_access restriction
internal/server/handlers_grant_visibility_test.go:115
↓ 6 callersFunctionguard
guard runs fn in the calling goroutine, so nothing can be abandoned or leak. A panic in the library becomes a MalformedError instead of crashing the c
internal/schedule/caps.go:132
↓ 6 callersFunctionharnessDbName
(userId: string | null, ws: string)
web/src/test/idbHarness.ts:30
↓ 6 callersMethodhasBootstrapToken
hasBootstrapToken reports whether a bootstrap token is currently configured. Lock-aware — safe to call without holding s.bootstrapMu. Used by handleSe
internal/server/bootstrap.go:156
↓ 6 callersFunctionhasItem
(items []models.Item, id string)
internal/store/bug3425_deleted_collection_reads_test.go:43
↓ 6 callersFunctionhideHandle
()
web/src/lib/components/editor/block-drag-handle.ts:431
↓ 6 callersMethodhistory
(t *testing.T, sc *models.ItemSchedule, n int)
internal/store/schedule_copy_test.go:84
↓ 6 callersMethodholds
(t *testing.T, u *models.User, at time.Time)
internal/store/needs_snooze_test.go:80
↓ 6 callersMethodhydrateItemsAppAttribution
App attribution on human-facing JSON (SPEC-6 U9c, TASK-3413): via_app and via_app_name on items (the creating app), comments and version rows, read in
internal/server/app_attribution.go:15
↓ 6 callersMethodinitialize
initialize runs a legacy handshake with the given clientInfo name and returns the session id pad issued.
internal/mcp/bug2772_remote_agent_identity_test.go:144
↓ 6 callersMethodinjectedDeadlock
injectedDeadlock is called by each wrapped function just before its commit: a test can make an attempt fail there, after its writes, with an error tha
internal/store/deadlock_retry.go:77
↓ 6 callersMethodinsertManagedReminderTx
Alarm writers run after the caller has locked the commitment.
internal/store/schedules.go:664
↓ 6 callersFunctioninvalidConversation
(format string, args ...any)
internal/store/conversations.go:49
↓ 6 callersFunctionisDeadlockError
isDeadlockError reports whether err is a genuine deadlock — Postgres' SQLSTATE 40P01. It deliberately does NOT match SQLite's "database is locked"; se
internal/store/items_cross_workspace_copy.go:1643
↓ 6 callersFunctionisEventStream
(contentType string)
internal/server/mcp_stream_keepalive.go:143
↓ 6 callersFunctionisHeartbeat
isHeartbeat reports whether a payload is a bus-internal liveness frame. THE SHAPE IS VALIDATED, NOT JUST THE PREFIX, and the first draft got this wro
internal/events/redis_heartbeat.go:135
↓ 6 callersFunctionisNotFoundError
* Returns true when `err` is a 404 not_found. BUG-2265: a * competing RENAME can kill the slug a write targeted, so the request returns * 404 instea
web/src/lib/api/client.ts:401
↓ 6 callersFunctionisOpenState
(state: string | null | undefined)
web/src/lib/calendar/presentation.ts:145
↓ 6 callersFunctionisUUID
(s string)
internal/server/handlers_items.go:4340
↓ 6 callersMethodissueAndRedeem
issueAndRedeem issues a fresh install code and redeems it.
internal/server/handlers_apps_webhooks_test.go:49
↓ 6 callersMethoditem
(t *testing.T, col *models.Collection, status string)
internal/mcp/board_test.go:52
↓ 6 callersFunctionitemClaimCmd
`pad item claim` / `pad item release` (#1221): the execution lease. A claim answers "may I be the one executing this right now" atomically — two polle
cmd/pad/cmd_item_lease.go:18
↓ 6 callersFunctionitemFor
(slug: string)
web/src/lib/components/items/itemDetailIdentityLoad.svelte.test.ts:81
↓ 6 callersMethoditemLock
itemLock returns the lazily-allocated mutex guarding setup-phase operations on itemID. Locks live in the manager for the lifetime of the process — for
internal/collab/manager.go:304
↓ 6 callersFunctionjsonBody
(t *testing.T, v any)
internal/server/bug3680_cross_site_signin_doors_test.go:57
↓ 6 callersFunctionjsonEncode
jsonEncode returns s as a JSON string literal — the wire form of a field that crosses as a JSON-ENCODED STRING (an item's fields, a collection's schem
internal/server/decode_json_nul_test.go:227
↓ 6 callersFunctionlaneValue
(raw: unknown)
web/src/lib/collections/boardColumns.ts:41
↓ 6 callersFunctionlaneWriteValue
(field: FieldDef | undefined | null, laneKey: string)
web/src/lib/collections/laneWriteValue.ts:60
↓ 6 callersFunctionlastLine
lastLine is what `| tail -1` returns.
cmd/pad/item_update_outcome_test.go:174
↓ 6 callersFunctionlibraryDiffCmd
libraryDiffCmd: pad library diff <ref> (TASK-3462 U3c).
cmd/pad/cmd_library.go:546
↓ 6 callersMethodlift
Lift ONE finger (the others stay down): `touchEnd` of the ending point.
web/e2e/lib/attachment-viewer.ts:401
↓ 6 callersFunctionlinkNode
(s string)
internal/schedule/links_test.go:21
↓ 6 callersMethodlinkNow
()
internal/store/commitment_cascade.go:40
↓ 6 callersFunctionlinkRoleName
(r schedule.Role)
internal/store/commitment_links.go:129
↓ 6 callersMethodlinkedSource
Links stay within one workspace (TASK-4353, 2a). A cross-workspace copy or move cannot carry them: the copy starts with none, a move removes the sourc
internal/store/schedule_carry_links_test.go:17
↓ 6 callersFunctionlinkedTOTPUser
linkedTOTPUser is an existing account with GitHub linked and, when totpOn, TOTP enabled. It returns the user ID and the TOTP secret ("" when off).
internal/server/handlers_bug3322_totp_doors_test.go:33
↓ 6 callersFunctionlistTransitions
listTransitions returns all status_transitions rows for an item, oldest first.
internal/store/status_transitions_test.go:12
↓ 6 callersFunctionliveItemAttachmentFixture
Store-level tests for CreateAttachmentForLiveItem — PLAN-2391 DR-14 / TASK-2402. The handler-level coverage lives in internal/server; these pin the in
internal/store/attachments_live_item_test.go:18
↓ 6 callersFunctionload
($, what = view)
plugin/hooks/register.js:381
↓ 6 callersFunctionloadPersistence
()
web/src/test/idbHarness.ts:42
↓ 6 callersFunctionmakeStale
BUG-3033 — the doors that do NOT serialise models.Item and therefore inherit nothing from BUG-3000. Every test here runs BOTH directions on ONE item,
internal/server/handlers_content_state_doors_test.go:30
↓ 6 callersFunctionmapKeyText
mapKeyText renders one map key for the log, never copying more than maxMapKeyBytes+1 bytes of it, by the key's reflect.Kind (no size heuristic): - a t
internal/logging/scrub.go:164
↓ 6 callersFunctionmarked
()
web/src/lib/components/common/QuickActionsMenu.svelte.test.ts:810
← previousnext →2,601–2,700 of 28,840, ranked by callers