MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 2 callersFunctionaccountExportIsComplete
(text: string)
web/src/lib/api/client.ts:1334
↓ 2 callersMethodaccountExportWorkspace
accountExportWorkspace reads one owned workspace's collections, items and their app attribution from ONE read-only snapshot, after re-checking on that
internal/server/handlers_account.go:425
↓ 2 callersFunctionaccountFor
An API handle for an account that already exists, by signing in as it.
web/e2e/workspace-tabs.spec.ts:50
↓ 2 callersFunctionackCmd
()
cmd/pad/cmd_reminder.go:198
↓ 2 callersMethodackOccurrenceTx
(tx *sql.Tx, sc *models.ItemSchedule, in ResolveInput, occurrence, now time.Time)
internal/store/schedule_ack.go:23
↓ 2 callersMethodackReminder
ackReminder keeps the by-id and by-item doors' store and race handling identical.
internal/server/handlers_reminders.go:246
↓ 2 callersFunctionacknowledgementLine
(at *string, by *models.AcknowledgedBy, loc *time.Location)
cmd/pad/cmd_schedule.go:1025
↓ 2 callersMethodacquireWorkspaceLocksOrdered
acquireWorkspaceLocksOrdered takes the workspace advisory locks for every supplied workspace, in ascending lock-KEY order, with duplicates collapsed.
internal/store/items_cross_workspace_copy.go:1103
↓ 2 callersMethodacquireWorkspaceParentLinkLock
acquireWorkspaceParentLinkLock takes a Postgres advisory transaction lock that serializes ALL parent-edge-ADDING transactions within a workspace (BUG-
internal/store/items.go:173
↓ 2 callersFunctionactionItemGet
actionItemGet handles pad_item.action=get. With `lines` it slices the body into numbered lines HERE, the one place both transports pass through, so th
internal/mcp/catalog_item.go:1115
↓ 2 callersFunctionactionItemStarred
actionItemStarred handles pad_item.action=starred. Like list it never pages (BUG-3790, as BUG-3704 did for list): it asks for one row past the list ca
internal/mcp/catalog_item.go:940
↓ 2 callersFunctionactionMetaServerInfo
actionMetaServerInfo returns the minimal {name, version} pair. Roughly equivalent to what the MCP handshake exposes, but available post-handshake with
internal/mcp/catalog_meta.go:78
↓ 2 callersFunctionactionWorkspaceAuditLog
actionWorkspaceAuditLog reshapes the input for `pad workspace audit-log`'s `--action` filter flag. The CLI flag name `action` would normally be reacha
internal/mcp/catalog_workspace.go:110
↓ 2 callersFunctionactiveInViewer
(page: Page)
web/e2e/lib/attachment-viewer.ts:714
↓ 2 callersMethodactivityCounts
activityCounts returns per-workspace "<workspace>:<action>" counts, so an assertion can name exactly which row it expects where.
internal/server/handlers_items_copy_test.go:619
↓ 2 callersFunctionactivityPage
(t *testing.T, srv *Server, path string)
internal/server/task2219_activity_collection_test.go:27
↓ 2 callersFunctionactorKindOf
(kind string)
internal/store/milestone.go:65
↓ 2 callersMethodaddBillingFields
addBillingFields sets billing_available and billing_offer (TASK-3577): whether Pad Pro can be bought now, and its intervals, prices and trial as the s
internal/server/handlers_auth.go:159
↓ 2 callersFunctionaddCause
(key: string, why: string)
web/src/lib/stores/chatThread.property.svelte.test.ts:183
↓ 2 callersFunctionaddField
(f models.FieldDef)
internal/server/app_upgrade_diff_test.go:196
↓ 2 callersMethodaddFlags
(c *cobra.Command)
cmd/pad/cmd_schedule_link.go:23
↓ 2 callersFunctionaddPadEntryJSON
(path, binary string, args []string)
internal/mcp/install.go:215
↓ 2 callersFunctionaddPadEntryTOMLWithArgs
(path, binary string, args []string)
internal/mcp/install.go:413
↓ 2 callersMethodaddPending
(op_key: string, body: string, reply_to_seq?: number)
web/src/lib/chat/model.ts:59
↓ 2 callersFunctionaddressable
Both anchors need a workspace and an id before they can point anywhere.
web/src/lib/attachments/actions.ts:160
↓ 2 callersMethodadminAcceptsAPITokens
adminAcceptsAPITokens reports whether platform administration accepts an API token: only when the operator opted in, and never on Pad Cloud.
internal/server/server.go:893
↓ 2 callersMethodadmit
admit applies the failure budget. The budget resets when the op-log has moved past the MAX(id) recorded at the last failure.
internal/server/materialize_recovery.go:560
↓ 2 callersFunctionadvanceQueue
* Show the next QUEUED request that is still live (BUG-3046). A request queued * behind another is not withdrawn when its reason disappears: the user
web/src/lib/stores/openChildrenDialog.svelte.ts:41
↓ 2 callersFunctionadvanceQueue
()
web/src/lib/stores/pendingEditsDialog.svelte.ts:28
↓ 2 callersMethodagendaEntries
agendaEntries states each occurrence. loc is the zone the schedule's walls resolve in and lo where the walk began (the later of from and the rule's st
internal/store/schedule_agenda.go:424
↓ 2 callersFunctionagendaForecastRow
(row store.AgendaForecast)
internal/server/handlers_agenda_forecast.go:28
↓ 2 callersMethodagendaGatedItemIDsQ
(q Queryer, workspaceID string, itemIDs []string)
internal/store/agenda_work_batch.go:58
↓ 2 callersMethodagendaOccurrences
agendaOccurrences reads a schedule's history rows around [from, to), padded a day and a half each way because a floating row is the recipient's readin
internal/store/schedule_agenda.go:266
↓ 2 callersFunctionagendaRecipient
agendaRecipient reads the caller as the agenda sees them: the account whose zone "today" is in and whose items the schedules belong to, and the kind.
internal/server/bootstrap_agenda.go:101
↓ 2 callersFunctionagendaRolesWorld
agendaRolesWorld builds both origins through their respective store writers.
internal/server/handlers_agenda_test.go:114
↓ 2 callersMethodagendaWorkDetailsQ
(q Queryer, workspaceID string, itemIDs []string)
internal/store/agenda_work_batch.go:16
↓ 2 callersFunctionagendaZone
agendaZone reads the optional `tz` parameter, writing the 400 itself on a bad name. note is set when the zone is the caller's own default.
internal/server/handlers_agenda.go:169
↓ 2 callersFunctionagentGuideHeading
(line string)
cmd/pad/cmd_agent.go:79
↓ 2 callersFunctionagentGuideSlug
(s string)
cmd/pad/cmd_agent.go:91
↓ 2 callersFunctionagentGuideTopics
(markdown string)
cmd/pad/cmd_agent.go:46
↓ 2 callersFunctionagentItemFields
agentItemFields removes entries already hydrated as top-level arrays. These keys remain in storage for append semantics, but repeating them in an agen
internal/cli/item_summary.go:201
↓ 2 callersFunctionagentMeta
agentMeta returns metadata JSON with the agent name if X-Pad-Agent is set, merged with any existing metadata. Returns empty string if no agent.
internal/server/handlers_documents.go:399
↓ 2 callersFunctionagentNameFromMetadata
(metadata: string | undefined | null)
web/src/lib/utils/agentActor.ts:58
↓ 2 callersFunctionagentNameValue
(name: unknown)
web/src/lib/utils/agentActor.ts:82
↓ 2 callersFunctionagentSays
(request: APIRequestContext, f: Fixture, n: number, agent: string, body: string)
web/e2e/chat-thread-write.spec.ts:47
↓ 2 callersFunctionagentValidArgs
()
cmd/pad/mcp.go:179
↓ 2 callersFunctionagingBuckets
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 callersFunctionago
(iso)
plugin/hooks/register.js:234
↓ 2 callersFunctionaliasExtensions
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 callersFunctionallFiles
()
web/src/lib/attachments/pdfjsBuildOutput.test.ts:38
↓ 2 callersFunctionallRetry
(msgs []Message)
internal/notify/gateway.go:177
↓ 2 callersFunctionallRoutedCmdKeys
()
internal/mcp/dispatch_http_allowlist_guard_test.go:449
↓ 2 callersMethodallow
allow reports whether to log for key, and records it.
internal/server/middleware_mcp_host.go:129
↓ 2 callersMethodallow
(installID string)
internal/server/app_webhook_delivery.go:247
↓ 2 callersMethodallowDecisionProviderCall
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:978
↓ 2 callersFunctionallowlistFixtureInput
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:1186
↓ 2 callersFunctionallowlistedAuthorizeParams
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:2346
↓ 2 callersFunctionanalyseUnit
(src: AstSource, decls: Declarations, unit: Unit, opts: AnalyseOptions)
web/src/test/identityFenceAst.ts:1553
↓ 2 callersFunctionanchorTags
(text: string)
web/src/test/linkCensusScan.ts:5
↓ 2 callersFunctionannotationForDef
annotationForDef derives the MCP tool annotation block from the catalog's own read-only knowledge (readOnlyActions in tool_surface.go — the single sou
internal/mcp/catalog.go:320
↓ 2 callersFunctionannualRadios
()
web/src/routes/(console)/settings/billing/billingInterval.svelte.test.ts:92
↓ 2 callersFunctionanswer
(key: string, noul: number)
web/src/lib/components/items/DecisionChips.svelte.test.ts:38
↓ 2 callersFunctionanswerAt
(revision: number, ...tabs: Tab[])
web/src/lib/stores/tabs.svelte.test.ts:84
↓ 2 callersMethodanswers
answers returns the latest attention answers of the rows' items, the owed jobs, and the question hashes as the set asks them now. All three are nil wi
internal/server/needs_scorers.go:183
↓ 2 callersFunctionapi
(request: APIRequestContext, fixture: SuiteFixture, method: 'get' | 'post', path: string, data?: unknown)
web/e2e/task-2188-schema-removal-confirm.spec.ts:18
↓ 2 callersFunctionapiErr
(code: string)
web/src/lib/stores/chatInbox.svelte.test.ts:82
↓ 2 callersFunctionappCall
( ca: Buffer, method: string, url: string, opts: { headers?: Record<string, string>; body?: string | Buffe
web/e2e/lib/real-install.ts:256
↓ 2 callersMethodappCollectionDTO
(c *models.Collection)
internal/server/app_api_read.go:227
↓ 2 callersFunctionappCommentAuthorKind
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 callersFunctionappCommentDTO
appCommentDTO is one comment's DTO, written by this request's actor.
internal/server/app_api_write.go:232
↓ 2 callersMethodappCommentOnItem
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:294
↓ 2 callersMethodappConsentGate
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 callersFunctionappContextSelfCheck
appContextSelfCheck refuses a request whose context lacks any key the shared helpers read (§4 step 5).
internal/server/app_api.go:528
↓ 2 callersMethodappDeliveryChecksQ
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 callersFunctionappDeliveryExpired
(occurredAt string, now time.Time)
internal/server/app_webhook_delivery.go:198
↓ 2 callersFunctionappFieldProjection
appFieldProjection keeps only the item's values for the collection's declared non-relation keys.
internal/server/app_api_read.go:110
↓ 2 callersMethodappHookInstall
(webhookID string)
internal/store/app_delivery.go:257
↓ 2 callersFunctionappPrincipalEmail
appPrincipalEmail is the address CreateAppUserTx gives an install's bot.
internal/store/install_clients.go:180
↓ 2 callersFunctionappPrincipalInstallID
appPrincipalInstallID recovers the install id from a bot's address.
internal/store/app_principal.go:176
↓ 2 callersMethodappPrincipalInstallQ
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 callersMethodappRecheckAttachment
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 callersFunctionappRows
(t *testing.T, e *appsEnv, q string, args ...any)
internal/server/handlers_apps_provision_test.go:173
↓ 2 callersFunctionappSchemaProjection
(c *models.Collection)
internal/server/app_api_read.go:89
↓ 2 callersMethodappSignInAvailable
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 callersMethodappVisibleAttachment
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 callersFunctionappWrittenItemDTO
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 callersMethodappend
(t *testing.T, frame []byte, version string)
internal/server/bug3244_schema_rebuild_set_aside_test.go:48
↓ 2 callersMethodappend
(n Notification)
internal/watchevents/watchevents.go:378
↓ 2 callersFunctionappendBackedReservedKey
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:1723
↓ 2 callersMethodappendFieldFilters
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:2414
↓ 2 callersFunctionappendOnlyMux
--- 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 callersFunctionappendRequest
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 callersMethodappendSearchFilters
appendSearchFilters adds workspace, collection, and field filter clauses to a query. Used to keep count and results queries in sync.
internal/store/search.go:447
↓ 2 callersFunctionappendSearchPermissionFilter
appendSearchCollectionFilter adds the collection content filter to a search query. A resolved CollectionFilterIDs set (BUG-2659) wins; a bare Collecti
internal/store/search.go:625
↓ 2 callersFunctionappendSelectOptionsJSON
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 callersMethodappendSyncFrameQ
(q yjsExecQueryer, itemID string, data []byte, schemaVersion string)
internal/store/yjs_updates.go:151
↓ 2 callersMethodappendWorkspaceForecasts
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:36
↓ 2 callersFunctionappliedMigrations
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:16
↓ 2 callersMethodapplies
* 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:121
↓ 2 callersMethodappliesTo
(collectionSlug string)
internal/decision/runner.go:130
← previousnext →6,401–6,500 of 28,840, ranked by callers