MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,743 in github.com/PerpetualSoftware/pad

↓ 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 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 callersMethodetag
(t *testing.T, itemID string)
internal/server/task3401b_app_writes_test.go:45
↓ 6 callersMethodevaluateGatesQ
evaluateGatesQ evaluates every gate without a reader filter or any writes.
internal/store/commitment_gates.go:661
↓ 6 callersFunctionevaluated
evaluated stores one answer for (item, set) at `at`, as the runner does when it completes an evaluation.
internal/store/decisions_debounce_test.go:35
↓ 6 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:179
↓ 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 callersFunctionfilterWorkspacesByTokenAllowlist
filterWorkspacesByTokenAllowlist returns the subset of wss the request's OAuth consent allow-list permits, or wss unchanged when no per-slug gate appl
internal/server/handlers_workspaces.go:31
↓ 6 callersFunctionfinish
(paths: string[])
web/src/lib/stores/chatSurface.svelte.ts:225
↓ 6 callersMethodfinish
()
internal/server/handlers_agenda.go:439
↓ 6 callersFunctionfinishBootstrap
()
web/src/test/reactiveBootstrapMock.svelte.ts:41
↓ 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:440
↓ 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:1897
↓ 6 callersMethodforceAssign
forceAssign assigns an item to a user who is not a member (a guest): the store refuses that on write, but a person's membership can end after the assi
internal/server/handlers_me_needs_test.go:108
↓ 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 callersFunctionget
(k)
plugin/hooks/register.js:46
↓ 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 callersMethodgetWithHeader
getWithHeader is get that also returns the response headers (nil when no response arrived).
internal/cli/client.go:3587
↓ 6 callersMethodgetWorkspaceDocument
isUUID is defined in handlers_items.go getWorkspaceDocument resolves workspace slug and document ID from URL params.
internal/server/server.go:4297
↓ 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 callersFunctionguardSchemaAhead
guardSchemaAhead refuses to start when the database contains migrations this binary doesn't ship — i.e. the DB is AHEAD of the binary, the tell-tale o
internal/store/migration_guard.go:69
↓ 6 callersFunctionhandleCmdhelpCapabilitiesFallback
handleCmdhelpCapabilitiesFallback handles the cmdhelp v0.1 §8 fallback form, `pad --cmdhelp-capabilities`. When the flag is the first argument it writ
cmd/pad/main.go:190
↓ 6 callersMethodhandler
()
cmd/pad/bug4026_history_backlinks_json_test.go:155
↓ 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:157
↓ 6 callersFunctionhasItem
(items []models.Item, id string)
internal/store/bug3425_deleted_collection_reads_test.go:43
↓ 6 callersFunctionheadlessExtensions
(markdownOverrides: Record<string, unknown> = {})
web/src/lib/collab/materializer/headless.ts:74
↓ 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 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 callersMethodinsertManagedReminderTx
Alarm writers run after the caller has locked the commitment.
internal/store/schedules.go:698
↓ 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:1656
↓ 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:412
↓ 6 callersFunctionisolatedClient
(t *testing.T, base string)
internal/cli/bug3645_request_path_test.go:73
↓ 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 callersFunctionitemFor
(slug: string)
web/src/lib/components/items/itemDetailIdentityLoad.svelte.test.ts:81
↓ 6 callersFunctionitemRedactCmd
Not exposed through MCP: destructive, human-only.
cmd/pad/cmd_item_redact.go:19
↓ 6 callersMethoditemsPath
(coll string)
internal/server/unclaimed_accounts_test.go:29
↓ 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 callersFunctionkeepRefusedRawDraft
( userId: string, itemId: string, markdown: string, now = Date.now(), base?: { seq: number; body: string;
web/src/lib/items/refusedRawDraft.ts:101
↓ 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:181
↓ 6 callersFunctionmarkRolledBack
markRolledBack marks err (nil stays nil) as a definitive rollback.
internal/store/busy_error.go:113
↓ 6 callersFunctionmarked
()
web/src/lib/components/common/QuickActionsMenu.svelte.test.ts:810
↓ 6 callersFunctionmarshalScheduleRequest
(method, template string, input, body map[string]any)
internal/mcp/dispatch_http_schedule.go:146
↓ 6 callersMethodmcpAvailable
mcpAvailable is PLAN-2310 DR-1's predicate: cloud, or the setting on and a usable public origin configured. A setting that is on without an origin lea
internal/server/handlers_admin_mcp.go:57
↓ 6 callersMethodmcpBodyLimit
mcpBodyLimit is the largest POST body the MCP mounts accept (BUG-3534). The MCP transport (mcp-go's StreamableHTTPServer) reads the whole body into me
internal/server/middleware_mcp_body_limit.go:37
↓ 6 callersMethodmcpSetting
mcpSetting returns the effective value of the MCP setting and its source. Cloud is always on. Otherwise PAD_MCP_ENABLED wins, then the stored setting,
internal/server/handlers_admin_mcp.go:39
↓ 6 callersFunctionmembersHandler
membersHandler returns an http.Handler that responds to any path with the standard `{members:[...], invitations:[]}` shape using the supplied rows.
internal/mcp/dispatch_http_advanced_test.go:876
↓ 6 callersFunctionmergedMap
TASK-4732: a collection settings update is a shallow top-level merge onto the stored settings.
internal/models/collection_settings_merge_test.go:11
↓ 6 callersFunctionmintPAT
The PAT legs. Not a copy of the session legs for tidiness: a PAT authenticates through `TokenAuth`, a different middleware path with scopes and an all
internal/server/handlers_stream_session_liveness_test.go:192
↓ 6 callersFunctionmintWebView
mintWebView asks for a child of the web session parentTok, sent as a bearer.
internal/server/handlers_webview_session_test.go:30
↓ 6 callersFunctionmirrorConventionMetadata
A convention keeps its metadata twice (TASK-2257). The ordinary fields (`trigger`, `scope` / `surfaces`, `enforcement` / `priority`, `category`, `comm
internal/store/items_convention_mirror.go:32
↓ 6 callersFunctionmissedOccurrences
missedOccurrences is the walk ScheduleMissed counts and a resolve records, so the count a reader saw and the rows a done/skip writes cannot disagree.
internal/store/schedule_outstanding.go:82
↓ 6 callersFunctionmount
(extra: Record<string, unknown> = {})
web/src/lib/components/common/DialogShell.svelte.test.ts:7
↓ 6 callersFunctionmount
()
web/src/lib/chat/viewportOwner.svelte.test.ts:28
↓ 6 callersFunctionmustAllowed
(t *testing.T, s *Store, requestID, workspaceID string)
internal/store/oauth_connections_autoadd_test.go:57
↓ 6 callersFunctionmustRoles
(t *testing.T, in models.CommitmentRolesInput)
internal/store/commitment_c1_test.go:31
↓ 6 callersMethodnativeDeadline
nativeDeadline makes sc a native-role schedule whose deadline is secs after its outstanding occurrence, with the occurrence forced to deadlineOccAt.
internal/store/schedule_deadline_eval_test.go:27
↓ 6 callersMethodneedsItemState
needsItemState is the item's state as the snoozing user would see it now: the newest other comment's normalised second (needsCommentSecond), the ids a
internal/store/needs_snooze.go:121
↓ 6 callersMethodnestedAsyncCallbacks
* `async` callbacks in the script that are NOT top-level declarations: * IIFEs, subscription callbacks, async timer bodies. Instrument C, and the
web/src/test/identityFenceSource.ts:125
↓ 6 callersFunctionnewAwarenessTracker
()
internal/collab/awareness.go:165
↓ 6 callersFunctionnewBUG3976Fixture
(t *testing.T, d store.DriverType)
internal/server/bug3976_settings_not_object_test.go:38
↓ 6 callersFunctionnewClaimCodeEnv
(t *testing.T)
internal/server/handlers_claim_code_test.go:86
↓ 6 callersFunctionnewConnectedTestStore
Connected-apps store tests (PLAN-943 TASK-954). What's covered: - ListUserOAuthConnections deduplicates a chain across multiple access-token rows (r
internal/store/connected_apps_test.go:29
← previousnext →2,901–3,000 of 31,743, ranked by callers