Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
28,840 in github.com/PerpetualSoftware/pad
⨍
Functions
28,840
◇
Types & classes
3,245
↓ 1 callers
Function
errorTypeOf
errorTypeOf extracts detail.error_type from an error body, returning "" if the body is not that shape. It tolerates detail being a string or absent, s
internal/decision/typesafe.go:681
↓ 1 callers
Method
errored
* The `<img>` failed to load `erroredSrc`. `gen` is the reporting element's * mount `loadToken`. Ignored unless it is the current generation AND src
web/src/lib/attachments/viewerImageLoader.svelte.ts:108
↓ 1 callers
Function
esc
()
web/src/lib/a11y/viewerBackdrop.svelte.test.ts:760
↓ 1 callers
Function
escape
()
web/src/lib/components/layout/DockedSheet.svelte.test.ts:69
↓ 1 callers
Function
escape
()
web/src/lib/components/collections/task2191CreateDraftGuard.svelte.test.ts:61
↓ 1 callers
Function
escape
()
web/src/lib/components/collections/task2191EditDraftGuard.svelte.test.ts:85
↓ 1 callers
Function
escapeHandlerPrologue
* The body of the function that calls `runTopEscape()`, from its `function` * keyword up to that call — i.e. exactly the region the guard must sit in
web/src/lib/a11y/escapeGuardWiring.svelte.test.ts:85
↓ 1 callers
Function
escapeLikePattern
(s string)
internal/store/documents.go:632
↓ 1 callers
Function
escapeMarkdownAlt
Escape `[` and `]` in alt text so the markdown serializer's brackets stay balanced.
web/src/lib/components/editor/attachment-image.ts:203
↓ 1 callers
Function
escapeMarkdownLabel
* Escape the characters that would break out of a markdown link/image * label (`[label](...)`). Backslash first so we don't double-escape the * esca
web/src/lib/utils/commentAttachments.ts:76
↓ 1 callers
Function
escapeMarkdownLinkText
(s: string)
web/src/lib/utils/markdown.ts:1165
↓ 1 callers
Function
escapeRepeat
An auto-repeat Escape — what a HELD key fires after the first press.
web/src/lib/components/layout/DockedSheet.svelte.test.ts:74
↓ 1 callers
Function
escapeTagOpeners
(text: string, schema: Schema, atLineStart: boolean)
web/src/lib/components/editor/extensions/htmlProse.ts:197
↓ 1 callers
Function
escapeText
(md: MarkdownIt, s: string)
web/src/lib/components/editor/extensions/htmlProse.ts:149
↓ 1 callers
Function
escapeText
(s: string)
web/src/lib/chat/refs.ts:325
↓ 1 callers
Function
escapeWikiBody
(s: string)
web/src/lib/utils/markdown.ts:1171
↓ 1 callers
Function
ev
(type: string, pointerId: number)
web/src/lib/utils/backdropDismiss.svelte.test.ts:69
↓ 1 callers
Function
evalOne
(p decision.Provider, dump, mode string, m member, qs map[string]decision.Question)
scripts/decision-eval/attention/main.go:145
↓ 1 callers
Function
evalString
(e ast.Expr)
internal/cli/skill_legacy_hashes_gen_test.go:161
↓ 1 callers
Function
evaluate
(needs, event)
scripts/ci-result.py:12
↓ 1 callers
Method
evaluatePerComment
evaluatePerComment is Evaluate for a PerComment set.
internal/decision/per_comment.go:44
↓ 1 callers
Function
eventVerb
(ev: HistoryEvent, noun = 'item', fieldLabel: (key: string) => string = (k) => k)
web/src/lib/components/timeline/historyEvents.ts:333
↓ 1 callers
Function
events
(entries: TimelineEntry[])
web/src/lib/components/timeline/historyEvents.test.ts:62
↓ 1 callers
Method
eventsSinceLocked
eventsSinceLocked is EventsSince without the observer report. Callers must hold b.mu. Shared with SubscribeAndReplaySince so the two cannot drift in w
internal/events/redis_bus.go:1581
↓ 1 callers
Function
eventsUrlFor
(wsSlug: string)
web/e2e/bug-2539-sync-window.spec.ts:65
↓ 1 callers
Function
everyContentBearingReadDoor
everyContentBearingReadDoor is the body, parameterised over the backend because the FTS branches are DIALECT-SPECIFIC: ListItems(search) and Search ta
internal/store/item_content_state_test.go:214
↓ 1 callers
Method
evictLocked
evictLocked makes room for one more key. Idle entries past the age go first; if the map is still full, the oldest idle ones do. Called with m.mu held.
internal/server/client_write_marks.go:111
↓ 1 callers
Function
evictOldestForUser
Remove this user's oldest kept draft other than `keepItemId`'s (either slot).
web/src/lib/items/refusedRawDraft.ts:130
↓ 1 callers
Method
evictOldestSettledLocked
evictOldestSettledLocked drops the oldest entry that is NOT running and reports whether there was one. A running entry is never evicted: its key is st
internal/server/import_outcomes.go:143
↓ 1 callers
Function
evictions
(from: number, count: number, idOf: (i: number) => string)
web/src/lib/stores/localIndexMovedOutFloor.svelte.test.ts:237
↓ 1 callers
Function
exactDecimal
exactDecimal prints r as a plain decimal with no loss. Every JSON number is a terminating decimal, so r's reduced denominator is 2^a*5^b and max(a, b)
internal/collections/builtin.go:174
↓ 1 callers
Function
exactItemNumberLookup
* Exact item_number lookup. Used by the `#N` / `item:N` / bare-digit * paths in `search()`. MiniSearch's tokenized search would surface * every doc
web/src/lib/stores/localSearch.svelte.ts:417
↓ 1 callers
Function
exactly
(...keys: string[])
web/src/lib/components/items/itemDetailHiddenLoadDefers.svelte.test.ts:124
↓ 1 callers
Method
exec
(q string, args ...any)
internal/store/commitment_cancel_pg_test.go:83
↓ 1 callers
Function
execStderrMatchesAuthRequired
(lower string)
internal/mcp/errors.go:856
↓ 1 callers
Function
execStderrMatchesItemNotFound
(lower string)
internal/mcp/errors.go:860
↓ 1 callers
Function
execStderrMatchesNoWorkspace
(lower string)
internal/mcp/errors.go:852
↓ 1 callers
Function
execStderrMatchesPermissionDenied
(lower string)
internal/mcp/errors.go:857
↓ 1 callers
Function
execStderrMatchesUnknownWorkspace
(lower string)
internal/mcp/errors.go:853
↓ 1 callers
Function
execStderrMatchesValidation
(lower string)
internal/mcp/errors.go:861
↓ 1 callers
Function
executeMove
(view: EditorView, fromPos: number, fromNode: any, targetPos: number)
web/src/lib/components/editor/block-drag-handle.ts:202
↓ 1 callers
Function
exempt
(key: string)
web/src/lib/eachKeyCensus.test.ts:172
↓ 1 callers
Function
exercise
(strip: Element)
web/src/lib/components/connectWorkspaceModalTabs.svelte.test.ts:42
↓ 1 callers
Function
exerciseNewField
(page: Page, dialog: ReturnType<Page['getByRole']>)
web/e2e/task-2186-field-label-reactivity.spec.ts:10
↓ 1 callers
Method
exhaust
exhaust marks the item as not to be tried until its op-log changes, and writes its one exhaustion line with kind as last_error_kind.
internal/server/materialize_recovery.go:668
↓ 1 callers
Method
exhaustedCount
exhaustedCount is how many items hold a spent failure budget right now. A budget whose op-log has since grown still counts until the worker admits the
internal/server/materialize_recovery.go:330
↓ 1 callers
Method
exhaustedFor
exhaustedFor reports whether itemID's failure budget is spent for an op-log whose MAX(id) is opLogMax: the refusal admit would give it, read without c
internal/server/materialize_recovery.go:345
↓ 1 callers
Function
exitDetail
(err error)
internal/materialize/supervisor.go:941
↓ 1 callers
Function
expand
(onRestore = vi.fn())
web/src/lib/components/timeline/timelineVersionCardUnreconstructable.svelte.test.ts:64
↓ 1 callers
Method
expandAgendaSeedsCut
ExpandAgendaCut is ExpandAgenda with the resume instant of any time-ordered cut: the per-schedule entry cut, the instance cap, CapTime and CapStall.
internal/store/schedule_agenda.go:326
↓ 1 callers
Method
expandCompiled
(c *schedule.Compiled, sc *models.ItemSchedule, rows []agendaRow, view *time.Location, from, to, now, deadline
internal/store/schedule_agenda.go:373
↓ 1 callers
Function
expansion
(stale: boolean)
web/src/lib/items/staleBodyRenders.svelte.test.ts:74
↓ 1 callers
Function
expectBackgroundInert
(page: Page, minMeaningful = 1)
web/e2e/lib/attachment-viewer.ts:790
↓ 1 callers
Function
expectBadgeMatchesServer
(page: Page, request: APIRequestContext, f: Fixture, entry: string)
web/e2e/chat-entries.spec.ts:44
↓ 1 callers
Function
expectBarSlots
(page: Page)
web/e2e/chat-phone-sheet.spec.ts:47
↓ 1 callers
Function
expectClose
(actual: number, expected: number, tol = 1e-9)
web/src/lib/attachments/zoom.test.ts:62
↓ 1 callers
Function
expectCursorMoves
* Assert the collection list's cursor MOVES, one key at a time, each step with * its own expectation: the first key must move the cursor off its star
web/e2e/attachment-viewer-owners.spec.ts:82
↓ 1 callers
Function
expectEphemeral
(page: Page, account: Account, slug: string)
web/e2e/workspace-tabs.spec.ts:554
↓ 1 callers
Function
expectEveryCallAbsorbed
()
web/src/lib/stores/chatThread.svelte.test.ts:1648
↓ 1 callers
Function
expectEveryCardOnServer
(server: ReturnType<typeof fakeServer>)
web/src/routes/[username]/[workspace]/[collection]/collectionIdentityFence.svelte.test.ts:1476
↓ 1 callers
Function
expectInert
(container: HTMLElement)
web/src/routes/s/[token]/bug3669ShareSanitize.svelte.test.ts:57
↓ 1 callers
Function
expectInert
The rendered body is inert: nothing that runs script, by element, handler or URL.
web/src/routes/s/[token]/task3798ShareXssPayloads.svelte.test.ts:92
↓ 1 callers
Function
expectInert
No executable surface anywhere in the output.
web/src/lib/chat/markdown.svelte.test.ts:23
↓ 1 callers
Function
expectLabelledInForm
Every input is inside a form and has exactly one label pointing at it.
web/src/routes/setup/setupForm.svelte.test.ts:52
↓ 1 callers
Function
expectMoved
The keyboard move completed and persisted: a 200 sort_order write after * `before`. Not necessarily naming the mover: with a view-only card in the
web/e2e/permission-walk-move.spec.ts:135
↓ 1 callers
Function
expectNoBareUuid
The invariant that spans every leg: a UUID must never reach the user.
web/src/lib/components/fields/FieldEditor.relation.svelte.test.ts:98
↓ 1 callers
Function
expectNoBareUuid
The invariant that spans every leg: a UUID must never reach the user.
web/src/lib/components/fields/FieldEditor.multiRelation.svelte.test.ts:102
↓ 1 callers
Function
expectNoRowBesideItsBubble
Invariant I9: no own row is visible both as a row (window or detached) and as a sending bubble.
web/src/lib/stores/chatThread.svelte.test.ts:1516
↓ 1 callers
Function
expectPatchOnly
Assert one door: it PATCHES the named keys and never sends a full blob.
web/src/routes/bug3049WebFullBlobWriters.test.ts:49
↓ 1 callers
Function
expectPending
(request: APIRequestContext, fixture: SuiteFixture, id: string)
web/e2e/bug-3230-raw-save-pending-edits.spec.ts:61
↓ 1 callers
Function
expectReads
(count: number)
web/src/lib/stores/homeOverview.svelte.test.ts:20
↓ 1 callers
Function
expectRealForm
Every visible input on the card is inside a form, and axe finds no label problems.
web/e2e/task-2259-auth-forms.spec.ts:27
↓ 1 callers
Function
expectRestricted
(scope: Element, opts: { marked: boolean })
web/src/routes/s/[token]/bug3799ShareClassAllowlist.svelte.test.ts:60
↓ 1 callers
Function
expectScoped
(q: string, f: Record<string, unknown>)
web/src/lib/components/search/CommandPalette.coll.svelte.test.ts:53
↓ 1 callers
Function
expectStored
(request: APIRequestContext, fixture: SuiteFixture, id: string, marker: string)
web/e2e/bug-3540-raw-save-stale-base.spec.ts:59
↓ 1 callers
Function
expectWithinBounds
(state: ZoomState, g: Geometry, tol = 1e-9)
web/src/lib/attachments/zoom.test.ts:71
↓ 1 callers
Function
experimentalCapabilities
experimentalCapabilities returns the map advertised at capabilities.experimental in the initialize handshake's result envelope. Lets clients discover
internal/mcp/meta.go:166
↓ 1 callers
Method
expireAndPrune
expireAndPrune is the tick's housekeeping, run before the claim so a stale row is never sent: pending rows older than pushExpireAfter expire, and rows
internal/server/push_dispatch.go:323
↓ 1 callers
Function
exportCmd
--- completion ---
cmd/pad/cmd_workspace.go:1161
↓ 1 callers
Function
exportHasAttachment
(atts []models.Attachment, id string)
internal/store/export_snapshot_test.go:182
↓ 1 callers
Function
exportHasCollection
(exp *models.WorkspaceExport, id string)
internal/store/export_snapshot_test.go:164
↓ 1 callers
Method
exportMilestoneInto
--- bundle export and import ------------------------------------------------- exportMilestoneInto fills a schedule's export with its forecast, foreca
internal/store/milestone.go:734
↓ 1 callers
Method
exportScheduleGatesQ
exportScheduleGatesQ carries every gate of a live blocked item. Deleted blockers travel as item rows only, so their gates fall back to item status.
internal/store/schedule_gate_carry.go:12
↓ 1 callers
Method
exportSchedules
exportSchedules reads the schedules of the workspace's live items, with the managed row's state, roles, overrides and history. Each read on q finishes
internal/store/schedule_carry.go:474
↓ 1 callers
Function
extensionForMIME
extensionForMIME delegates to the server package's mapping instead of keeping a second table here. It used to keep its own, and the copy had drifted:
cmd/pad/cmd_attachment.go:361
↓ 1 callers
Function
extractAllowDraft
extractAllowDraft removes any `allow-draft` / `allow_draft` bareword token from the raw CLI args and reports whether one was present. The returned boo
internal/server/handlers_playbooks.go:625
↓ 1 callers
Function
extractAroundSubstring
extractAroundSubstring returns body[match-radius:match+radius] when substr is present, or a "(not found)" sentinel. Helper for the error message above
internal/server/handlers_oauth_test.go:1588
↓ 1 callers
Function
extractEnumStrings
extractEnumStrings normalizes the schema's enum representation to a string set, accepting either []string or []any (mcp-go's exact shape has flipped h
internal/mcp/catalog_workspace_lifecycle_test.go:61
↓ 1 callers
Function
extractFrontmatterRegion
extractFrontmatterRegion returns the YAML text between the leading "---\n" fence and the next line equal to "---". Returns ("", false) when the openin
internal/server/artifact_import.go:223
↓ 1 callers
Function
extractHiddenFormValue
extractHiddenFormValue pulls the value of a hidden <input name="..."> out of rendered consent HTML, mirroring what a browser would submit. Values are
internal/server/handlers_oauth_test.go:453
↓ 1 callers
Function
extractImportSpecifiers
extractImportSpecifiers pulls the module specifiers out of every import shape we know about: static `import ... from '...'`, side-effect `import '...'
internal/server/share_page_collab_isolation_test.go:203
↓ 1 callers
Function
extractItemRefFromBranch
(branch string)
cmd/pad/cmd_github.go:110
↓ 1 callers
Method
extractParentLink
checkUniqueFields enforces FieldDef.UniqueScope == "workspace_collection" for the given collection. For each schema field with that scope, any non-emp
internal/server/handlers_items.go:4247
↓ 1 callers
Function
extractStringList
(raw any)
internal/models/item.go:1270
↓ 1 callers
Function
extractValidationField
extractValidationField pulls the field name out of a BuildCLIArgs error message, returning empty string when no match is found.
internal/mcp/errors.go:905
↓ 1 callers
Function
f
(type: string, over: Partial<FieldDef> = {})
web/src/lib/collections/laneWriteValue.test.ts:12
↓ 1 callers
Function
f
(v: number)
web/e2e/bug-3420-selected-tab-contrast.spec.ts:29
↓ 1 callers
Function
facts
(item: WindowItem, now: Date)
web/src/lib/chat/grouping.ts:65
↓ 1 callers
Function
fail
(code: string, message: string)
web/src/mcp-app/Board.svelte.test.ts:35
↓ 1 callers
Function
fail
(err: unknown)
web/e2e/attachment-viewer-owners.spec.ts:94
← previous
next →
11,201–11,300 of 28,840, ranked by callers