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
↓ 3 callers
Method
listItemLinks
listItemLinks issues an in-handler GET against api/v1/workspaces/{ws}/items/{slug}/links and decodes the response into models.ItemLink so the un-* dis
internal/mcp/dispatch_http_links.go:665
↓ 3 callers
Function
listManual
(t *testing.T, s *Store, wsID, colID string)
internal/store/items_new_item_top_test.go:26
↓ 3 callers
Function
listWorkspaceTabsQ
listWorkspaceTabsQ reads the revision and the rows in ONE statement, so they describe one instant even on Postgres READ COMMITTED, where two statement
internal/store/workspace_tabs.go:66
↓ 3 callers
Method
liveAppDeliveries
liveAppDeliveries counts installID's unexpired in-flight rows, in database time.
internal/store/app_delivery.go:348
↓ 3 callers
Function
liveBySlug
(t *testing.T, srv *Server, slug string)
internal/server/bug3479_remove_unusable_truth_test.go:27
↓ 3 callers
Function
liveHas
(t *testing.T, s *Store, userID, token string)
internal/store/push_devices_test.go:444
↓ 3 callers
Function
liveSibling
liveSibling starts a long-lived process this test owns, unrelated to the stub, and returns its pid.
internal/buildtools/bug4068_pidfile_test.go:33
↓ 3 callers
Function
loadConfig
loadConfig loads the config and applies --url, returning a load error instead of exiting, for callers that must not end the process, such as the displ
cmd/pad/main.go:302
↓ 3 callers
Function
loadFixture
(t *testing.T, name string)
internal/urlimport/generic_test.go:10
↓ 3 callers
Function
loadImage
(url: string)
web/src/lib/components/editor/attachment-image.ts:609
↓ 3 callers
Function
loadJSONConfig
loadJSONConfig reads path as a JSON object. A missing or whitespace-only file is treated as an empty config (so AddPadEntry can populate from scratch
internal/mcp/install.go:327
↓ 3 callers
Function
loadLinkFixture
(t *testing.T)
internal/server/materialize_recovery_links_test.go:36
↓ 3 callers
Function
loadMIMEFamilies
(t *testing.T)
internal/attachments/mime_families_test.go:25
↓ 3 callers
Function
loadSchemaForTest
loadSchemaForTest is a test-only wrapper around FindAndCompileSchema that fails the test on error and starts the walk from the test's CWD.
internal/cmdhelp/schema_test.go:14
↓ 3 callers
Function
loadTOMLConfig
loadTOMLConfig reads path as a TOML document into a map. A missing or whitespace-only file is an empty config. Parse errors on a non-empty file propag
internal/mcp/install.go:509
↓ 3 callers
Function
loadTitleLimitCorpus
(t *testing.T)
internal/models/title_limit_parity_test.go:41
↓ 3 callers
Function
loadWithPushEnv
(t *testing.T, env map[string]string)
internal/config/push_dispatch_timings_test.go:9
↓ 3 callers
Function
localDate
(at: string, zone: string)
web/src/lib/calendar/presentation.ts:70
↓ 3 callers
Function
localHeadlessCfg
localHeadlessCfg points a Local-mode config at srv via env vars, so EnsureServer's serverResponds(host, port) check finds the fake server live and ski
cmd/pad/workspace_init_noninteractive_test.go:26
↓ 3 callers
Method
lockCommentRowTx
lockCommentRowTx reads one comment row, FOR UPDATE on Postgres. It returns nil when the row does not exist.
internal/store/comments.go:728
↓ 3 callers
Method
lockReminderCommitment
lockReminderCommitment takes the strongest locks first, then checks both identities. A cached alarm ID cannot address a replacement commitment.
internal/store/reminder_commitment.go:85
↓ 3 callers
Function
lockRowsForShare
lockRowsForShare runs a FOR SHARE select and drains it: the locks are taken as the rows are read.
internal/store/app_provision.go:390
↓ 3 callers
Function
lockSessionsDir
lockSessionsDir serializes registry mutations (register's write + prune, and a standalone prune) across processes with an advisory flock on ~/.pad/ses
internal/cli/session_lock_unix.go:22
↓ 3 callers
Method
lockStorageLimitTx
lockStorageLimitTx is the first half of enforceStorageLimitTx: it reads the workspace's owner and takes the storage_bytes plan-limit lock on it. A cal
internal/store/attachments.go:1973
↓ 3 callers
Method
lockUserProvidersTx
lockUserProvidersTx locks the account row and returns its linked providers. Every write to an account's providers or bindings goes through it, so a li
internal/store/oauth_identities.go:25
↓ 3 callers
Function
loginCmd
()
cmd/pad/cmd_auth.go:331
↓ 3 callers
Function
loginViaForm
(page: Page, email: string)
web/e2e/lib/chat-users.ts:75
↓ 3 callers
Function
logoutCmd
()
cmd/pad/cmd_auth.go:839
↓ 3 callers
Method
lookupByName
lookupByName finds a workspace by its NAME rather than its slug. Name is what the request supplies verbatim; slug is derived, and the derivation diffe
internal/server/handlers_workspace_create_consent_test.go:162
↓ 3 callers
Function
makeItem
()
web/src/lib/components/common/QuickActionsMenu.svelte.test.ts:190
↓ 3 callers
Function
makeLegacy
TASK-3462 U4: items made before built-in origins were recorded get one by exact title (or a playbook's invocation_slug), with no seed version, so they
internal/server/task3462_u4_legacy_adoption_test.go:20
↓ 3 callers
Function
mapItemStarred
mapItemStarred dispatches `pad item starred [--all]`. GET /api/v1/workspaces/{ws}/starred?include_terminal=true when --all is set. Without --all the
internal/mcp/dispatch_http_routes.go:872
↓ 3 callers
Function
mapKeys
mapKeys returns the keys of m, in arbitrary order. Used only by test failure messages where order doesn't matter.
internal/mcp/meta_test.go:174
↓ 3 callers
Function
mapRoleCreate
mapRoleCreate dispatches `pad role create <name> [--description ...] [--icon ...] [--tools ...]`. POST /api/v1/workspaces/{ws}/agent-roles with body
internal/mcp/dispatch_http_routes.go:1200
↓ 3 callers
Function
mapScheduleResolve
mapScheduleResolve is `item remind done|skip|snooze|move|ack`: the state is the command's, the rest is the input actionItemScheduleResolve left. The o
internal/mcp/dispatch_http_schedule.go:131
↓ 3 callers
Function
mapWebhookCreate
mapWebhookCreate dispatches `pad webhook create <url> [--events ...] [--secret ...]`. POST /api/v1/workspaces/{ws}/webhooks with body matching models
internal/mcp/dispatch_http_routes.go:1247
↓ 3 callers
Function
mapWorkspaceAuditLog
mapWorkspaceAuditLog dispatches `pad workspace audit-log [--days N] [--actor X] [--action X] [--limit N]`. GET /api/v1/audit-log (NOT workspace-scope
internal/mcp/dispatch_http_routes.go:1354
↓ 3 callers
Function
mapWorkspaceCreate
mapWorkspaceCreate dispatches `pad workspace create <name> [--slug X] [--template X]`. POST /api/v1/workspaces with body {name, slug?, template?} — m
internal/mcp/dispatch_http_routes.go:1397
↓ 3 callers
Function
mapWorkspaceInvite
mapWorkspaceInvite dispatches `pad workspace invite <email> [--role X]`. POST /api/v1/workspaces/{ws}/members/invite with body {email, role?}. Defaul
internal/mcp/dispatch_http_routes.go:1449
↓ 3 callers
Function
markEventForUnmarkTest
markEventForUnmarkTest is a helper that POSTs stripe-event-processed and returns the processed_at token the response hands back. Keeps the setup of th
internal/server/cloud_admin_gate_test.go:273
↓ 3 callers
Method
markLocalSent
A local update is going out on the open socket (BUG-3523).
web/src/lib/collab/wsProvider.svelte.ts:1574
↓ 3 callers
Function
marshalledLen
marshalledLen is the number of bytes this string occupies as a JSON value — the bytes actually sent, which are what the token estimate is taken over.
internal/decision/typesafe.go:507
↓ 3 callers
Function
matchesEvent
matchesEvent checks whether a webhook's event filter (JSON array) includes the given event name, or the wildcard "*".
internal/webhooks/dispatcher.go:759
↓ 3 callers
Function
maxSeq
(t *testing.T, s *Store, workspaceID string)
internal/store/items_cross_workspace_copy_test.go:149
↓ 3 callers
Method
maxSeq
(workspaceID string)
internal/server/handlers_items_copy_preflight_test.go:889
↓ 3 callers
Function
mcpClientClass
mcpClientClass returns the client class for a User-Agent header value.
internal/server/middleware_mcp_client.go:64
↓ 3 callers
Function
mcpInstallCmd
mcpInstallCmd implements `pad mcp install [agent]`. With no arguments, prints the install status across supported agents (so the user picks one). Wit
cmd/pad/mcp.go:49
↓ 3 callers
Function
mcpResourceFromContext
(ctx context.Context)
internal/server/middleware_mcp_auth.go:674
↓ 3 callers
Function
md
(ed: Editor)
web/src/lib/items/confirmedBaseSent.svelte.test.ts:50
↓ 3 callers
Function
mdNum
(n int)
cmd/pad/format_markdown_list_test.go:12
↓ 3 callers
Function
member
( role: WorkspaceMembership['role'], collection_access: WorkspaceMembership['collection_access'] )
web/src/lib/utils/permissions.canExport.test.ts:8
↓ 3 callers
Method
memberRoleReachesCollection
memberRoleReachesCollection is the member half of editorRoleReaches, shared with the collab socket's write decision, which has no request context. Th
internal/server/server.go:4168
↓ 3 callers
Method
membersPath
BUG-3355: a workspace must keep at least one owner, and its CANONICAL owner (workspaces.owner_id, which sets its URL, restore rights and plan limits)
internal/server/bug3355_last_owner_test.go:19
↓ 3 callers
Function
mergeAllowedWorkspaces
mergeAllowedWorkspaces computes the effective workspace allow-list for an OAuth-authenticated MCP request from the two sources described in handleMCPO
internal/server/middleware_mcp_auth.go:472
↓ 3 callers
Function
mergeDispatchInput
mergeDispatchInput returns a copy of the user-supplied MCP input augmented with the same default injections BuildCLIArgs applies — session workspace,
internal/mcp/dispatch.go:80
↓ 3 callers
Function
mergeFieldsPatch
mergeFieldsPatch applies a shallow JSON-merge-patch (RFC 7396 semantics, one level deep) of `patch` onto the item's current fields JSON (IDEA-1480 TAS
internal/store/items.go:2373
↓ 3 callers
Method
messagesAfter
(ctx context.Context, number int, after int64, limit int)
cmd/pad/cmd_watch_chat.go:17
↓ 3 callers
Function
metricsToolLabel
parseMCPRequestBody extracts (tool_name, args_hash) from the JSON-RPC envelope in body. Two cases: - method == "tools/call" → tool_name = params.name
internal/server/middleware_mcp_audit.go:422
↓ 3 callers
Function
migratedRemedy
migratedRemedy composes the operator-facing refusal text. `destination` names where the data went. The CALLER decides what to put there and is respon
internal/store/migrated.go:361
↓ 3 callers
Function
migrationCommitment
(t *testing.T)
cmd/pad/commitment_bundle_v2_test.go:13
↓ 3 callers
Function
milestoneShape
BUG-4612: a forecast or an active milestone selection lives beside the schedule and cascades away with it, so a commitment that has either is not a si
internal/store/reminder_commitment_milestone_test.go:16
↓ 3 callers
Function
miniredisTransport
(t *testing.T)
internal/server/task3365_access_kick_test.go:96
↓ 3 callers
Method
mintInstallCodeTx
mintInstallCodeTx mints a fresh install code for installID: 128 random bits, stored only as their SHA-256, redeemable once within InstallCodeTTL.
internal/store/app_provision.go:403
↓ 3 callers
Function
mintStatus
(srv *Server, in testInstall, secret string)
internal/server/task3397_lifecycle_test.go:37
↓ 3 callers
Function
mintWithResourceTier
mintWithResourceTier is mintWithResource asking for scope and consenting to tier (read / write / admin).
internal/server/task3321_u2a_audience_test.go:63
↓ 3 callers
Function
missing
()
web/e2e/task-3415-real-install.spec.ts:40
↓ 3 callers
Function
mockMailerooEndpoint
mockMailerooEndpoint stands up an httptest server that speaks enough of Maileroo's v2 JSON API to satisfy email.Sender. Returning 500 exercises the se
internal/server/cloud_admin_gate_test.go:754
↓ 3 callers
Function
monthDays
(month: string)
web/src/lib/calendar/monthGrid.ts:39
↓ 3 callers
Function
mountViewer
(props: Partial<Props> = {})
web/src/lib/components/common/Lightbox.svelte.test.ts:195
↓ 3 callers
Function
multiIndexFixture
The reverse index and `multi_relation` (PLAN-2857 U4, population-table rows 20-22). These rows were OPEN on the table as questions, not as work: U5 b
internal/store/relation_links_multi_test.go:19
↓ 3 callers
Method
mustBeMemberLimitRefusal
--- the invitee's refusal: its own code, the owner named, no upgrade link --- mustBeMemberLimitRefusal asserts the invitee-facing refusal (BUG-3098 ru
internal/server/handlers_invitation_accept_limit_test.go:246
↓ 3 callers
Function
mustJSONString
(s string)
internal/mcp/bug2772_remote_agent_identity_test.go:197
↓ 3 callers
Function
mustRead
(path string, v any)
scripts/decision-eval/attention/main.go:331
↓ 3 callers
Function
namespaceStamp
namespaceStamp is the value a writer records for the namespace it just observed something in: the namespace's inode, the unidentified sentinel when Li
internal/cli/session_owner.go:276
↓ 3 callers
Function
narrowRelationRow
( row: ItemIndexRow | null | undefined, value: string, declaredCollection: string | undefined, // `null` a
web/src/lib/collections/relationGroups.ts:132
↓ 3 callers
Function
nativeFields
parseFieldKVP normalizes the --field flag's various wire shapes (single string, []string, []any) into a `key→value` map. A MALFORMED entry — empty, or
internal/mcp/dispatch_http.go:1032
↓ 3 callers
Function
nativeRolesObject
()
internal/store/commitment_bundle_v2_test.go:40
↓ 3 callers
Function
navigated
(p: Promise<unknown>, before: string = urlKey())
web/src/lib/stores/chatSurface.svelte.ts:563
↓ 3 callers
Function
networkUnreachableError
(isIdempotent: boolean)
web/src/lib/api/client.ts:693
↓ 3 callers
Method
newActivity
newActivity is the activity delta since the observer was created.
internal/server/handlers_items_copy_test.go:635
↓ 3 callers
Function
newAdvisoryLockGate
newAdvisoryLockGate opens a transaction and takes the advisory lock for every supplied workspace, in sorted key order (the gate obeys the same protoco
internal/store/items_cross_workspace_copy_pg_test.go:169
↓ 3 callers
Function
newAppWebhookSecret
()
internal/store/app_webhooks.go:59
↓ 3 callers
Function
newB2367Fixture
(t *testing.T)
internal/server/bug2367_migrate_doors_test.go:90
↓ 3 callers
Function
newB2367StateFixture
(t *testing.T)
internal/server/bug2367_close_state_test.go:31
↓ 3 callers
Function
newCancelTestBus
BUG-2749: a client that disconnects while its workspace's Redis subscription is being established used to hold both admission slots — the process-wide
internal/events/redis_subscribe_cancel_test.go:29
↓ 3 callers
Function
newCappedUploadFixture
BUG-3653 part B: an app upload is charged against the workspace owner's storage_bytes limit, as a human upload is (TASK-3619), on top of the install's
internal/appstore/bug3653_storage_cap_test.go:20
↓ 3 callers
Function
newChatGPTScopeHarness
(t *testing.T)
cmd/pad/chatgpt_scope_test.go:30
↓ 3 callers
Function
newChatGPTTransport
newChatGPTTransport is the HTTP handler /mcp/chatgpt serves: the remote transport, with each tool's securitySchemes lifted to the top level of tools/l
cmd/pad/cmd_server_chatgpt.go:80
↓ 3 callers
Function
newCommentBearerGateFixture
(t *testing.T)
internal/server/handlers_comments_bearer_gate_test.go:36
↓ 3 callers
Function
newCommentFixture
TASK-3119 U2b: the conventions questions asked about each comment alone.
internal/decision/per_comment_test.go:14
↓ 3 callers
Function
newCopyPreflightFixtureOn
newCopyPreflightFixtureOn is the fixture on a server the caller built, so a test can run it on Postgres.
internal/server/handlers_items_copy_preflight_test.go:88
↓ 3 callers
Function
newDeleteFixture
(t *testing.T, s *Store)
internal/store/task4278_ctx_test.go:109
↓ 3 callers
Function
newDerivingShareFixture
seedOriginalWithProcessor is newShareAssetFixture + the pure-Go image processor wired, so deriveThumbnails actually produces variants. Returns a fixtu
internal/server/handlers_share_attachments_derive_test.go:34
↓ 3 callers
Function
newEpochFixture
newEpochFixture builds a workspace with a live and a doomed collection, one item in each, and a session for a member whose access is either "all" (unr
internal/server/bug3428_phase2_epoch_guard_test.go:31
↓ 3 callers
Function
newFailingSubscribeBus
(t *testing.T, failures int64)
internal/events/redis_subscribe_failed_test.go:63
↓ 3 callers
Function
newLimitedWorkspaceFixture
newLimitedWorkspaceFixture creates a free-plan owner with one seeded workspace, two further users (the member under test and the competitor's rival),
internal/store/limits_workspace_mint_race_test.go:116
↓ 3 callers
Function
newListSummaryFixture
listSummaryFixture: one workspace, one collection, one item whose content carries a recognizable marker string.
internal/mcp/dispatch_http_item_list_summary_test.go:40
↓ 3 callers
Function
newMentionNotifyFixture
(t *testing.T)
internal/store/task3946_mention_notify_test.go:22
↓ 3 callers
Function
newMultiDoorFixture
newMultiDoorFixture extends the shared door fixture with a `multi_relation` collection and three distinct targets in the existing `people` collection.
internal/server/relation_multi_roundtrip_test.go:47
↓ 3 callers
Function
newProjectionFixtureNamed
newProjectionFixtureNamed is the fixture with the owner's display name set to ownerName (an email-shaped one exercises the name mask).
cmd/pad/chatgpt_projection_test.go:46
← previous
next →
5,301–5,400 of 28,840, ranked by callers