MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 3 callersFunctionexpandAgendaSchedules
expandAgendaSchedules expands schedules over [from, to) in loc, stopping once clock() passes deadline, and maps each occurrence to an agendaEntry. The
internal/server/handlers_agenda.go:469
↓ 3 callersFunctionexpireDecisionBackoff
expireDecisionBackoff makes a held-for-backoff job claimable now, through the same release a superseding write would cause.
internal/decision/runner_test.go:621
↓ 3 callersFunctionextensionOf
(filename: string | null | undefined)
web/src/lib/attachments/display.ts:196
↓ 3 callersFunctionextractBearer
extractBearer parses an Authorization header value. Returns the token and true on success. Anything that isn't "Bearer <token>" (case-insensitive sche
internal/server/middleware_mcp_auth.go:567
↓ 3 callersFunctionextractFieldFromJSON
(fieldsJSON, key string)
cmd/pad/cmd_workspace.go:1397
↓ 3 callersFunctionextractFieldString
extractFieldString reads a top-level scalar string from a JSON-encoded fields map. Returns "" when the JSON is empty, malformed, the key is missing, o
internal/server/handlers_items_open_children_guard.go:687
↓ 3 callersFunctionextractHash
extractHash pulls the hash component out of an "fs:<hash>" key and validates it. We require the canonical 64-char lowercase-hex sha256 form on every p
internal/attachments/fs_store.go:71
↓ 3 callersFunctionextractUnknownWorkspaceSlug
extractUnknownWorkspaceSlug pulls the slug from a CLI stderr like "workspace 'foo' does not exist" so the envelope can name it. Returns empty string i
internal/mcp/errors.go:869
↓ 3 callersFunctionfail
(rule: string)
web/src/lib/stores/chatThread.property.svelte.test.ts:222
↓ 3 callersFunctionfailingImportBundle
BUG-2892. ImportWorkspace minted the workspace through CreateWorkspace — its own committed write — BEFORE opening the transaction that carries every o
internal/store/import_workspace_husk_test.go:29
↓ 3 callersFunctionfamilyCollection
(t *testing.T, tmpl *WorkspaceTemplate, slug string)
internal/collections/templates_family_test.go:21
↓ 3 callersMethodfeed
feed walks the workspace feed for the seeded action by keyset pages of pageSize, as the web client does, until a page comes back short.
internal/server/bug3687_activity_visible_page_test.go:111
↓ 3 callersFunctionfeedStdin
feedStdin points os.Stdin at a pipe carrying s, and returns a restore func. The update command reads os.Stdin directly (io.ReadAll), not cmd.InOrStdin
cmd/pad/item_show_markdown_roundtrip_test.go:141
↓ 3 callersFunctionfenceDir
()
web/src/test/identityFenceSource.test.ts:21
↓ 3 callersFunctionfetchItem
($, ref)
plugin/hooks/register.js:402
↓ 3 callersMethodfetchItem
fetchItem retrieves a full models.Item via the api/v1/workspaces/{ws}/items/{ref} surface. Used by the related / implemented-by dispatchers which need
internal/mcp/dispatch_http_links.go:490
↓ 3 callersFunctionfetchWrite
* `fetch` for a direct WRITE that bypasses request() (TASK-2202): * attachment upload and transform, artifact import, checkout. Same rule as * reque
web/src/lib/api/client.ts:710
↓ 3 callersFunctionfieldDefFor
( collections: Collection[], collectionSlug: string | undefined, key: string, notStale = true, )
web/src/lib/collections/categoricalFieldValue.ts:54
↓ 3 callersFunctionfieldFromDef
(def: FieldDef, existing: boolean)
web/src/lib/components/collections/field-editor-types.ts:429
↓ 3 callersFunctionfieldString
fieldString parses an item's fields JSON and returns the string value at key (or "" if absent).
internal/server/handlers_artifact_test.go:579
↓ 3 callersFunctionfieldValue
fieldValue decodes a fields blob: Postgres JSONB and SQLite TEXT render the same object differently.
internal/appstore/items_test.go:408
↓ 3 callersFunctionfilenameFromContentDisposition
filenameFromContentDisposition extracts the filename token from a Content-Disposition header value (e.g. `attachment; filename="foo.pad.md"`). Returns
internal/cli/client.go:1973
↓ 3 callersFunctionfilterAgentAttention
(attention []server.DashboardAttention)
cmd/pad/query.go:264
↓ 3 callersFunctionfindItemByRef
(items: Item[], ref: string)
web/src/lib/utils/markdown.ts:766
↓ 3 callersFunctionfindMatchingLinkID
(links []models.ItemLink, linkType, sourceID, targetID string)
cmd/pad/lineage.go:191
↓ 3 callersFunctionfinishAgendaWork
(resp *agendaResponse)
internal/server/agenda_work.go:189
↓ 3 callersMethodfinishWorkspaceMint
finishWorkspaceMint runs every side effect a mint owes AFTER the workspace exists: adding it to the calling OAuth connection's allow-list (maybeAutoAd
internal/server/workspace_mint.go:149
↓ 3 callersMethodfire
(type: string, data?: unknown)
web/src/lib/services/sseLiveness.svelte.test.ts:55
↓ 3 callersMethodfirstAtLeast
firstAtLeast returns the first message logged at or above level, or "".
internal/watchevents/redis_bus_resume_test.go:643
↓ 3 callersFunctionfirstControl
(t *testing.T, c *websocket.Conn)
internal/server/task3531_compaction_test.go:197
↓ 3 callersFunctionfirstLine
firstLine returns the first line of s with surrounding whitespace trimmed. Useful for collapsing a multi-line Long string into a Summary.
internal/cmdhelp/json.go:513
↓ 3 callersFunctionfkCheckRuns
(t *testing.T, s *Store)
internal/store/bug3663_migration_025_test.go:243
↓ 3 callersFunctionflush
()
web/src/routes/[username]/[workspace]/dashboardPollGate.svelte.test.ts:112
↓ 3 callersFunctionflush
()
web/src/lib/stores/chatSurface.svelte.test.ts:677
↓ 3 callersFunctionflush
( ctx: CollabFlushContext, markdown: string, keepalive: boolean, )
web/src/lib/collab/collabFlush.svelte.ts:234
↓ 3 callersFunctionfmtWall
fmtWall renders a wall as "2026-11-09 09:00" (or the bare date when all-day).
cmd/pad/cmd_schedule.go:73
↓ 3 callersFunctionforEachTitleLink
forEachTitleLink calls fn(start, end) for every whole-body link to title, by the rule ReplaceTitle documents, in order and never overlapping. It is w
internal/links/links.go:77
↓ 3 callersMethodforWorkspace
(workspaceID string)
internal/server/handlers_watch_events.go:635
↓ 3 callersMethodforgetPrefix
forgetPrefix drops every entry whose id starts with prefix.
cmd/pad/cmd_watch.go:103
↓ 3 callersFunctionformatFieldLabel
(value: unknown)
web/src/lib/utils/fieldColors.ts:143
↓ 3 callersFunctionformatMonitorLine
formatMonitorLine renders one notification as a single stdout line (the harness ingests each line as a session notification). A push carries the D5 au
cmd/pad/cmd_watch.go:200
↓ 3 callersFunctionformatTokenExpiry
formatTokenExpiry renders an expiry timestamp for display; a nil expiry means the token never expires.
cmd/pad/cmd_token.go:275
↓ 3 callersFunctionframe
()
web/src/lib/scroll/restore.svelte.test.ts:26
↓ 3 callersMethodframe
()
web/e2e/lib/attachment-viewer.ts:378
↓ 3 callersFunctionfreeUser
TASK-3551 at the boot: a cloud boot marks the database, and a later non-cloud boot of the same database leaves its free users free instead of converti
cmd/pad/task3551_boot_plan_backfill_test.go:18
↓ 3 callersFunctionfreezeBucket
freezeBucket stops rl's bucket for the test client from refilling, so "spend the burst, then the next call is refused" holds however slowly the calls
internal/server/handlers_collab_bug1308_test.go:44
↓ 3 callersFunctionfullyUnescape
fullyUnescape decodes s until no escape remains. It reports false when the input is malformed, or is still encoded after maxUnescapePasses: text that
internal/logging/redaction.go:100
↓ 3 callersFunctiong4Cloud
(token string)
cmd/pad/task3321_g4_apps_challenge_test.go:16
↓ 3 callersMethodgapCooldown
gapCooldown is the interval a handler should use — midStreamGapCooldown unless a test has narrowed it. A field rather than the bare constant because
internal/server/stream_gap_announcer.go:36
↓ 3 callersFunctiongate
(extra: Partial<CommitmentGate> = {})
web/src/lib/test/commitmentFixtures.ts:8
↓ 3 callersFunctiongateFixture
BUG-3032: `pad db migrate-to-pg` is the only door that abandons its source database, so it is the only door that refuses rather than warns. These test
cmd/pad/cmd_db_unflushed_test.go:18
↓ 3 callersFunctiongateOnTombstone
A soft-deleted blocker travels only so that its gate can still be judged. The row must not take anything from the live items beside it, and must not p
internal/store/schedule_gate_tombstone_test.go:15
↓ 3 callersMethodgatedSource
Gates stay within one workspace (TASK-4353). A cross-workspace copy or move of a GATED item cannot carry them: the copy starts with none (the source k
internal/store/schedule_carry_gates_test.go:19
↓ 3 callersMethodgatesDropped
---- carrying the gated item to another workspace ---- gatesDropped counts the gates that hold itemID whose blocker canRead accepts (nil accepts every
internal/store/commitment_gates.go:736
↓ 3 callersFunctiongenerateRecoveryCodes
generateRecoveryCodes produces n random recovery codes. Each code is 10 bytes (80 bits) of cryptographic randomness encoded as unpadded base32 — 16 vi
internal/server/handlers_2fa.go:541
↓ 3 callersFunctiongetAbandonedOptions
(collection: Collection)
web/src/lib/types/index.ts:3351
↓ 3 callersFunctiongetCodeContext
(t *testing.T, srv *Server, path string)
internal/server/handlers_items_github_pr_test.go:23
↓ 3 callersMethodgetCollectionQ
(q Queryer, id string)
internal/store/collections.go:296
↓ 3 callersFunctiongetEditor
()
web/src/lib/collab/materializer/entry.ts:64
↓ 3 callersFunctiongetEpoch
()
web/src/routes/[username]/[workspace]/dashboardIdentityFence.svelte.test.ts:51
↓ 3 callersFunctiongetEpoch
()
web/src/routes/[username]/[workspace]/library/libraryIdentityFence.svelte.test.ts:35
↓ 3 callersFunctiongetEpoch
()
web/src/routes/[username]/[workspace]/playbooks/[slug]/playbookIdentityFence.svelte.test.ts:105
↓ 3 callersFunctiongetEpoch
()
web/src/routes/[username]/[workspace]/settings/settingsIdentityFence.svelte.test.ts:159
↓ 3 callersFunctiongetEpoch
()
web/src/routes/[username]/[workspace]/[collection]/collectionIdentityFence.svelte.test.ts:311
↓ 3 callersFunctiongetEpoch
()
web/src/routes/[username]/[workspace]/[collection]/collectionChatUrlWrites.svelte.test.ts:274
↓ 3 callersFunctiongetEpoch
()
web/src/routes/[username]/[workspace]/roles/rolesWorkspaceSwitch.svelte.test.ts:34
↓ 3 callersFunctiongetEpoch
()
web/src/routes/[username]/[workspace]/roles/rolesIdentityFence.svelte.test.ts:49
↓ 3 callersFunctiongetEpoch
()
web/src/routes/[username]/[workspace]/tags/tagsLoadError.svelte.test.ts:58
↓ 3 callersFunctiongetEpoch
()
web/src/routes/[username]/[workspace]/tags/tagsIdentityFence.svelte.test.ts:58
↓ 3 callersFunctiongetEpoch
()
web/src/lib/components/timeline/timelineVersionCardIdentityFence.svelte.test.ts:57
↓ 3 callersFunctiongetEpoch
()
web/src/lib/components/items/itemDetailIdentityLoad.svelte.test.ts:148
↓ 3 callersFunctiongetInvitationQ
getInvitationQ is GetInvitation over any executor, so CreateInvitation can read its own row inside its transaction (BUG-3460).
internal/store/workspace_members.go:1420
↓ 3 callersMethodgetSourceRequest
getSourceRequest builds the GET request the router would hand handleGetItem, with the caller's auth surface described by o. The workspace-A role and r
internal/server/item_moved_to_test.go:144
↓ 3 callersMethodgetTokenExpirySettings
getTokenExpirySettings reads platform settings for token expiry policy.
internal/server/handlers_tokens.go:25
↓ 3 callersFunctionghMergedAt
ghMergedAt is gh's mergedAt, with Go's zero time read as "not merged". gh prints null for an open PR today (measured on #2008); a client that serialis
cmd/pad/cmd_github.go:56
↓ 3 callersFunctiongithubPRItem
BUG-2696: github_pr is written only through the typed, validated update member. A fields_patch entry (every `--field` / MCP `field` setter lowers into
internal/server/handlers_items_github_pr_test.go:15
↓ 3 callersFunctiongithubStatusScanItems
githubStatusScanItems is every item of every collection, archived included, that `pad github status` scans for linked PRs. Every page of each collecti
cmd/pad/cmd_github.go:510
↓ 3 callersFunctionglobalAgents
globalAgents returns the agents that target a stable per-user config file — i.e. everything except CWDBased (project-local) agents. It's the iteration
internal/mcp/install.go:105
↓ 3 callersFunctiongoItemEntries
goItemEntries is what the Go extraction says the index must hold.
internal/store/item_entries_index_test.go:93
↓ 3 callersFunctiongraphEndsEditable
(access models.CommitmentAccess, a, b string)
internal/server/handlers_commitment_links.go:237
↓ 3 callersMethodgraphExec
(query string, args ...any)
internal/server/commitment_graph_tick_test.go:86
↓ 3 callersMethodgraphResourceEnds
graphResourceEnds is private: it deliberately returns neither end to the caller until the component builder has admitted both of them.
internal/server/handlers_commitment_links.go:218
↓ 3 callersFunctiongraphRevision
(revision string)
internal/server/handlers_commitment_links.go:138
↓ 3 callersMethodgraphRow
(query string, args ...any)
internal/server/commitment_graph_tick_test.go:89
↓ 3 callersFunctiongroupHistory
(entries: readonly TimelineEntry[])
web/src/lib/components/timeline/historyEvents.ts:247
↓ 3 callersMethodguardActiveAdminLossTx
guardActiveAdminLossTx is guardActiveAdminLossTxCtx without a deadline, for the transactions that carry none (TASK-4278).
internal/store/users.go:984
↓ 3 callersMethodguardOwnerLossTx
guardOwnerLossTx is called inside the transaction that demotes userID away from owner or removes them. It refuses the canonical owner outright, and re
internal/store/workspace_members.go:1095
↓ 3 callersFunctionguardSection
guardSection returns the text from heading to the next heading of ANY level, so text under a following (or nested) heading cannot satisfy the guard.
internal/cli/agent_identity_test.go:476
↓ 3 callersMethodguestResourceFilterIncludeDeletedItems
guestResourceFilterIncludeDeletedItems is the delta-sync variant of guestResourceFilter. It uses GuestVisibleResourcesIncludeDeleted under the hood so
internal/server/server.go:3868
↓ 3 callersFunctionhasClientAssertion
hasClientAssertion reports whether a parsed request carries a non-empty client_assertion or client_assertion_type in any form source fosite reads (Pos
internal/server/handlers_oauth.go:220
↓ 3 callersFunctionhasForeignEscapeOwner
()
web/src/lib/a11y/viewerBackdrop.ts:449
↓ 3 callersFunctionhasGraphEdge
(resp GraphResponse, source, target, typ string)
internal/server/handlers_graph_test.go:32
↓ 3 callersMethodhasUsableBaseURL
hasUsableBaseURL reports whether s.baseURL is a URL a verification-email recipient on the public internet can actually reach. It supersets the unreach
internal/server/server.go:1125
↓ 3 callersMethodhasWorkspaceSub
(workspaceID string)
internal/events/redis_subscribe_cancel_test.go:45
↓ 3 callersFunctionhashOf
(b []byte)
internal/attachments/staged_test.go:16
↓ 3 callersFunctionhdr
(f: Fixture, agent?: string)
web/e2e/chat-url-writes.spec.ts:17
↓ 3 callersFunctionheaderSafeLabel
headerSafeLabel makes a label safe to put in an HTTP header value, or returns "" if nothing usable survives. This is not belt-and-braces for the serv
internal/cli/client.go:1070
↓ 3 callersMethodhelperNamed
A helper declared once in the component, named by `n`; it may be handed over by name.
web/src/test/identityFenceAst.ts:1084
↓ 3 callersFunctionhideDropLine
()
web/src/lib/components/editor/block-drag-handle.ts:660
↓ 3 callersMethodhijack
()
internal/server/flush_error_writer.go:80
← previousnext →5,101–5,200 of 28,840, ranked by callers