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
bootUnder
* Acquire a baseline the way a real session does — through a cold bootstrap * whose snapshot carries the epoch that describes it. Calling * `ensur
web/src/lib/stores/localIndexAccessEpochWiring.svelte.test.ts:476
↓ 1 callers
Function
bootWithEviction
()
web/src/lib/stores/localIndexMovedOutFloor.svelte.test.ts:170
↓ 1 callers
Function
bootstrapCmd
bootstrapCmd returns the agent bootstrap blob — the consolidated workspace + user + collections + always-on conventions + roles + playbook metadata +
cmd/pad/cmd_bootstrap.go:23
↓ 1 callers
Function
bootstrapSectionBytes
bootstrapSectionBytes returns a per-section byte breakdown of a bootstrap blob. Marshalled with the same encoder behavior as the real handler (compact
internal/server/handlers_bootstrap_test.go:717
↓ 1 callers
Function
both
(edits ...func(map[string]any, map[string]string))
internal/store/schedule_link_import_test.go:882
↓ 1 callers
Function
bottomOf
()
web/e2e/chat-thread-write.spec.ts:265
↓ 1 callers
Method
boundRuntimePool
boundRuntimePool replaces the startup pool with a second pool whose every connection carries the limits as startup parameters, then closes the startup
internal/store/runtime_limits.go:92
↓ 1 callers
Function
bounded
(after: number, make: () => unknown)
web/src/routes/(console)/needs/needsPage.svelte.test.ts:743
↓ 1 callers
Function
boundedBody
(raw []byte)
internal/decision/typesafe.go:694
↓ 1 callers
Method
boundedToolLabel
boundedToolLabel maps a name the server does not know to unknownToolLabel. The tool name is whatever the caller put in the request, and the audit midd
internal/server/middleware_mcp_audit.go:440
↓ 1 callers
Function
boundsCheck
boundsCheck holds one compiled schedule to the bound: at default Limits (but for the wall-clock check) NextAfter and Between from q return what the un
internal/schedule/bounds_test.go:168
↓ 1 callers
Function
box
(c: HTMLElement)
web/src/routes/messages/messagesRoutes.svelte.test.ts:932
↓ 1 callers
Function
box
(key: (typeof KEYS)[number])
web/src/lib/components/settings/NotificationSettings.svelte.test.ts:63
↓ 1 callers
Function
box
Box for a viewer descendant, in viewport coordinates, or null if absent.
web/e2e/attachment-viewer-sheet.spec.ts:45
↓ 1 callers
Function
box
(locator: Locator)
web/e2e/task-4545-home-today-row.spec.ts:6
↓ 1 callers
Function
braceBlock
braceBlock returns the chi router block starting at src, from the opening brace of its `func(r chi.Router) {` through the matching close, inclusive.
internal/mcp/dispatch_http_allowlist_guard_test.go:869
↓ 1 callers
Function
branchExclusive
* True when `a` and `b` sit in DIFFERENT branches of the same `if` or ternary, * and therefore never both run. * * Without this the guard reports a
web/src/lib/components/items/childIdentityFencePopulation.test.ts:518
↓ 1 callers
Function
branchHits
branchHits returns the scalars that name the branch, after dropping the allowed whole lines (compared exactly, before case folding).
internal/buildtools/ci_release_branches_test.go:526
↓ 1 callers
Function
breadcrumbParentTarget
( item: Pick<Item, 'parent_ref' | 'parent_slug' | 'parent_collection_slug'> | null | undefined, )
web/src/lib/collections/paneTarget.ts:351
↓ 1 callers
Method
breakGrantLookups
breakGrantLookups renames the two grant tables out from under the store so UserHasGrantsInWorkspace fails, and restores them at the end of the test.
internal/server/handlers_items_copy_parity_test.go:408
↓ 1 callers
Function
broadcastDeletion
(uuid: string)
web/src/lib/components/items/ItemAttachmentStrip.svelte.test.ts:83
↓ 1 callers
Function
broadcastUpload
(itemId: string, a: UploadedAttachment)
web/src/lib/components/items/ItemAttachmentStrip.svelte.test.ts:86
↓ 1 callers
Function
browserZone
()
web/src/lib/timezone.ts:1
↓ 1 callers
Function
bubble
(page: Page, seq: number)
web/e2e/chat-thread-refs.spec.ts:75
↓ 1 callers
Function
bucketEndTime
bucketEndTime returns the Unix timestamp at which the CURRENT 5-minute claim-code bucket rolls over to the next one. Used as the `expires_at` value in
internal/server/handlers_claim_code.go:162
↓ 1 callers
Function
bucketLabels
(keys: string[], keysAreLocal = false)
web/src/lib/insights/bucketLabel.ts:56
↓ 1 callers
Method
buffersHoldEvents
buffersHoldEvents reports whether any replay buffer has been written to. Callers must hold mu.
internal/events/redis_bus.go:2455
↓ 1 callers
Function
bug3254Guest
BUG-3254: GET /workspaces/{ws} never set is_guest, so a guest (grants, no membership) who reached the workspace by URL (a fresh load or a deep link, w
internal/server/bug3254_guest_workspace_get_test.go:15
↓ 1 callers
Function
bug3333Equal
(a, b []string)
internal/server/bug3333_deleted_collection_grant_test.go:143
↓ 1 callers
Function
bug3480List
BUG-3480: the item list endpoints read every query parameter they do not know as a field filter, so a parameter the server never had (the web Library
internal/server/bug3480_list_filter_keys_test.go:17
↓ 1 callers
Function
bug3632AwaitIdle
bug3632AwaitIdle waits for the pool to be back to the connections in use before the read, and fails if the read's is still held after 3s.
internal/store/bug3632_with_context_test.go:29
↓ 1 callers
Function
bug3632EndlessQuery
BUG-3632: Query and QueryRow on a *sql.DB or *sql.Tx run the driver call under context.Background(), so a read that never finishes was never cancelled
internal/store/bug3632_with_context_test.go:20
↓ 1 callers
Function
bug3659Stall
BUG-3659: the account export's deadline covered only the collection and item reads. The workspace listing and the access checks ran before it, and the
internal/server/bug3659_account_export_deadline_test.go:25
↓ 1 callers
Function
bug3793Rows
(n int)
internal/mcp/bug3793_item_resource_truncation_test.go:48
↓ 1 callers
Function
bug3811GuardHasWaiter
bug3811GuardHasWaiter reports whether a session is waiting on the pad:active-admins advisory lock. pg_locks splits the bigint key into classid (high 3
internal/store/bug3811_last_admin_race_test.go:39
↓ 1 callers
Function
bug3814Lines
BUG-3814: every item-version door read the item's body, then the version list, as two pool reads, and resolved the list's reverse patches from that bo
internal/server/bug3814_version_chain_snapshot_test.go:22
↓ 1 callers
Function
bug3839Pairs
bug3839Pairs yields the seed shapes, then n generated pairs.
internal/diff/bug3839_no_panic_test.go:20
↓ 1 callers
Function
bug3864CountTitled
(t *testing.T, f *capFixture)
cmd/pad/bug3864_permission_reasons_test.go:245
↓ 1 callers
Function
bug3864TasksID
(t *testing.T, f *capFixture)
cmd/pad/bug3864_permission_reasons_test.go:260
↓ 1 callers
Function
bug3879NextRow
bug3879NextRow waits for the one row the call wrote: the writer is asynchronous. The new row is found by id, not by position: two calls in one second
cmd/pad/bug3879_mcp_audit_tool_outcome_test.go:136
↓ 1 callers
Function
bug3879Post
(t *testing.T, f *capFixture, bearer, body string)
cmd/pad/bug3879_mcp_audit_tool_outcome_test.go:99
↓ 1 callers
Function
bug3968Time
bug3968Time is the best of three ExtractWikiLinks runs over body, failing at once past a backstop so a quadratic scan cannot run the suite for minutes
internal/links/bug3968_wikilink_code_spans_test.go:19
↓ 1 callers
Function
bug4019HasEnabled
(users []models.User, id string)
internal/store/bug4019_totp_lazy_decrypt_test.go:125
↓ 1 callers
Function
bug4019Placeholder2
bug4019Placeholder2 is the second bind parameter, for two-parameter statements.
internal/server/bug4019_totp_lazy_decrypt_test.go:59
↓ 1 callers
Function
bug4019SealEmpty
bug4019SealEmpty seals "" with AES-256-GCM under key in the store's enc:base64(nonce||ciphertext) format, independently of Store.encrypt, which return
internal/store/bug4019_totp_lazy_decrypt_test.go:187
↓ 1 callers
Function
bug4065WalkBase
bug4065WalkBase is a curated valid input for cmd: every value is one the route accepts, so a refusal in the walk is about the numeric parameter.
internal/mcp/bug4065_non_numeric_inputs_test.go:644
↓ 1 callers
Function
build
(item *models.Item, comments []models.Comment, parentRef, parentTitle string)
scripts/decision-eval/conventions/main.go:95
↓ 1 callers
Function
build
(html: string)
web/src/lib/attachments/editorOwnedImage.svelte.test.ts:21
↓ 1 callers
Function
build
()
web/src/lib/collab/materializer/materializerLinkFixture.test.ts:56
↓ 1 callers
Function
buildApp
(source, output, title)
web/scripts/build-mcp-app.mjs:9
↓ 1 callers
Method
buildCascadeBody
buildCascadeBody builds one rewritten body and reports the build through the test seam, as ONE operation. The coupling is deliberate and load-bearing
internal/store/wiki_links.go:1740
↓ 1 callers
Function
buildChatGPTTool
(t ChatGPTTool, params []ParamDef)
internal/mcp/chatgpt_catalog.go:481
↓ 1 callers
Function
buildCollectionSettings
( collection: Pick<Collection, 'settings'>, form: CollectionSettingsForm )
web/src/lib/collections/collectionSettingsSave.ts:21
↓ 1 callers
Function
buildCommand
(cmd *cobra.Command)
internal/cmdhelp/json.go:152
↓ 1 callers
Function
buildCommitmentCreate
(input: { date: string; time?: string; rule: CommitmentRecurrence; deadline?: { date: string; time?: string;
web/src/lib/commitment.ts:69
↓ 1 callers
Function
buildCommitmentEdit
(state: CommitmentEditState, form: CommitmentEditForm, ctx: { zone: string; now: Date })
web/src/lib/commitment.ts:166
↓ 1 callers
Function
buildCopyButton
(getText: () => string | null)
web/src/lib/components/editor/codeBlockCopy.ts:41
↓ 1 callers
Method
buildDecisionSettingsResponse
()
internal/server/decision_settings.go:273
↓ 1 callers
Function
buildFieldsJSON
* Roll the catalog's flat item params (status / priority / category / parent * plus arbitrary `field` key=value entries) into the `fields` JSON strin
web/src/lib/webmcp/dispatch.ts:184
↓ 1 callers
Function
buildFieldsPatch
* The UPDATE counterpart of buildFieldsJSON: the same flat params, returned as * an OBJECT for `fields_patch` instead of a JSON string for `fields`.
web/src/lib/webmcp/dispatch.ts:218
↓ 1 callers
Function
buildFlag
(f *pflag.Flag)
internal/cmdhelp/json.go:404
↓ 1 callers
Function
buildFrame
buildFrame builds a synthetic sync frame. Layout (offsets into the returned []byte, NOT into the user-facing frameBytes parameter): [0]: yMess
cmd/loadtest-collab/main.go:344
↓ 1 callers
Function
buildHierarchyLinkTypes
()
internal/server/handlers_items_copy_preflight.go:614
↓ 1 callers
Function
buildHostilePdf
()
web/e2e/lib/pdf-fixtures.ts:62
↓ 1 callers
Method
buildItemAppProjectionTx
buildItemAppProjectionTx freezes the block for an item event, reading the item's creator and its collection's schema on the mutation's transaction.
internal/store/app_projection.go:219
↓ 1 callers
Function
buildItemSort
buildItemSort always ends on i.id (BUG-3704): rows that tie on every sort key otherwise come back in an unspecified order, and an offset page could th
internal/store/items.go:6393
↓ 1 callers
Function
buildKnownPlaybookTriggers
knownPlaybookTriggers is the set of trigger values the software playbook schema accepts, sourced directly from SoftwarePlaybookTriggers in templates.g
internal/collections/playbook_library_test.go:19
↓ 1 callers
Function
buildLineageSections
(item *models.Item, links []models.ItemLink)
cmd/pad/lineage.go:224
↓ 1 callers
Function
buildOversizeImagePdf
()
web/e2e/lib/pdf-fixtures.ts:116
↓ 1 callers
Function
buildPGTemplate
buildPGTemplate creates ONE fully-migrated database per test binary and returns its name. Callers hold pgTemplateMu for read. The connection that run
internal/store/storetest/postgres.go:152
↓ 1 callers
Function
buildPaddedPdf
(bytes: number)
web/e2e/lib/pdf-fixtures.ts:100
↓ 1 callers
Function
buildPng
* A real, decodable 200x150 PNG — deliberately NOT the 1x1 fixture the older * attachment specs share. * * TWO reasons, both of which cost a debugg
web/e2e/lib/attachment-viewer.ts:33
↓ 1 callers
Function
buildPostScriptFunctionPdf
()
web/e2e/lib/pdf-fixtures.ts:85
↓ 1 callers
Function
buildPostgresTemplate
buildPostgresTemplate creates ONE fully-migrated database per test binary. Callers hold pgTemplateMu for read. Closing the migrating connection is lo
internal/store/store_test.go:264
↓ 1 callers
Function
buildRefCell
buildRefCell assembles the flexible REF/TITLE cell within a visible budget. Only the title is truncated — the pin marker, ref, and "(archived)" suffix
internal/cli/format.go:385
↓ 1 callers
Function
buildReferenceExpr
buildReferenceExpr is TRUE for an item of a REFERENCE collection (PLAN-3535): constant FALSE when no filter is one, so NOT of it is safe. Open-work co
internal/store/items.go:5443
↓ 1 callers
Function
buildRelatedGroups
buildRelatedGroups mirrors cmd/pad/query.go's function of the same name. Reproduced here because the CLI version is in package main. Groups every link
internal/mcp/dispatch_http_links.go:533
↓ 1 callers
Function
buildRotateToolbar
* Build the image-edit toolbar — rotate trio (left 90°, 180°, right * 90°) plus a crop button. Each button delegates to the supplied * callback; the
web/src/lib/components/editor/attachment-image.ts:1583
↓ 1 callers
Function
buildSQLiteTemplate
buildSQLiteTemplate runs the full migration chain once into a process-wide temp file. The template is checkpointed and left in DELETE journal mode (no
internal/store/store_test.go:99
↓ 1 callers
Function
buildScheduleUpdate
(f scheduleFlags, changed func(string) bool, currentStart string)
cmd/pad/schedule_flags.go:70
↓ 1 callers
Method
buildScheduleView
buildScheduleView renders a stored schedule. A pinned schedule's next_at is the occurrence itself. An ARMED floating one stores only the earliest inst
internal/server/handlers_schedules.go:74
↓ 1 callers
Function
buildSource
()
web/vite.config.ts:15
↓ 1 callers
Method
buildSpecialRoutes
()
internal/mcp/dispatch_http.go:467
↓ 1 callers
Function
buildStorageFilters
(sel: StorageFilterSelections)
web/src/lib/attachments/storageFilters.ts:25
↓ 1 callers
Function
buildStoreChildLinkTypes
()
internal/server/handlers_items_copy_preflight.go:595
↓ 1 callers
Function
buildTagsJSON
Tags: the catalog passes a JSON array of strings; ItemCreate/ItemUpdate * store the canonical JSON-encoded string form.
web/src/lib/webmcp/dispatch.ts:231
↓ 1 callers
Function
buildTemplate
buildTemplate runs the full migration chain once into a process-wide temp file and returns its path. The template is checkpointed and left in DELETE j
internal/store/storetest/storetest.go:140
↓ 1 callers
Function
buildToolSurfaceTools
buildToolSurfaceTools projects a catalog slice into the serialized per-tool summaries. Shared by ToolSurfaceJSON (the REST/browser path) and actionMet
internal/mcp/tool_surface.go:257
↓ 1 callers
Function
buildUnparentedViewFilter
( active: boolean, metadataAvailable: boolean )
web/src/lib/collections/unparentedFilter.ts:121
↓ 1 callers
Function
buildUpdateArgs
(input: { workspace?: string; ref: string; title?: string; field?: { key: string; value: string }; expect
web/src/mcp-app/model.ts:47
↓ 1 callers
Function
builtinActive
( entries: BuiltinListEntry[], entry: { key?: string; title: string }, activeTitles: Set<string> )
web/src/lib/library/builtinOffers.ts:10
↓ 1 callers
Function
builtinFieldChanges
( current: Record<string, unknown>, library: Record<string, unknown>, seed?: Record<string, unknown> )
web/src/lib/library/builtinOffers.ts:82
↓ 1 callers
Function
builtinOfferLabel
(entries: BuiltinListEntry[], key: string | undefined)
web/src/lib/library/builtinOffers.ts:34
↓ 1 callers
Function
builtinStateFor
builtinStateFor derives an item's state and the response describing it.
internal/server/handlers_builtin.go:113
↓ 1 callers
Function
builtinUpdatesOnOffer
builtinUpdatesOnOffer counts the entries an update is on offer for: the library changed and the item is unedited, or both changed. unknown_origin (a l
internal/server/handlers_builtin.go:281
↓ 1 callers
Function
bulkItems
( fixture: SuiteFixture, request: APIRequestContext, op: 'archive' | 'restore', ids: string[], ws: string
web/e2e/lib/attachment-viewer.ts:643
↓ 1 callers
Method
bulkMoveCollection
bulkMoveCollection moves one item into req.Collection, migrating its fields between schemas — the same core as handleMoveItem, applied per row. A stat
internal/server/handlers_items_bulk.go:971
↓ 1 callers
Function
bulkTagSet
bulkTagSet is the tag set existingJSON becomes once tags are added (add) or removed, as JSON.
internal/server/handlers_items_bulk.go:922
↓ 1 callers
Method
bulkTagUpdate
bulkTagUpdate adds (add=true) or removes (add=false) the given tags from the item's tag set, preserving existing order and de-duplicating. The new se
internal/server/handlers_items_bulk.go:883
↓ 1 callers
Function
bulkToastMessage
( verb: string, ok: number, summary: BulkFailureSummary, opts?: { synced?: boolean; notAttemptedReason?: s
web/src/lib/collections/bulkFailureReason.ts:109
← previous
next →
10,001–10,100 of 28,840, ranked by callers