MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 2 callersMethodflushNow
Cancel the debounce, read the live editor markdown, and flush it now. * Returns false (no-op) when the editor is unavailable. Used by editor * t
web/src/lib/collab/collabFlush.svelte.ts:139
↓ 2 callersFunctionflushRoute
(slug: string)
web/src/lib/stores/tabs.svelte.ts:136
↓ 2 callersFunctionflushUntilError
BUG-3827: chi's WrapResponseWriter (logger, metrics, MCP audit) and its compressor implement Flush but not FlushError, so a ResponseController flush t
internal/server/bug3827_flush_error_test.go:24
↓ 2 callersFunctionfmtTimes
(ts []time.Time)
internal/schedule/conformance_test.go:159
↓ 2 callersFunctionfnName
* A STABLE name for a function, used as the key in `KNOWN_UNFENCED`. * * The fallback deliberately avoids byte offsets. An offset-keyed entry change
web/src/lib/components/items/childIdentityFencePopulation.test.ts:399
↓ 2 callersFunctionfocusables
The viewer's focusable controls, in tab order — what the trap cycles over.
web/src/lib/components/common/Lightbox.svelte.test.ts:230
↓ 2 callersFunctionfocusedCard
()
web/e2e/attachment-viewer-owners.spec.ts:351
↓ 2 callersFunctionfoldReportBuckets
foldReportBuckets re-keys UTC fine-grained counts into local buckets.
internal/store/reports_tz.go:47
↓ 2 callersMethodfootprint
footprint counts structural reachability, even when a date will not change. A validated graph has unique incoming edges: descendants cannot be revisit
internal/schedule/links.go:660
↓ 2 callersMethodforceRefreshConns
forceRefreshConns sends force_refresh then closes each of conns, with the same per-conn bound forceRefreshAll documents. The caller must NOT hold appe
internal/collab/room.go:1122
↓ 2 callersFunctionforecastCLI4359
Exercise the real write/read doors as well as the CLI wire formatting above. The CLI is built first because tzCLI writes time.Local, and the real ser
cmd/pad/task4359_forecast_test.go:114
↓ 2 callersMethodforecastEventTx
(tx *sql.Tx, workspaceID, itemID, scheduleID, action, value, prev, actor, kind, source, ts string)
internal/store/milestone.go:160
↓ 2 callersMethodforecastEvents
(q Queryer, scheduleID string)
internal/store/milestone.go:643
↓ 2 callersFunctionforecastLate
(forecast: string, deadline: string | null | undefined, zone: string)
web/src/lib/calendar/presentation.ts:424
↓ 2 callersFunctionforecastSetter
(f: CommitmentForecastSummary)
web/src/lib/calendar/presentation.ts:286
↓ 2 callersFunctionforecastSetterCLI
(f *models.CommitmentForecast)
cmd/pad/cmd_schedule_forecast.go:11
↓ 2 callersFunctionforeignKeyViolations
foreignKeyViolations runs PRAGMA foreign_key_check on tx for the supplied tables, or every table if none are supplied. Only listing the tables is fata
internal/store/store.go:1134
↓ 2 callersFunctionforgetGroupOf
Forget the burst a toast belonged to once the toast is gone.
web/src/lib/stores/toast.svelte.ts:186
↓ 2 callersFunctionformatChangeValue
formatChangeValue renders a JSON-decoded field value as a human-readable string for the activity-feed `changes` summary. Primitives use Go's default f
internal/server/handlers_documents.go:621
↓ 2 callersFunctionformatLaneLabel
(value: unknown)
web/src/lib/collections/boardColumns.ts:138
↓ 2 callersFunctionformatProjectRunSummary
( registered: readonly string[], moduleCountsByProject: ReadonlyMap<string, number>, )
web/src/test/vitestProjects.ts:130
↓ 2 callersFunctionformatUnsatisfiedProjectsError
(unsatisfied: readonly UnsatisfiedProject[])
web/src/test/vitestProjects.ts:99
↓ 2 callersMethodforward
forward copies client → server, parking the first chunk that carries a SUBSCRIBE.
internal/events/redis_subscribe_confirm_test.go:161
↓ 2 callersFunctionframe
(t *testing.T, v any)
internal/materialize/worker_test.go:15
↓ 2 callersMethodfreezeAndFinalizePending
freezeAndFinalizePending is the atomic heart of the version-restore ↔ applier coordination (BUG-2276 residual 2). Called by ForceRefreshRoom with appe
internal/collab/applier.go:1129
↓ 2 callersMethodftsHits
ftsHits returns the comment ids whose body matches word, through each dialect's own index (FTS5 on SQLite, search_vector on Postgres).
internal/store/task3391_comments_rebuild_test.go:49
↓ 2 callersFunctionfull
(p: string)
web/src/lib/api/bug3789ListWalks.test.ts:83
↓ 2 callersFunctionfullRolePatchValue
(v *T)
internal/store/commitment.go:444
↓ 2 callersMethodfullyVisibleCollectionIDs
fullyVisibleCollectionIDs is the set checkCollectionFullyVisible decides against, computed once, for a caller that asks about many collections (TASK-3
internal/server/authz_cross_workspace.go:886
↓ 2 callersFunctionfunctionBody
functionBody returns the source of the named method, from its declaration to the next top-level func. Crude on purpose — it only needs to bound a subs
internal/mcp/dispatch_http_allowlist_guard_test.go:1017
↓ 2 callersFunctionfunnelOwner
funnelOwner bootstraps an owner with a workspace and a seeded item and parent comment, written through the store so the account has not written.
internal/server/task3926_funnel_metrics_test.go:275
↓ 2 callersFunctiongateCases
()
internal/server/task3939b_push_gates_test.go:31
↓ 2 callersFunctiongateMigrationSQL
(t *testing.T, pg bool)
internal/store/commitment_gates_migration_test.go:18
↓ 2 callersFunctiongatheredNames
(t *testing.T, m *Metrics)
internal/metrics/redis_up_test.go:46
↓ 2 callersFunctiongenerateCSPNonce
generateCSPNonce generates a cryptographically random nonce for Content-Security-Policy headers. Returns a 16-byte base64-encoded string.
internal/server/middleware_security.go:56
↓ 2 callersFunctiongenerateCSRFToken
generateCSRFToken returns a cryptographically random hex string.
internal/server/middleware_csrf.go:329
↓ 2 callersFunctiongenerateTempPassword
generateTempPassword returns a random hex temporary password for an operator-initiated reset (16 bytes → 32 hex chars). Shared by the admin reset endp
internal/server/handlers_admin_users.go:557
↓ 2 callersMethodgetAPIToken
getAPIToken retrieves a single API token by ID.
internal/store/api_tokens.go:391
↓ 2 callersFunctiongetActiveKey
(pathname: string, wsPrefix: string)
web/src/lib/nav/destinations.ts:85
↓ 2 callersFunctiongetCSRFToken
()
web/src/lib/stores/admin.svelte.ts:75
↓ 2 callersMethodgetCollectionAnyStateQ
getCollectionAnyStateQ is GetCollectionAnyState against a caller-supplied executor.
internal/store/collections.go:329
↓ 2 callersMethodgetCollectionInWorkspaceTx
getCollectionInWorkspaceTx reads a live collection inside the transaction, scoped to a workspace. The scope is the security boundary, not a hint: it i
internal/store/items_cross_workspace_copy.go:1207
↓ 2 callersMethodgetCollectionSlugTx
getCollectionSlugTx reads collections.slug for a collection_id inside the supplied tx. Tiny helper used by the wiki-link cascade hooks that need the s
internal/store/items.go:707
↓ 2 callersFunctiongetDialog
()
web/src/lib/components/common/Modal.svelte.test.ts:28
↓ 2 callersMethodgetItemLinkQ
getItemLink is the unfiltered post-insert readback used by CreateItemLink to hydrate the freshly-inserted row with collection/source/target metadata.
internal/store/items.go:4338
↓ 2 callersFunctiongetJSON
(src Sources, u string, github bool, v any)
cmd/depages/main.go:392
↓ 2 callersMethodgetLatestVersionRawQ
getLatestVersionRawQ is getLatestVersionRaw against a caller-supplied executor, so an in-transaction caller reads through its own transaction.
internal/store/versions.go:69
↓ 2 callersMethodgetMeta
(key: unknown)
web/src/lib/items/confirmedBase.ts:131
↓ 2 callersMethodgetRelationBacklinks
getRelationBacklinks drives the endpoint as `user` and decodes the payload.
internal/server/relation_backlinks_test.go:29
↓ 2 callersFunctiongetUser
()
web/src/routes/[username]/[workspace]/dashboardIdentityFence.svelte.test.ts:52
↓ 2 callersMethodgetWebhookQ
(q Queryer, id string)
internal/store/webhooks.go:76
↓ 2 callersMethodgetWithHeaderContext
(ctx context.Context, path string, result interface{})
internal/cli/client.go:3181
↓ 2 callersFunctiongh
(...args)
docs/brand/social/render.mjs:30
↓ 2 callersFunctiongithubItemPath
(workspace, ref string)
internal/mcp/dispatch_http_github.go:88
↓ 2 callersFunctiongithubUnlinkCmd
()
cmd/pad/cmd_github.go:374
↓ 2 callersFunctiongoSourceFiles
(t *testing.T)
internal/links/markdown_citation_test.go:47
↓ 2 callersMethodgot
()
internal/mcp/task4035_catch_up_test.go:41
↓ 2 callersMethodgrantID
(rr *httptest.ResponseRecorder)
internal/server/workspace_access_notify_test.go:138
↓ 2 callersMethodgrantSpecific
()
internal/server/task3939b_push_gates_test.go:347
↓ 2 callersFunctiongraphGateRecipients
(t *testing.T, f *linkFix)
internal/store/commitment_graph_lifecycle_test.go:233
↓ 2 callersFunctiongraphHTTPState
(t *testing.T, f *graphHTTP)
internal/server/schedule_reopen_privacy_test.go:182
↓ 2 callersFunctiongraphPolicy
(policy *string)
internal/server/handlers_commitment_links.go:149
↓ 2 callersFunctiongraphRole
(field string, value *string)
internal/server/handlers_commitment_links.go:97
↓ 2 callersFunctiongraphWriteBody
(input map[string]any, keys ...string)
internal/mcp/dispatch_http_schedule.go:263
↓ 2 callersFunctiongroupEntries
(entries: AgendaEntry[])
web/src/lib/calendar/presentation.ts:104
↓ 2 callersFunctiongroupItem
(name: string)
web/src/routes/(console)/agenda/agenda.svelte.test.ts:48
↓ 2 callersFunctiongroupResultsByCollection
( results: PaletteResult[], collections: Pick<Collection, 'slug' | 'icon' | 'name'>[], )
web/src/lib/components/search/groupResults.ts:30
↓ 2 callersMethodguardActiveAdminLossTxCtx
guardActiveAdminLossTx is called inside every transaction that can take userID out of the set of active human admins: a demotion, a disable, an accoun
internal/store/users.go:957
↓ 2 callersFunctionguardLinkedRoles
guardLinkedRoles is ErrScheduleLinked when a role an edge uses differs between the two role sets. Roles no edge uses are free.
internal/store/commitment_links.go:1011
↓ 2 callersFunctionguardParagraph
guardParagraph returns the blank-line-bounded paragraph containing anchor.
internal/cli/agent_identity_test.go:464
↓ 2 callersFunctionguardUser
()
internal/mcp/dispatch_http_allowlist_guard_test.go:370
↓ 2 callersFunctionguardedDomain
guardedDomain reports whether the frozen V0 oracle is still authoritative for this input. BUG-2805 deliberately changes behaviour in two places, so t
internal/links/rewrite_brackets_diff_test.go:154
↓ 2 callersMethodguestResourceFilterCore
guestResourceFilterCore is the request-scoped wrapper around Store.ResolveBacklinksVisibility. Delegates the role-determination + merge logic to the s
internal/server/server.go:3896
↓ 2 callersMethodguestResourceFilterCoreQ
guestResourceFilterCoreQ is guestResourceFilterCore parameterized over its executor — the cross-workspace copy's attachment authorizer runs it on the
internal/server/server.go:3904
↓ 2 callersMethodhandleCommitmentMove
(w http.ResponseWriter, r *http.Request, preview bool)
internal/server/handlers_commitment_links.go:403
↓ 2 callersMethodhandleImportWorkspace
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_workspaces.go:934
↓ 2 callersMethodhandleMeNeeds
An unknown, not admitted or token-excluded ?workspace= needs no special case: it leaves no admitted workspace, so the pipeline below answers the same
internal/server/handlers_me_needs.go:58
↓ 2 callersMethodhandleSSE
handleSSE streams Server-Sent Events for a workspace. GET /api/v1/events?workspace=<slug> Supports Last-Event-ID: when a client reconnects with a Las
internal/server/handlers_events.go:63
↓ 2 callersMethodhandleSessionIPChange
handleSessionIPChange compares the client IP on this request to the IP recorded when the session was created. Behavior: - Session has no recorded IP
internal/server/middleware_auth.go:1088
↓ 2 callersMethodhandleSessionUAChange
handleSessionUAChange compares the User-Agent hash on this request to the hash recorded when the session was created, and enforces the same opt-in pol
internal/server/middleware_auth.go:1215
↓ 2 callersMethodhandler
(w http.ResponseWriter, r *http.Request)
cmd/pad/bug3035_edit_guard_test.go:51
↓ 2 callersFunctionharness
(over: Partial<CrashDraftSource> = {})
web/src/lib/items/crashDraft.svelte.test.ts:13
↓ 2 callersFunctionhasBacklinkSource
(bls []models.Backlink, id string)
internal/store/bug3344_backlinks_deleted_collection_test.go:136
↓ 2 callersFunctionhasChange
(changes []string, want string)
internal/server/plan2348_timeline_drops_test.go:28
↓ 2 callersFunctionhasCloudSecretMarker
hasCloudSecretMarker returns true if the request carries a sidecar- style auth marker: X-Cloud-Secret header or a cloud_secret field in the JSON body
internal/server/handlers_cloud.go:161
↓ 2 callersFunctionhasMetric
(t *testing.T, m *Metrics, name string)
internal/metrics/redis_up_test.go:59
↓ 2 callersFunctionhasOption
(list []string, v string)
internal/server/library_option_widen.go:233
↓ 2 callersFunctionhasPadEntryTOML
hasPadEntryTOML reports whether mcp_servers.pad is present plus its current `command` value. Missing files are "not installed", no error.
internal/mcp/install.go:483
↓ 2 callersFunctionhashCanonicalJSON
hashCanonicalJSON returns a SHA-256 hex of a canonicalized form of the input JSON. "Canonical" here means: round-trip through encoding/json to sort ob
internal/server/middleware_mcp_audit.go:578
↓ 2 callersFunctionhashCode
(code string)
internal/store/totp_test.go:10
↓ 2 callersFunctionhashTokenForLimiter
hashTokenForLimiter returns a SHA-256 hex digest of the bearer token, suitable for use as a rate-limiter map key. The hash means the limiter's in-memo
internal/server/middleware_ratelimit.go:1127
↓ 2 callersFunctionheader
(e: TimelineEntry)
web/src/lib/components/timeline/HistoryView.svelte.test.ts:227
↓ 2 callersMethodheader
(name: string)
web/src/lib/api/importUpload.ts:47
↓ 2 callersFunctionheaders
()
web/src/lib/components/collections/task2237Nesting.svelte.test.ts:97
↓ 2 callersFunctionheaders
(f: Fixture, agent?: string)
web/e2e/chat-mobile-nav.spec.ts:13
↓ 2 callersFunctionheaders
(fixture: SuiteFixture)
web/e2e/bug-3043-lane-draft-rehome.spec.ts:27
↓ 2 callersFunctionheaders
(fixture: SuiteFixture)
web/e2e/bug-3200-pane-move-needs-value.spec.ts:19
↓ 2 callersFunctionheaders
(f: Fixture, agent?: string)
web/e2e/chat-entries.spec.ts:16
↓ 2 callersFunctionheaders
(fixture: SuiteFixture)
web/e2e/copy-dialog.spec.ts:29
↓ 2 callersFunctionheaders
(f: Fixture, agent?: string)
web/e2e/chat-shell.spec.ts:19
← previousnext →7,301–7,400 of 28,840, ranked by callers