MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 2 callersFunctionisDigits
(s string)
internal/cli/skillstamp.go:155
↓ 2 callersFunctionisDirectRequest
A DIRECT REQUEST: an `api.*` call or a bare `fetch(`.
web/src/lib/components/items/childIdentityFencePopulation.test.ts:330
↓ 2 callersFunctionisEscapeConsumedByViewer
(event?: Event | null)
web/src/lib/a11y/viewerBackdrop.ts:351
↓ 2 callersFunctionisFinalSSEEvent
isFinalSSEEvent reports whether p is one SSE event carrying a JSON-RPC response: an id and no method. Notifications and server-to-client requests carr
internal/server/mcp_stream_keepalive.go:154
↓ 2 callersFunctionisFrontmatterBody
(lines: readonly string[])
web/src/lib/components/editor/extensions/frontmatter.ts:49
↓ 2 callersFunctionisHandlerIdent
firstHandlerMentioned pulls the first handleXxx identifier out of a reason string, which is how a filtersAllowlist entry says WHERE it filters. isHand
internal/mcp/dispatch_http_allowlist_guard_test.go:974
↓ 2 callersFunctionisHiddenContentAcknowledged
(html: string)
web/src/lib/utils/hiddenContentDetector.ts:56
↓ 2 callersFunctionisInternalHref
(href: string, pageUrl: string)
web/src/lib/components/share/shareRender.ts:40
↓ 2 callersFunctionisItemListReq
(u: URL)
web/e2e/attachment-lifecycle.spec.ts:249
↓ 2 callersFunctionisItemResult
(x: unknown)
web/src/mcp-app/model.ts:23
↓ 2 callersFunctionisKnownVariant
isKnownVariant gates the ?variant= query against a closed set so an attacker can't probe arbitrary variant strings. Mirrors the constants in models.At
internal/server/handlers_attachments.go:917
↓ 2 callersFunctionisLabelLine
isLabelLine reports a one-word label that opens a block ("Constraints:").
internal/mcp/catalog.go:442
↓ 2 callersFunctionisLockTimeoutError
isLockTimeoutError reports whether err is SQLite's writer-contention timeout. This is a SATURATION signal, not a correctness one. The SQLite DSN make
internal/store/items_cross_workspace_copy.go:1661
↓ 2 callersFunctionisMarkedAtom
(n: PMNode)
web/src/lib/components/editor/extensions/inlineAtomNoMarks.ts:25
↓ 2 callersFunctionisMultiRelationType
(type: string | undefined | null)
web/src/lib/items/relationFieldTypes.ts:42
↓ 2 callersFunctionisNativeShell
()
web/src/lib/stores/auth.svelte.ts:170
↓ 2 callersFunctionisOpenChildrenError
( err: unknown )
web/src/lib/items/openChildrenError.ts:42
↓ 2 callersFunctionisOpenWorldAction
isOpenWorldAction reports whether (toolName, action) reaches outside the pad server's own data. Defaults to false.
internal/mcp/tool_surface.go:207
↓ 2 callersFunctionisOptionType
(t string)
internal/store/field_usage.go:192
↓ 2 callersFunctionisPKCEVerifier
isPKCEVerifier: an RFC 7636 code_verifier, 43-128 unreserved characters.
internal/server/twofactor_challenge.go:51
↓ 2 callersFunctionisPartialRemap
isPartialRemap reports whether err carries a remap that stopped between chunks (store.RemapPartialError): some items rewritten, the rest untouched.
internal/server/handlers_import_bundle.go:1546
↓ 2 callersFunctionisPersonPrompt
(e)
plugin/hooks/register.js:1263
↓ 2 callersFunctionisPlanLimitError
* Returns true when `err` is a PadApiError with code "plan_limit_exceeded". * Use this at every write-operation catch block to branch on plan-gating
web/src/lib/api/client.ts:347
↓ 2 callersFunctionisPlausibleEmail
requestIsLoopback reports whether the request came from a local CLI running on the same machine as the Pad server. The check is intentionally strict:
internal/server/handlers_auth.go:267
↓ 2 callersFunctionisPrivateIP
isPrivateIP reports whether a URL import may not connect to ip. The policy is the one shared with webhook delivery (BUG-3358): see netpolicy.Blocked.
internal/urlimport/fetch.go:340
↓ 2 callersFunctionisPushMessageEmpty
(raw: string)
web/src/lib/push/message.ts:98
↓ 2 callersFunctionisPushMessageTooLong
(raw: string)
web/src/lib/push/message.ts:103
↓ 2 callersFunctionisReadScopePOSTPath
isReadScopePOSTPath reports whether path is a POST a read-scoped token may make because the handler behind it changes nothing (TASK-2863, HT-1394). Ex
internal/server/middleware_auth.go:1450
↓ 2 callersFunctionisReplyTargetDeletedError
(err: unknown)
web/src/lib/api/client.ts:406
↓ 2 callersFunctionisReplyTargetNotFoundError
(err: unknown)
web/src/lib/api/client.ts:411
↓ 2 callersFunctionisS256Challenge
isS256Challenge: an RFC 7636 S256 code_challenge, exactly 43 base64url characters (a 32-byte digest, unpadded).
internal/server/twofactor_challenge.go:48
↓ 2 callersFunctionisSafeBundleEntryName
isSafeBundleEntryName rejects tar entry names that look like a path-traversal attempt. The bundle path is already hash-keyed at the storage layer (see
internal/server/handlers_import_bundle.go:1377
↓ 2 callersFunctionisSafeFieldKey
(key: string)
web/src/lib/calendar/monthGrid.ts:71
↓ 2 callersFunctionisSamePaneTarget
(target: PaneTarget, current: PaneGuardItem | null | undefined)
web/src/lib/collections/paneTarget.ts:280
↓ 2 callersFunctionisSameWorkspaceItemHref
( href: string, wsSlug: string, collectionPrefixes: ReadonlyMap<string, string>, )
web/src/lib/collections/paneTarget.ts:155
↓ 2 callersFunctionisScheduleActiveDetails
(details: unknown)
web/src/lib/items/openChildrenError.ts:138
↓ 2 callersFunctionisScheduleActiveError
( err: unknown )
web/src/lib/items/openChildrenError.ts:131
↓ 2 callersFunctionisSending
(opKey: string)
web/src/lib/chat/composerRegistry.ts:50
↓ 2 callersFunctionisSpaceByte
(b byte)
internal/links/mentions.go:128
↓ 2 callersFunctionisStale
()
web/src/lib/stores/localIndex.svelte.ts:936
↓ 2 callersFunctionisStoreType
(t types.Type)
internal/appstore/boundary_check_test.go:574
↓ 2 callersFunctionisTerminalWithContext
isTerminalWithContext reports whether an item is in a terminal state given its collection's done-context. When the collection isn't in the map (e.g. d
internal/store/item_stars.go:225
↓ 2 callersFunctionisTextAffinity
isTextAffinity reports whether a declared column type can hold text. WIDER than the first version, which matched TEXT/CHAR/CLOB only. SQLite gives BL
internal/store/nulcolumns_test.go:241
↓ 2 callersFunctionisURLError
isURLError reports whether err's chain holds a *url.Error. A typed-nil error whose Unwrap dereferences its receiver must not take a log call down.
internal/logging/scrub.go:836
↓ 2 callersFunctionisUniqueViolation
isUniqueViolation recognises a unique-index violation from EITHER driver. The collection handlers used to check only SQLite's "UNIQUE constraint", so
internal/server/handlers_collections.go:750
↓ 2 callersFunctionisUpdateConflictError
* Returns true when `err` is the optimistic-concurrency 409 (BUG-2265): * the resource was modified by another writer since the caller last read it.
web/src/lib/api/client.ts:360
↓ 2 callersFunctionisUserIdReactive
(read: () => string, set: (id: string) => void)
web/src/test/identityEpochMock.svelte.ts:143
↓ 2 callersFunctionisVendored
isVendored reports whether a repo-relative path lies under any vendor/ directory. Checked per SEGMENT rather than as a prefix, so a nested vendor tree
internal/models/reserved_field_decode_guard_test.go:234
↓ 2 callersFunctionisViewerFrontmost
(root: Element)
web/src/lib/a11y/viewerBackdrop.ts:267
↓ 2 callersFunctionisWatchEventsFieldSelector
(n ast.Node)
internal/server/publish_sites_ruled_test.go:194
↓ 2 callersFunctionisWorkspaceNotFoundBody
(body: unknown)
web/src/lib/api/client.ts:798
↓ 2 callersFunctionisoBMFFFixture
isoBMFFFixture reads one of internal/attachments/testdata's real encoder outputs. The fixtures live in that package because that is where the sniffer
internal/server/handlers_attachments_isobmff_test.go:17
↓ 2 callersFunctionisolatedClient
(t *testing.T, base string)
internal/cli/bug3645_request_path_test.go:73
↓ 2 callersFunctionitem
(id: string, title: string)
web/src/lib/components/collections/task2237Nesting.svelte.test.ts:27
↓ 2 callersFunctionitem
(id: string, color?: string)
web/src/lib/components/collections/ListView.relationGroup.svelte.test.ts:75
↓ 2 callersFunctionitem
(disabled: boolean)
web/src/lib/components/common/Menu.focus.svelte.test.ts:13
↓ 2 callersFunctionitem
(id: string, sort_order: number)
web/src/lib/collections/reorder.test.ts:6
↓ 2 callersFunctionitem
(id: string, title: string, deleted = false)
web/src/lib/api/changesWalk.test.ts:9
↓ 2 callersMethoditemByRefQ
itemByRefQ resolves a live relation referent on the caller's executor. BUG-4119: exact refs and move-log-proven former refs share one statement. An ab
internal/store/relation_referents.go:1103
↓ 2 callersFunctionitemCommentPath
(wsSlug, itemRef, commentID string)
internal/cli/client.go:1216
↓ 2 callersFunctionitemCommentTarget
itemCommentTarget reads the workspace, ref and comment_id every item-scoped comment write needs and builds its path (TASK-2695).
internal/mcp/dispatch_http_routes.go:2181
↓ 2 callersFunctionitemCopyAttachmentSummary
itemCopyAttachmentSummary renders count + bytes. The exact byte count is always shown alongside the human-readable form so the rounding in "1.2 MiB" c
cmd/pad/cmd_item.go:3063
↓ 2 callersFunctionitemCopyLinkSummary
itemCopyLinkSummary renders a link-type→count map as "2 (blocks 1, related 1)". An empty or absent map renders "0", never a blank — a missing count an
cmd/pad/cmd_item.go:3042
↓ 2 callersFunctionitemCopyModeNoun
(archiveSource bool)
cmd/pad/cmd_item.go:2939
↓ 2 callersFunctionitemCopyScheduleView
itemCopyScheduleView is the one conversion from the store's report, shared by the copy and the preflight.
internal/server/handlers_items_copy.go:349
↓ 2 callersFunctionitemCopyTypeLabel
itemCopyTypeLabel renders the "(Label, type)" annotation, tolerating either or both being absent (both are omitempty on the wire).
cmd/pad/cmd_item.go:2957
↓ 2 callersFunctionitemCopyValue
itemCopyValue renders a carried field value without lying about it: a JSON null renders as an explicit marker, strings are quoted so an empty string i
cmd/pad/cmd_item.go:3026
↓ 2 callersFunctionitemCount
(t *testing.T, srv *Server, ws, collSlug string)
internal/server/task2189_collection_restore_test.go:42
↓ 2 callersMethoditemCreateRace
W1: the item create door.
internal/server/handlers_plan_limit_race_test.go:522
↓ 2 callersMethoditemDoneFilterQ
(q Queryer, itemID string)
internal/store/schedule_resolve.go:791
↓ 2 callersFunctionitemFor
(slug: string, collSlug = 'tasks')
web/src/lib/components/items/itemDetailProgressIsTheServers.svelte.test.ts:61
↓ 2 callersFunctionitemIDs
(s []*models.Item)
internal/store/commitment_links_test.go:184
↓ 2 callersFunctionitemIdentifierHasUpper
itemIdentifierHasUpper inspects the original spelling before ref parsing uppercases it. A mixed-case identifier follows the canonical-ref policy.
internal/store/items.go:1042
↓ 2 callersMethoditemImportRace
W2: the artifact import door, which mints through the same createItemChecked.
internal/server/handlers_plan_limit_race_test.go:530
↓ 2 callersFunctionitemMoveNeedsValueHint
itemMoveNeedsValueHint prints the needs_value rows the copy preflight reports for a same-workspace move that was refused as missing_required_fields: e
cmd/pad/cmd_item.go:4859
↓ 2 callersFunctionitemMoveStateChangeHint
itemMoveStateChangeHint turns a state_change_requires_value refusal's details into the exact command that answers it (BUG-2367 item 4). The server mes
cmd/pad/cmd_item.go:4881
↓ 2 callersFunctionitemOpenCmd
--- open ---
cmd/pad/cmd_item.go:1097
↓ 2 callersMethoditemOrder
itemOrder is the ORDER BY of an item list. With OrderByDay set it is the date order the calendar pages by: the same value the day filters read (the in
internal/store/items.go:2540
↓ 2 callersMethoditemRace
(t *testing.T, door func(t *testing.T) *httptest.ResponseRecorder)
internal/server/handlers_plan_limit_race_test.go:504
↓ 2 callersFunctionitemRefLookupSQL
itemRefLookupSQL builds the one shared SELECT for both ordinary Queryer callers and the app door's concrete *sql.Tx path. allowMoves=false omits move
internal/store/item_refs.go:28
↓ 2 callersFunctionitemRefString
itemRefString returns "TASK-5"-style refs for non-nil items, or the empty string when the collection prefix or item number is missing. Mirrors cli.Ite
internal/mcp/dispatch_http_links.go:521
↓ 2 callersMethoditemRefTx
itemRefTx is the item's "PREFIX-NUMBER" reference, read inside tx, or "" when it has none (no item number, or a collection with no prefix).
internal/store/wiki_links.go:1874
↓ 2 callersFunctionitemReleaseCmd
()
cmd/pad/cmd_item_lease.go:101
↓ 2 callersFunctionitemUrl
(fixture: SuiteFixture, ref: string)
web/e2e/bug-3540-raw-save-stale-base.spec.ts:27
↓ 2 callersFunctionitemUrl
(id: string)
web/e2e/bug-3850-draft-trailing-newline.spec.ts:26
↓ 2 callersFunctionitemVersionDiffFrom
itemVersionDiffFrom is GetItemVersionDiff over versions already resolved from currentContent.
internal/store/items.go:6831
↓ 2 callersFunctionitemVersionResolvesTo
resolvesTo requires some item version to resolve to exactly want.
internal/store/bug3839_invalid_utf8_version_test.go:56
↓ 2 callersMethoditemVisibleForQ
(r *http.Request, workspaceID string, includeTrashed bool)
internal/server/relation_hydration.go:125
↓ 2 callersMethoditemVisibleTo
itemVisibleTo is requireItemVisible without the response: the app ceiling, then the store's visibility rules.
internal/server/handlers_verifications.go:379
↓ 2 callersFunctionitemWebPath
(workspace models.Workspace, item models.Item)
cmd/pad/cmd_item.go:1134
↓ 2 callersMethoditemsFor
itemsFor reads the rows' items once and returns that read to every later caller, whatever rows it passes: every scorer sharing a memo must pass the sa
internal/server/needs_scorers.go:156
↓ 2 callersFunctionjobTimeout
jobTimeout is one job's hard deadline: the configured base plus PerKiBTimeout for each KiB of its rows, never below the base and never above MaxTimeou
internal/materialize/supervisor_config.go:75
↓ 2 callersFunctionjoinFieldEquals
joinFieldEquals ORs the two halves JSONFieldEqualsParts returns.
internal/store/dialect_fieldvalue.go:68
↓ 2 callersFunctionjoinSeededAt
joinSeededAt joins the item's room as a tab whose document was seeded from items.content at contentSeq (since=0), and returns the first control frame:
internal/server/bug3746_prune_replace_fence_test.go:99
↓ 2 callersFunctionjpegWithEXIF
jpegWithEXIF encodes a JPEG of the given size and splices an APP1 "Exif" segment in right after SOI, so the source demonstrably CARRIES EXIF. The deco
internal/server/handlers_share_attachments_derive_test.go:81
↓ 2 callersFunctionjsonEqual
jsonEqual compares two parsed-JSON maps for value equality. Cheaper than reflect.DeepEqual and accepts the float/string nuances of json.Unmarshal outp
internal/mcp/install.go:384
↓ 2 callersFunctionjsonHandler
--- end-to-end routing, one case per surface --- jsonHandler serves canned JSON per URL-path suffix so each command's client call is satisfied without
cmd/pad/format_markdown_surfaces_test.go:114
↓ 2 callersFunctionjsonHasCode
(t *testing.T, rr interface{ Bytes() []byte }, code string)
internal/server/bug2367_migrate_doors_test.go:319
↓ 2 callersFunctionjsonNumber
(n int)
internal/mcp/resources_test.go:576
↓ 2 callersFunctionjsonRPCHasMethod
jsonRPCHasMethod reports whether body names method, decoded EXACTLY as mcp-go's handlePost decodes it: encoding/json into a struct with a "method" fie
internal/server/mcp_stream_keepalive.go:289
← previousnext →7,501–7,600 of 28,840, ranked by callers