MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 2 callersFunctiontickDeadlineFixture
(t *testing.T)
internal/server/reminder_tick_deadline_test.go:16
↓ 2 callersFunctiontiedChildren
tiedChildren creates one child per title under a new parent and forces the same-second tie decompose produces: every child gets ONE created_at value (
internal/store/items_new_item_top_test.go:122
↓ 2 callersFunctiontimeToRFCDatetimeStr
https://tools.ietf.org/html/rfc5545#section-3.3.5 DTSTART:19970714T133000 ; Local time DTSTART:19970714T173000Z
internal/schedule/internal/rrule/str.go:373
↓ 2 callersFunctiontimelineIDsBySummary
BUG-2788: a timeline entry's id must not depend on its siblings. Both consequences on the item's trail are driven here through the real timeline build
internal/server/bug2788_entry_id_stability_test.go:20
↓ 2 callersFunctiontimezoneLabel
--- init ---
cmd/pad/cmd_auth.go:1061
↓ 2 callersFunctiontitleCaseLabel
titleCaseLabel converts a snake_case key into a Title Case label the same way the CLI does ("due_date" → "Due Date"). Avoids pulling in golang.org/x/t
internal/mcp/dispatch_http_routes.go:855
↓ 2 callersFunctiontitleEditError
(sent: string, stored: string)
web/src/lib/items/titleLimit.ts:66
↓ 2 callersFunctiontitleLimitError
(title: string)
web/src/lib/items/titleLimit.ts:49
↓ 2 callersFunctiontoBool
(v any)
internal/mcp/dispatch.go:720
↓ 2 callersFunctiontoEditorMarkdown
(stored: string, items: Item[], workspaceSlug: string, username?: string)
web/src/lib/utils/markdown.ts:948
↓ 2 callersFunctiontoIdle
One cleanup, so every "give up on this entry" site leaves the same state.
web/src/lib/attachments/viewerTextLoader.svelte.ts:111
↓ 2 callersFunctiontoIdle
()
web/src/lib/attachments/viewerBytesLoader.svelte.ts:75
↓ 2 callersFunctiontoStringSlice
(v any)
internal/mcp/dispatch.go:667
↓ 2 callersFunctiontoStrings
(t *testing.T, v any)
internal/mcp/transport_test.go:164
↓ 2 callersFunctiontoWire
toWire converts a question to its provider representation. Criteria shape is per kind: option->description for choice, an ordered array for score, and
internal/decision/typesafe.go:291
↓ 2 callersFunctiontoggle
* The avatar exposes the sheet state, so drive it through its real toggle and read * the toggle's `aria-expanded` — the user-visible truth.
web/src/routes/(console)/consoleShellEscape.svelte.test.ts:35
↓ 2 callersFunctiontoggle
(c: HTMLElement)
web/src/lib/components/fields/FieldEditor.quickClicks.svelte.test.ts:76
↓ 2 callersFunctiontoggleFitOrActual
(state: ZoomState, anchor: Point, g: Geometry)
web/src/lib/attachments/zoom.ts:388
↓ 2 callersFunctiontokenAccessWidens
(old, new tokenAccess)
internal/server/handlers_tokens.go:464
↓ 2 callersFunctiontokenListCmd
()
cmd/pad/cmd_token.go:113
↓ 2 callersFunctiontokenScopeDeniedPayload
buildAuthedRequest constructs an in-process HTTP request against the wrapped handler with the user attached via WithCurrentUser AND any caller-supplie
internal/mcp/dispatch_http.go:602
↓ 2 callersFunctiontokenWorkspaceDenial
tokenWorkspaceDenial describes why a token is refused a workspace: the message to say and the details to attach. details is nil for a token with no pi
internal/server/pinned_token.go:136
↓ 2 callersFunctiontokenizeBody
( msg: Pick<ChatMessage, 'body' | 'context_workspace' | 'deleted'>, refs: readonly ChatRef[] )
web/src/lib/chat/refs.ts:286
↓ 2 callersMethodtombstone
(seq: number)
web/src/lib/stores/chatThread.property.svelte.test.ts:134
↓ 2 callersFunctiontool
(label: string, scope: HTMLElement = root())
web/src/lib/components/common/Lightbox.svelte.test.ts:4205
↓ 2 callersFunctiontoolErrorCode
toolErrorCode reads the code and details.reason of a failed result's error envelope: the structured content when it has one, else the text rendering,
internal/mcp/audit_outcome.go:68
↓ 2 callersFunctiontopEscapePriority
()
web/src/lib/stores/escapeStack.ts:73
↓ 2 callersFunctiontopLevelValueProvided
topLevelValueProvided reports whether a top-level param VALUE counts as supplied for the duplicate checks below. An empty string does not. That is th
internal/mcp/catalog_item_fields.go:516
↓ 2 callersFunctiontopRow
The first row showing at the top of the list's current scroller, and its viewport top.
web/e2e/bug-3165-list-scroll-after-expand.spec.ts:83
↓ 2 callersFunctiontopSortOrder
topSortOrder is the sort_order of a new item landing above min. The reorder API accepts the INTEGER floor -2147483648, and min - 1 would overflow Post
internal/store/items.go:292
↓ 2 callersFunctiontotal
(c: Record<string, number>)
web/e2e/task-2224-sse-request-budget.spec.ts:160
↓ 2 callersMethodtotalChildRows
totalChildRows sums every seeded child row for a workspace, checking item-scoped tables against the original parent IDs so a leaked row is detectable
internal/store/workspace_purge_test.go:226
↓ 2 callersFunctiontotpEnrolError
(err error)
cmd/pad/cmd_auth_2fa.go:159
↓ 2 callersFunctiontouchCredentialsFile
touchCredentialsFile sets the save's open file's mtime to now (BUG-3838), through its descriptor only, so a path replaced or a symlink retargeted sinc
internal/cli/credentials_touch_unix.go:18
↓ 2 callersFunctiontouchDrag
(page: Page, start: { x: number; y: number }, end: { x: number; y: number })
web/e2e/bug-3158-landscape-touch-drag.spec.ts:77
↓ 2 callersFunctiontouches
A seed matches as a PREFIX (NewPostgres also matches NewPostgresBounded); a helper function name found by the fixpoint matches exactly.
scripts/pg-test-run.py:29
↓ 2 callersFunctiontransform
The pannable content transform — the observable proof a pan moved anything.
web/src/lib/components/graph/ItemGraph.svelte.test.ts:81
↓ 2 callersFunctiontrigger
()
web/src/lib/utils/throttledRefresh.ts:52
↓ 2 callersFunctiontrimRedundantSchemaLabels
trimRedundantSchemaLabels parses the schema JSON, drops field labels equal to TitleCase(key), and re-marshals. Returns the original bytes verbatim on
internal/server/handlers_bootstrap.go:200
↓ 2 callersFunctiontrueLit
(backend string)
internal/store/bug3136_step2_twin_test.go:237
↓ 2 callersFunctiontruncateDecisionError
truncateDecisionError makes a failure message safe to record: valid UTF-8, NUL-free and at most maxDecisionErrorBytes. A provider's response body is a
internal/store/decisions.go:681
↓ 2 callersFunctiontruncateTitle
truncateTitle limits an uncolorized, SGR-free title to maxRunes visible columns, appending an ellipsis when it had to cut. Callers strip SGR escapes f
internal/cli/format.go:203
↓ 2 callersFunctiontryTakeStreamSlot
* Take a free browser-wide stream slot, or answer null when all are held. * The returned function releases it. Never waits: ifAvailable.
web/src/lib/services/sse.svelte.ts:40
↓ 2 callersMethodtutorialCatalogNow
tutorialCatalogNow returns the catalog, refreshing it when it is older than the TTL. One refresh runs at a time and never holds the lock while it wait
internal/server/tutorials.go:139
↓ 2 callersFunctiontwinsInDest
The copy door and the visibility property (PLAN-2857 U6). These are legs that were missing, and they are the reason the property had to move INTO the
internal/server/relation_titles_copy_test.go:27
↓ 2 callersFunctiontypeAndSend
(page: Page, text: string)
web/e2e/chat-thread-write.spec.ts:88
↓ 2 callersFunctiontypeOf
()
internal/server/bug3417_null_lists_test.go:102
↓ 2 callersFunctionunauditedTables
unauditedTables lists base tables in the store's schema with no WORKING audit trigger. A same-named trigger only counts when it is enabled, statement-
internal/store/storetest/writecapture.go:215
↓ 2 callersFunctionuncheckedPatchUses
uncheckedPatchUses lists every reference to CreatePatch or CreateReversePatch through this file's import of the package: a call, a method value, under
internal/diff/bug3839_invalid_utf8_test.go:120
↓ 2 callersMethodunclaim
(token string, ids []string)
internal/server/push_dispatch.go:688
↓ 2 callersFunctionuncollectableReason
( row: ItemCopyPreflightNeedsValue )
web/src/lib/items/copyNeedsValue.ts:85
↓ 2 callersFunctionunconfirmedAppendError
unconfirmedAppendError is the append path's post-write assertion failing: the server accepted the request but its response does not show the entry. It
cmd/pad/notes.go:249
↓ 2 callersFunctionunescapeMarkdownText
unescapeMarkdownText reverses CommonMark escape sequences in a captured label. Marked's tokenizer drops the backslash and emits the literal character,
internal/server/render/attachments.go:357
↓ 2 callersFunctionunguardedScriptExecs
unguardedScriptExecs scans Go source for every exec.Command or exec.CommandContext whose arguments include scriptPath( and returns the 1-based line of
internal/buildtools/bug4066_harness_guard_test.go:449
↓ 2 callersFunctionuniqueAgent
(tag: string)
web/e2e/chat-shell-layout.spec.ts:21
↓ 2 callersFunctionuniqueAgent
(tag: string)
web/e2e/chat-thread-write.spec.ts:23
↓ 2 callersFunctionuniqueCollectionConflictMessage
uniqueCollectionConflictMessage distinguishes the indexes a collection write can violate, because "a collection with this name already exists" is acti
internal/server/handlers_collections.go:762
↓ 2 callersFunctionuniqueEnforced
uniqueEnforced reports whether checkUniqueFields enforces def. The app installer's preview uses the same predicate (TASK-3397), so the two cannot disa
internal/server/handlers_items.go:4299
↓ 2 callersMethoduniqueHolderQuery
uniqueHolderQuery finds one live item in the collection other than excludeItemID whose key holds val, by JSON type, identically on both dialects (BUG-
internal/store/unique_fields.go:218
↓ 2 callersFunctionuniqueStrings
(values []string)
internal/models/item.go:1287
↓ 2 callersFunctionunitRowIDs
(units []pushUnit)
internal/server/push_dispatch.go:648
↓ 2 callersFunctionunknownWorkspaceResult
unknownWorkspaceResult wraps a "workspace X doesn't exist" failure. Same available_workspaces enrichment as no_workspace. Empty slug emits a generic m
internal/mcp/errors.go:417
↓ 2 callersFunctionunmountTab
(t: Tab)
web/src/lib/collab/materializer/materializerParity.svelte.test.ts:185
↓ 2 callersFunctionunparentedEffective
(intent: boolean, metadataAvailable: boolean)
web/src/lib/collections/unparentedFilter.ts:103
↓ 2 callersMethodunread
(ctx context.Context, agent string)
cmd/pad/cmd_watch_chat.go:19
↓ 2 callersFunctionunreadDividerIndex
(messages: readonly ChatMessage[], openReadSeq: number)
web/src/lib/chat/model.ts:26
↓ 2 callersFunctionunreadTotal
(request: APIRequestContext, f: Fixture)
web/e2e/chat-entries.spec.ts:36
↓ 2 callersFunctionunreadableFieldsBlob
unreadableFieldsBlob tags an append's fields-parse failure as ErrStructuredFieldUnreadable. The classification, not the failure, is what this changes
internal/models/item.go:1075
↓ 2 callersFunctionunreadableSource
r4-1: an unreadable outstanding occurrence must not be lost by a move. A copy still arms from the rule without reading the source occurrence.
internal/store/schedule_copy_r3_test.go:212
↓ 2 callersMethodunrecordedSnapshot
unrecordedSnapshot returns the parked ids and each user's parked count. A parked row was delivered, so it counts toward that user's 30/h cap although
internal/server/push_dispatch.go:461
↓ 2 callersFunctionunsentIfNothingWritten
(cw *countingWriter, err error)
internal/appfetch/appfetch.go:451
↓ 2 callersFunctionunsupportedRebindForm
(lit string)
internal/store/bug3430_rebind_unsupported_forms_test.go:31
↓ 2 callersMethoduntil
until converts UNTIL into the engine's time space: the instant for an elapsed rule, a UTC-labelled wall for the wall-clock path. A Z UNTIL is an insta
internal/schedule/engine.go:63
↓ 2 callersFunctionunusablePasswordHash
unusablePasswordHash is a random secret nobody keeps.
internal/store/account_claim.go:279
↓ 2 callersFunctionunwrap
(n: Node)
web/src/test/identityFenceAst.ts:851
↓ 2 callersFunctionup
(el: Element)
web/src/lib/utils/clickOutside.svelte.test.ts:20
↓ 2 callersFunctionupdateAspectActive
()
web/src/lib/components/editor/attachment-crop-modal.ts:152
↓ 2 callersMethodupdateComment
updateComment is UpdateComment/UpdateCommentAs; a nil editor is the author.
internal/store/comments.go:220
↓ 2 callersMethodupdateCommitmentAt
(workspaceID, itemID string, upd models.ScheduleUpdate, partial *models.CommitmentRolesPatch, nowT time.Time)
internal/store/schedules.go:730
↓ 2 callersFunctionupdatedChanges
PLAN-2348 checkpoint 2, defect 5. The timeline dropped two kinds of real field change: an "updated" row sharing its second with a version (so a status
internal/server/plan2348_timeline_drops_test.go:19
↓ 2 callersMethodupgradeStateChecks
upgradeStateChecks runs, on q, the checks the diff cannot make alone because they read the workspace: every installed companion still resolves, and ev
internal/server/handlers_apps_upgrade.go:334
↓ 2 callersFunctionuploadAsGuestRepeated
uploadAsGuestRepeated is uploadAsGuestChannels with an arbitrary number of item_id values on each channel.
internal/server/handlers_attachments_test.go:156
↓ 2 callersFunctionuploadImportBundle
(opts: ImportUploadOptions)
web/src/lib/api/importUpload.ts:70
↓ 2 callersFunctionuploadPathWithItemIDs
uploadPathWithItemIDs appends any number of item_id query parameters.
internal/server/handlers_attachments_test.go:182
↓ 2 callersFunctionuploadRepeatedItemIDs
uploadRepeatedItemIDs drives the upload route with an arbitrary number of item_id values on each channel.
internal/server/handlers_attachments_test.go:596
↓ 2 callersMethodupsertLinkOverrideTx
(tx *sql.Tx, linkID, key string, off *models.ScheduleLinkOffset, goneAt string)
internal/store/commitment_cascade.go:166
↓ 2 callersFunctionurlNamed
urlNamed reports a name that holds a URL (webhook_url, callbackUrl, http.url).
internal/logging/redaction.go:242
↓ 2 callersFunctionusableDimension
(value: number | null | undefined)
web/src/lib/attachments/viewerLoading.ts:54
↓ 2 callersFunctionusePad
($: any, command = 'pad bootstrap --format json')
plugin/tests/watch.test.ts:67
↓ 2 callersFunctionuserActorLabel
userActorLabel is the created_by this door writes on note/decision entries: the requesting user's name, falling back to email, so audit-log review can
internal/mcp/dispatch_http_project.go:564
↓ 2 callersMethoduserDisplayTx
userDisplayTx returns a user's display name, or "" when the account is gone.
internal/store/app_projection.go:150
↓ 2 callersFunctionuserGone
userGone is a writer's loss when a row it reads first (its user, its grant) was deleted by the account deletion. Matched on the sentinel, not on messa
internal/store/delete_account_writer_lockorder_test.go:322
↓ 2 callersMethoduserKindQ
userKindQ returns a user's kind, or "" when the row is gone.
internal/store/app_principal.go:26
↓ 2 callersFunctionutf8Bytes
(s: string)
web/src/lib/chat/compose.ts:22
↓ 2 callersFunctionvalidCursorID
validCursorID reports whether a caller-supplied `before_id` can be bound into the cursor predicate at all. The rule is derived from what the database
internal/server/handlers_timeline.go:837
↓ 2 callersFunctionvalidImportedBuiltinOrigin
validImportedBuiltinOrigin is Validate plus the check Validate leaves to collections: seed text a bundle carries must hash to the seed hash it carries
internal/store/builtin_origin.go:15
↓ 2 callersFunctionvalidOAuthSubject
validOAuthSubject accepts a provider account id: 1-255 bytes, no control characters (TASK-3351). The column has no database NUL trigger, so this door
internal/server/handlers_cloud.go:43
↓ 2 callersFunctionvalidTarHeader
validTarHeader recognises a POSIX ustar archive by the magic at offset 257. TWO KINDS OF FILE ARE DELIBERATELY NOT RECOGNISED, and both are refusals
internal/attachments/mime_magic.go:184
↓ 2 callersMethodvalidateAssignmentScopeQ
validateAssignmentScopeQ is validateAssignmentScope parameterized over the query surface so the same two checks can run inside a caller's transaction
internal/store/items.go:61
↓ 2 callersMethodvalidateCalendarView
validateCalendarView refuses (400) a calendar view whose config does not name usable fields of coll. Any other view_type is not checked. It writes the
internal/server/handlers_views.go:133
← previousnext →8,801–8,900 of 28,840, ranked by callers