Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
31,685 in github.com/PerpetualSoftware/pad
⨍
Functions
31,685
◇
Types & classes
3,533
↓ 2 callers
Method
agentPurgeWindowPhrase
agentPurgeWindowPhrase names how long after an unclaimed account's deletion its workspace's data is purged: the soft-deleted workspace is hard-purged
internal/server/handlers_agent_signup.go:181
↓ 2 callers
Function
agentSays
(request: APIRequestContext, f: Fixture, n: number, agent: string, body: string)
web/e2e/chat-thread-write.spec.ts:47
↓ 2 callers
Method
agentSignupBaseURL
agentSignupBaseURL is where the links in the answer point: the configured public URL, else the request's own origin.
internal/server/handlers_agent_signup.go:110
↓ 2 callers
Method
agentSignupCapRefused
agentSignupCapRefused writes the refusal and reports true when net holds its daily share of live signups or the hour's signups reached the cap.
internal/server/handlers_agent_signup.go:368
↓ 2 callers
Method
agentSignupEnabled
agentSignupEnabled reports whether the endpoint exists right now. Cloud is on unless the setting is "false"; a self-hosted server needs the operator's
internal/server/handlers_agent_signup.go:75
↓ 2 callers
Method
agentSignupIntSetting
(key string, def int)
internal/server/handlers_agent_signup.go:96
↓ 2 callers
Method
agentSignupLifetimeDays
agentSignupLifetimeDays is the lifetime setting, at most agentSignupMaxLifetimeDays whatever the stored value.
internal/server/handlers_agent_signup.go:92
↓ 2 callers
Method
agentSignupLimits
agentSignupLimits is the resolved unclaimed tier, feature by feature.
internal/server/handlers_agent_signup.go:122
↓ 2 callers
Function
agentSignupServerBehind
agentSignupServerBehind is agentSignupServer trusting proxies in cidrs. The router reads the trusted set when it is built, on the first request, so it
internal/server/handlers_agent_signup_test.go:35
↓ 2 callers
Function
agentValidArgs
()
cmd/pad/mcp.go:179
↓ 2 callers
Function
agingBuckets
agingBuckets distributes open-item ages (hours) into fixed bands. Always returns all four bands in order (zero counts included) for a stable shape.
internal/store/reports.go:1012
↓ 2 callers
Function
ago
(iso)
plugin/hooks/register.js:234
↓ 2 callers
Function
aliasExtensions
aliasExtensions covers allowed MIME spellings that NO extension in extMIMEMap maps to, so reversing the forward table alone leaves them without an ext
internal/attachments/mime.go:569
↓ 2 callers
Function
allFiles
()
web/src/lib/attachments/pdfjsBuildOutput.test.ts:38
↓ 2 callers
Function
allRetry
(msgs []Message)
internal/notify/gateway.go:179
↓ 2 callers
Function
allRoutedCmdKeys
()
internal/mcp/dispatch_http_allowlist_guard_test.go:465
↓ 2 callers
Method
allow
allow reports whether to log for key, and records it.
internal/server/middleware_mcp_host.go:129
↓ 2 callers
Method
allow
(installID string)
internal/server/app_webhook_delivery.go:247
↓ 2 callers
Method
allowDecisionProviderCall
allowDecisionProviderCall charges one token from the DecisionProvider bucket and reports whether the caller may make a synchronous provider call. On r
internal/server/middleware_ratelimit.go:1016
↓ 2 callers
Function
allowListAt
allowListAt presents token to /mcp and returns the workspace allow-list the gate stashed (nil = unrestricted).
internal/server/bug3337_connection_authoritative_test.go:83
↓ 2 callers
Function
allowlistFixtureInput
allowlistFixtureInput is parityFixtureInput plus the keys these drives need, since this test wants the PATH a command emits rather than merely whether
internal/mcp/dispatch_http_allowlist_guard_test.go:1202
↓ 2 callers
Function
allowlistedAuthorizeParams
allowlistedAuthorizeParams returns a copy of in containing ONLY the keys an OAuth /authorize request is allowed to round-trip through the consent form
internal/server/handlers_oauth.go:2458
↓ 2 callers
Function
alnum
(n int)
internal/logging/vendor_shapes_test.go:17
↓ 2 callers
Function
analyseUnit
(src: AstSource, decls: Declarations, unit: Unit, opts: AnalyseOptions)
web/src/test/identityFenceAst.ts:1553
↓ 2 callers
Function
anchor
(text: string)
web/src/lib/components/editor/readonlyLinkTap.svelte.test.ts:56
↓ 2 callers
Function
anchorTags
(text: string)
web/src/test/linkCensusScan.ts:5
↓ 2 callers
Function
annualRadios
()
web/src/routes/(console)/settings/billing/billingInterval.svelte.test.ts:96
↓ 2 callers
Function
answer
(lanes: RoleQueueResponse[])
web/src/lib/components/home/AgentsPanel.svelte.test.ts:44
↓ 2 callers
Function
answerAt
(revision: number, ...tabs: Tab[])
web/src/lib/stores/tabs.svelte.test.ts:84
↓ 2 callers
Function
api
(request: APIRequestContext, fixture: SuiteFixture, method: 'get' | 'post', path: string, data?: unknown)
web/e2e/task-2188-schema-removal-confirm.spec.ts:18
↓ 2 callers
Function
apiErr
(code: string)
web/src/lib/stores/chatInbox.svelte.test.ts:82
↓ 2 callers
Function
appCall
( ca: Buffer, method: string, url: string, opts: { headers?: Record<string, string>; body?: string | Buffe
web/e2e/lib/real-install.ts:256
↓ 2 callers
Method
appCollectionDTO
(c *models.Collection)
internal/server/app_api_read.go:227
↓ 2 callers
Function
appCommentAuthorKind
appCommentAuthorKind is the author_kind of a comment an app write makes, as the comment listing derives it: "app" for the bot, "user" for a person.
internal/server/app_api_write.go:103
↓ 2 callers
Function
appCommentDTO
appCommentDTO is one comment's DTO, written by this request's actor.
internal/server/app_api_write.go:237
↓ 2 callers
Method
appCommentOnItem
appCommentOnItem resolves the comment for a PATCH or DELETE: the item first, then the comment, which must be on THAT item, else the same 404 a missing
internal/server/app_api_write.go:299
↓ 2 callers
Method
appConsentGate
appConsentGate is every check the consent render AND the decision make, read fresh each time: apps on, the install active and offering delegated acces
internal/server/app_delegated_consent.go:46
↓ 2 callers
Method
appDeliveryChecksQ
appDeliveryChecksQ is admission's decision, on q. lock takes the install row FOR SHARE first (Postgres; admission runs it in a transaction); the read-
internal/store/app_delivery.go:274
↓ 2 callers
Function
appDeliveryExpired
(occurredAt string, now time.Time)
internal/server/app_webhook_delivery.go:198
↓ 2 callers
Function
appFieldProjection
appFieldProjection keeps only the item's values for the collection's declared non-relation keys.
internal/server/app_api_read.go:110
↓ 2 callers
Method
appHookInstall
(webhookID string)
internal/store/app_delivery.go:257
↓ 2 callers
Function
appPrincipalEmail
appPrincipalEmail is the address CreateAppUserTx gives an install's bot.
internal/store/install_clients.go:180
↓ 2 callers
Function
appPrincipalInstallID
appPrincipalInstallID recovers the install id from a bot's address.
internal/store/app_principal.go:176
↓ 2 callers
Method
appPrincipalInstallQ
appPrincipalInstallQ is AppPrincipalInstallIDQ that also reports whether the user is a bot at all, from the same single users read. That read runs on
internal/store/app_ceiling.go:38
↓ 2 callers
Method
appRecheckAttachment
appRecheckAttachment replays the read rule under the re-admitted context: the attachment must still be visible to the app and still bound to the same
internal/server/app_api_attachments.go:127
↓ 2 callers
Function
appSchemaProjection
(c *models.Collection)
internal/server/app_api_read.go:89
↓ 2 callers
Method
appSignInAvailable
appSignInAvailable reports whether a request at the authorize or decide door names an installed app's client while apps are available: those doors ser
internal/server/app_delegated_consent.go:225
↓ 2 callers
Method
appVisibleAttachment
appVisibleAttachment authorizes one attachment for a read: the app read rule (a live row bound to a live item in a companion, the FencedTx's check), t
internal/server/app_api_attachments.go:98
↓ 2 callers
Function
appWrittenItemDTO
appWrittenItemDTO is a write's response, built only from what the write's own transaction read (appstore.ItemWrite). Nothing here touches the database
internal/server/app_api_write.go:182
↓ 2 callers
Method
append
(t *testing.T, frame []byte, version string)
internal/server/bug3244_schema_rebuild_set_aside_test.go:48
↓ 2 callers
Method
append
(n Notification)
internal/watchevents/watchevents.go:385
↓ 2 callers
Function
appendBackedReservedKey
appendBackedReservedKey reports whether a reserved key's remedy is an APPEND helper — the ones carrying BUG-2627 part 3's refuse-rather-than-destroy g
internal/server/handlers_items_copy_preflight.go:1731
↓ 2 callers
Method
appendFieldFilters
ParentLinkUpdate describes an optional parent-link mutation to apply ATOMICALLY inside UpdateItem's transaction (BUG-2013). The handler used to run Se
internal/store/items.go:2431
↓ 2 callers
Function
appendOnlyMux
--- item note + decide --- BUG-3056: the dispatcher sends ONLY the append and lets the server apply it under its write lock. A GET or a `fields` membe
internal/mcp/dispatch_http_project_test.go:1227
↓ 2 callers
Function
appendRequest
BUG-3056. `pad item note` / `decide` (and the remote /mcp doors) appended by GET, append locally, PATCH the whole fields blob back, so a write to any
internal/server/handlers_items_append_test.go:22
↓ 2 callers
Function
appendSearchPermissionFilter
appendSearchCollectionFilter adds the collection content filter to a search query. A resolved CollectionFilterIDs set (BUG-2659) wins; a bare Collecti
internal/store/search.go:844
↓ 2 callers
Function
appendSelectOptionsJSON
appendSelectOptionsJSON appends values to the named fields' options in the stored schema JSON, decoded generically so keys models.FieldDef does not de
internal/server/library_option_widen.go:176
↓ 2 callers
Method
appendSyncFrameQ
(q yjsExecQueryer, itemID string, data []byte, schemaVersion string)
internal/store/yjs_updates.go:151
↓ 2 callers
Method
appendWorkspaceForecasts
appendWorkspaceForecasts keeps the earliest forecasts across all admitted workspaces, without consuming or changing any occurrence bounds or cuts. wor
internal/server/handlers_agenda_forecast.go:37
↓ 2 callers
Function
appliedMigrations
appliedMigrations returns the set of migration version strings recorded in schema_migrations (the full filename, e.g. "073_workspace_deleted_at_idx.sq
internal/store/migration_guard.go:23
↓ 2 callers
Method
applies
* Whether the action EXISTS for this attachment. Open is omitted entirely * for types a browser cannot preview — never shown disabled, because a *
web/src/lib/attachments/actions.ts:122
↓ 2 callers
Method
appliesTo
(collectionSlug string)
internal/decision/runner.go:130
↓ 2 callers
Function
applyAgendaAudience
applyAgendaAudience applies an explicit audience parameter to run and echoes it on the response. An empty value leaves the run untouched.
internal/server/handlers_agenda.go:207
↓ 2 callers
Function
applyEditsToText
(body: string, edits: PatchEdit[])
web/src/lib/collab/patchApply.ts:71
↓ 2 callers
Method
applyFieldMigrationsTx
applyFieldMigrationsTx runs the per-row field-value migration loop on an EXISTING transaction. Extracted so UpdateCollection can run the schema change
internal/store/collections.go:1074
↓ 2 callers
Function
applyResultMode
applyResultMode keeps only the result channel the configured client exposes to its model. Errors and one-channel results stay untouched so compact mod
internal/mcp/catalog.go:590
↓ 2 callers
Function
applyRetag
* Re-stamp `collection_slug` on every cached row of one collection * (BUG-2601). Matches by STABLE `collection_id` — never by old slug, * which a di
web/src/lib/stores/localIndex.svelte.ts:457
↓ 2 callers
Method
applyToDSN
applyToDSN returns connStr with the limits appended as startup parameters. Startup parameters (not a session SET) are what make every connection the p
internal/store/runtime_limits.go:40
↓ 2 callers
Function
applyVersion
(content string, v tieVersion)
internal/store/version_tie_diagnostic.go:413
↓ 2 callers
Method
appsSettings
()
internal/server/handlers_apps_install.go:733
↓ 2 callers
Function
archivedCollections
(t *testing.T, s *store.Store)
internal/store/collections_archive_test.go:20
↓ 2 callers
Function
args
(body: string)
web/src/lib/playbooks/argumentsRoundTrip.test.ts:29
↓ 2 callers
Function
armSeenVisible
()
web/src/lib/services/visibility.svelte.ts:59
↓ 2 callers
Function
armStateKey
armStateKey derives the per-session key and reports whether the headless (per-repo) fallback was used. socket wins when present; cwd is the fallback.
internal/cli/session_arm_state.go:161
↓ 2 callers
Function
armStateOwnerAlive
armStateOwnerAlive implements the mandatory liveness check (constraint 2), hardened against owner-identity reuse. A stale armed file must never arm a
internal/cli/session_arm_state.go:379
↓ 2 callers
Function
armedSessionCounts
(sessions: readonly LiveSession[])
web/src/lib/chat/presence.ts:96
↓ 2 callers
Function
armedSessions
Sessions payload with `armed` accepting entries and `unarmed` * connected-but-not-accepting entries (PLAN-2613 S4). Armed ones come first * so the
web/src/lib/components/items/PushToAgentDialog.svelte.test.ts:67
↓ 2 callers
Function
arr
(x, ...keys)
plugin/hooks/register.js:80
↓ 2 callers
Function
arrowStep
(order, cur, by, listEntry)
plugin/hooks/register.js:317
↓ 2 callers
Function
artifactCollectionSlug
(collections: readonly Collection[], kind: ArtifactKind)
web/src/lib/collections/artifactSlug.ts:16
↓ 2 callers
Function
artifactExportFilename
artifactExportFilename builds the download filename for an exported item: "<slug>.pad.md".
internal/server/handlers_artifact_export.go:149
↓ 2 callers
Function
artifactIsBindableText
artifactIsBindableText reports whether a decoded artifact carries a NUL in any string it would take into the store. It works by MARSHALLING the artif
internal/server/artifact_import.go:279
↓ 2 callers
Function
asShallow
(path: string)
web/src/lib/collections/paneHostController.chatLatch.svelte.test.ts:15
↓ 2 callers
Function
asUpdateConflictError
asUpdateConflictError reports whether err is (or wraps) a store.UpdateConflictError and returns it. Handlers use it to branch the generic upstream-err
internal/server/handlers_items_open_children_guard.go:652
↓ 2 callers
Function
aside
()
web/src/lib/components/layout/Sidebar.svelte.test.ts:77
↓ 2 callers
Method
asked
()
cmd/pad/task3612_link_repoint_test.go:54
↓ 2 callers
Function
assertAckLossKeepsTheWorkspace
(t *testing.T, srv *Server)
internal/server/handlers_cloud_member_ack_test.go:79
↓ 2 callers
Function
assertAgendaRoles
(t *testing.T, m map[string]any, want map[string]string)
internal/server/handlers_agenda_test.go:138
↓ 2 callers
Function
assertAgentSignupCounts
(t *testing.T, s *Store, net string, now time.Time, want int)
internal/store/agent_signup_ledger_test.go:10
↓ 2 callers
Function
assertBlockedUntilRelease
assertBlockedUntilRelease runs write concurrently with a provisioning held inside its transaction: write must not finish while it is held, and must fi
internal/store/task3397_provision_test.go:129
↓ 2 callers
Function
assertBulkAllSucceeded
assertBulkAllSucceeded fails if any item landed in the envelope's `failed` list. Without this a dropped coercion reads as a passing 200.
internal/server/handlers_items_field_coercion_test.go:669
↓ 2 callers
Function
assertBusyWording
(t *testing.T, rr *httptest.ResponseRecorder, wantWrite bool, unknownOverride string)
internal/server/task4278_error_mapping_test.go:176
↓ 2 callers
Function
assertCarriesEntry
assertCarriesEntry checks the item records key at the entry's current hash AND still holds that entry's text, so the recorded hash is true of it.
internal/server/task3462_builtin_origin_test.go:68
↓ 2 callers
Function
assertChatRows
(t *testing.T, s *Store, convID string, conversations, members, messages int)
internal/store/conversations_test.go:1433
↓ 2 callers
Function
assertConnInterfaces
assertConnInterfaces checks, on a REAL connection the caller already asked for, that the base implements everything the wrapper advertises flatly. It
internal/store/nulguard.go:549
↓ 2 callers
Function
assertContentPatchAckLossCommitsOnce
(t *testing.T, srv *Server)
internal/server/handlers_items_ack_loss_test.go:82
↓ 2 callers
Function
assertCounts
assertCounts pins the privacy half of the contract: the numbers stay at the VISIBLE total even though the marker admits there is more.
internal/server/handlers_items_copy_preflight_test.go:1653
↓ 2 callers
Function
assertDismissedReminderCarrier
(t *testing.T, s *Store, ws, item string, sc *models.ItemSchedule)
internal/store/reminder_collision_test.go:308
↓ 2 callers
Function
assertEachEntryOnce
(t *testing.T, seen []string, want ...string)
internal/server/handlers_timeline_structured_test.go:378
↓ 2 callers
Function
assertFacetsEqual
(t *testing.T, label string, got, want *SearchFacets)
internal/store/task4809_search_single_pass_test.go:101
← previous
next →
7,101–7,200 of 31,685, ranked by callers