MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 157 callersMethodGetUser
GetUser retrieves a user by ID.
internal/store/users.go:163
↓ 157 callersMethodset
The list an outside fetch got back, under the token it reserved.
web/src/lib/stores/pendingInvitations.svelte.ts:65
↓ 153 callersMethodListItems
(workspaceID string, params models.ItemListParams)
internal/store/items.go:1268
↓ 153 callersMethodstatus
(t *testing.T, tok string, it models.Item, status string)
internal/server/task3615_catch_up_test.go:96
↓ 149 callersMethodD
D returns the store's dialect for building backend-specific SQL.
internal/store/store.go:392
↓ 143 callersMethodcreate
(t *testing.T, in models.ScheduleCreate)
internal/store/schedules_test.go:42
↓ 143 callersMethodreload
(t *testing.T, itemID string)
internal/store/schedule_fire_test.go:33
↓ 142 callersMethodCreateAPIToken
(userID string, input models.APITokenCreate, defaultExpiryDays, maxLifetimeDays int, opts ...MintOption)
internal/store/api_tokens.go:33
↓ 141 callersMethodDispatch
Dispatch satisfies the Dispatcher interface. cliArgs are accepted for interface compatibility but ignored — HTTPHandlerDispatcher reads the structured
internal/mcp/dispatch_http.go:275
↓ 141 callersFunctiongetClient
()
cmd/pad/main.go:366
↓ 139 callersMethodName
()
internal/needs/needs.go:283
↓ 138 callersMethodGetCollectionBySlug
(workspaceID, slug string)
internal/store/collections.go:356
↓ 137 callersFunctionwaitFor
( what: string, fn: () => T | null | undefined | false | Promise<T | null | undefined | false>, timeoutMs =
web/e2e/lib/real-install.ts:288
↓ 135 callersMethodErr
Err is the stream's first write or flush failure, or nil.
internal/server/sse_stream.go:85
↓ 135 callersFunctioncurrentUser
currentUser returns the authenticated user from the request context, or nil if no user is authenticated.
internal/server/middleware_auth.go:653
↓ 135 callersFunctionfixedUserResolver
fixedUserResolver is a tiny helper for the unit tests that need a deterministic user without standing up the auth middleware.
internal/mcp/dispatch_http_test.go:23
↓ 134 callersMethodSetMemberCollectionAccess
SetMemberCollectionAccess updates a member's collection_access mode and replaces their specific collection grants atomically.
internal/store/workspace_members.go:634
↓ 134 callersMethodadd
(m: ChatMessage)
web/src/lib/stores/chatThread.svelte.test.ts:93
↓ 134 callersMethodremove
* Delete a message (V6, V7: idempotent, a repeat answers 200 with the same * tombstone) and merge the tombstone in place only after server success.
web/src/lib/stores/chatThread.svelte.ts:567
↓ 133 callersFunctiontick
()
web/src/lib/collab/materializer/materializerParity.svelte.test.ts:191
↓ 131 callersMethodCreateItemGrant
--- Item Grants --- CreateItemGrant creates a direct grant on an item for a user.
internal/store/grants.go:128
↓ 130 callersFunctionnewAgendaWorld
(t *testing.T, slugs ...string)
internal/server/handlers_agenda_test.go:36
↓ 129 callersMethodError
()
internal/cli/client.go:2386
↓ 128 callersMethodurl
(rest string)
internal/server/bug3814_version_chain_snapshot_test.go:92
↓ 127 callersMethodAddr
Addr returns the host:port listen address.
internal/config/config.go:802
↓ 126 callersMethodGetUserByEmail
GetUserByEmail retrieves a user by email address (case-insensitive).
internal/store/users.go:186
↓ 126 callersMethodcall
(tool: string, args: Record<string, unknown>)
web/src/mcp-app/bridge.ts:20
↓ 123 callersMethodStop
Stop waits for all background goroutines started via goAsync to finish AND drains the rate-limiter cleanup goroutines spawned at construction time (BU
internal/server/server.go:778
↓ 119 callersMethoditem
item creates an open item; assignee may be nil. created pins created_at.
internal/server/handlers_me_needs_test.go:91
↓ 118 callersMethodmust
(rr *httptest.ResponseRecorder, code int, what string)
internal/server/workspace_access_notify_test.go:121
↓ 118 callersMethodtoken
(u *models.User, scopes string)
internal/server/handlers_commitments_http_test.go:47
↓ 117 callersFunctiontextOf
textOf returns the text of the first content block, or empty string. Robust to mcp-go's content-type variations (TextContent, ErrorContent).
internal/mcp/catalog_test.go:397
↓ 115 callersFunctionmustUser
(t *testing.T, srv *Server, email, username, role string)
internal/server/authz_cross_workspace_test.go:76
↓ 115 callersFunctionneedsBackends
TASK-3920: GET /me/needs, the cross-workspace needs-you inbox. Every test runs on SQLite and, with PAD_TEST_POSTGRES_URL set, on Postgres too. Fixture
internal/server/handlers_me_needs_test.go:29
↓ 113 callersFunctionPrintJSON
PrintJSON prints any value as indented (human-readable) JSON.
internal/cli/format.go:509
↓ 111 callersFunctiongetWorkspace
()
cmd/pad/main.go:375
↓ 110 callersMethodLen
()
internal/schedule/internal/rrule/util.go:22
↓ 109 callersFunctionrender
()
web/src/routes/(console)/settings/admin/mcpAuditTab.svelte.test.ts:33
↓ 108 callersFunctionNewMemoryOpBus
NewMemoryOpBus returns a ready-to-use in-process bus.
internal/collab/memory_bus.go:38
↓ 108 callersFunctionparseTime
(s string)
internal/store/store.go:1598
↓ 107 callersMethodclear
()
web/src/lib/stores/lastWorkspace.svelte.ts:26
↓ 106 callersMethodDecode
Decode reads bytes from r and returns the decoded image plus the detected format ("png", "jpeg", "gif", "bmp", "tiff", …). The returned format is the
internal/attachments/processor.go:35
↓ 106 callersFunctiondecodeJSON
2 MiB decodeJSON reads and unmarshals the JSON body into v. Wraps the body in http.MaxBytesReader so an attacker can't exhaust memory by POSTing a mul
internal/server/server.go:3218
↓ 105 callersFunctioncaptureStdout
captureStdout runs fn with os.Stdout redirected and returns what it wrote. The list commands print through fmt/os.Stdout rather than cmd.OutOrStdout,
cmd/pad/format_markdown_routing_test.go:48
↓ 104 callersMethodcontains
(id string)
cmd/pad/cmd_watch_chat.go:201
↓ 101 callersMethodError
()
internal/mcp/catalog.go:289
↓ 101 callersMethodmustResolve
(t *testing.T, item *models.Item, in ResolveInput, now string)
internal/store/schedule_resolve_test.go:58
↓ 100 callersMethodClose
Close shuts the bus down, closing every subscriber channel.
internal/watchevents/watchevents.go:349
↓ 100 callersMethodClose
Close shuts down the bus. All subscriber channels are closed under the same write-lock that gates Publish/Subscribe so a final inflight Publish can't
internal/collab/memory_bus.go:209
↓ 100 callersMethodCount
()
internal/ics/ics.go:30
↓ 99 callersMethodallEdit
()
internal/store/commitment_links_test.go:54
↓ 98 callersMethodIsZero
IsZero reports that no bound is set.
internal/store/runtime_limits.go:32
↓ 98 callersFunctionNewWorkspaceState
NewWorkspaceState returns a state pre-seeded with `initial`. Pass an empty string to start with no default — the first tool call will then need an exp
internal/mcp/workspace.go:57
↓ 98 callersFunctionloginTestUser
loginTestUser creates a user + session, returns the user + the raw session token suitable for AddCookie.
internal/server/handlers_oauth_test.go:2439
↓ 96 callersMethodWrite
(p []byte)
internal/mcp/resources.go:127
↓ 95 callersMethodSetCloudMode
SetCloudMode enables cloud mode with the shared sidecar secret(s). Accepts a comma-separated list of secrets for rotation support: "new-key,old-key" —
internal/server/server.go:968
↓ 93 callersFunctionNewClientFromURL
NewClientFromURL creates a client from a full base URL (e.g., "https://app.getpad.dev").
internal/cli/client.go:77
↓ 93 callersMethodpath
(p string)
internal/server/task3401_app_api_test.go:195
↓ 93 callersFunctionsetupWatchTestUser
setupWatchTestUser seeds a workspace + item, mints a real user + user-scoped Bearer token (mirrors handlers_stars_test.go's pattern), and returns ever
internal/server/handlers_watches_test.go:16
↓ 90 callersMethodWrite
(p []byte)
internal/server/sse_stream.go:91
↓ 90 callersFunctiondoRequestWithHeaders
doRequestWithHeaders is a thin variant of doRequest that lets a test set arbitrary request headers (e.g. Authorization) without spinning up a real aut
internal/server/handlers_items_test.go:19
↓ 89 callersMethodClose
Close shuts down the event bus and cleans up resources.
internal/events/bus.go:321
↓ 88 callersFunctionNewRoomManager
NewRoomManager wires the store + bus together with production defaults.
internal/collab/manager.go:319
↓ 88 callersMethodString
String renders a violation the way the CLI reports it.
internal/store/nulscan.go:77
↓ 88 callersFunctioncreateWSForTest
(t *testing.T, srv *Server)
internal/server/server_test.go:232
↓ 88 callersMethoddo
(method, path string, body any)
internal/server/bug3353_legacy_token_test.go:52
↓ 87 callersFunctionmkUser
(t *testing.T, srv *Server, email string)
internal/server/handlers_storage_delete_authz_test.go:107
↓ 87 callersMethodmustExec
(t *testing.T, query string, args ...interface{})
internal/store/workspace_purge_test.go:60
↓ 86 callersFunctionNewSQLite
NewSQLite returns a *store.Store backed by a fresh SQLite file in t.TempDir(), fully migrated. See the package doc for the template+copy mechanism. St
internal/store/storetest/storetest.go:55
↓ 84 callersFunctionNew
New creates a new Metrics instance with a custom registry and registers all application metrics plus Go runtime and process collectors.
internal/metrics/metrics.go:567
↓ 82 callersMethodExportWorkspace
ExportWorkspace exports all data for a workspace into a portable format, every section read from ONE snapshot (see ExportWorkspaceSnapshot).
internal/store/export.go:154
↓ 82 callersMethodclose
()
web/src/lib/services/sseStreamBudget.svelte.test.ts:166
↓ 82 callersFunctionnewCopyPreflightFixture
(t *testing.T)
internal/server/handlers_items_copy_preflight_test.go:81
↓ 82 callersFunctionnewSchedHTTP
(t *testing.T)
internal/server/handlers_commitments_http_test.go:32
↓ 81 callersMethodas
(tok, method, path string, body any)
internal/server/handlers_commitments_http_test.go:79
↓ 80 callersFunctioncurrentUserID
currentUserID returns the authenticated user's ID, or empty string.
internal/server/middleware_auth.go:715
↓ 79 callersMethodUnsubscribe
Unsubscribe removes a subscriber and closes its channel.
internal/events/bus.go:280
↓ 78 callersMethodassign
(t *testing.T, itemID, userID string)
internal/store/schedule_fire_test.go:75
↓ 77 callersMethodSet
Set adds or replaces the credential for the given server URL. The canonical URL is mirrored into the value's ServerURL field so a caller reading the c
internal/cli/credentials.go:334
↓ 77 callersFunctiondoRequestWithBearer
doRequestWithBearer dispatches a request with an Authorization: Bearer header set. The existing test helpers in server_test.go don't take a token para
internal/server/middleware_auth_public_paths_test.go:25
↓ 77 callersFunctionnotifyUser
(t *testing.T, s *Store, email string)
internal/store/notification_settings_test.go:27
↓ 76 callersMethodmember
(ws *models.Workspace, u *models.User, role string)
internal/server/handlers_me_needs_test.go:67
↓ 76 callersFunctionnewPdx
(t *testing.T, srv *Server)
internal/server/task3939b_push_fixture_test.go:87
↓ 75 callersFunctionNew
New creates a new in-memory EventBus with default replay buffer settings.
internal/events/bus.go:715
↓ 75 callersFunctionoauthEnabledTestServer
oauthEnabledTestServer builds a Server with cloud mode + a real internal/oauth.Server backed by the test store. Returns the Server so each test can dr
internal/server/handlers_oauth_test.go:54
↓ 75 callersFunctionregisterTestClient
===================================================================== Helpers ===================================================================== re
internal/server/handlers_oauth_test.go:2412
↓ 74 callersMethodUpdateCollection
(id string, input models.CollectionUpdate)
internal/store/collections.go:558
↓ 74 callersMethodrun
(key: K)
web/src/lib/utils/keyedCoalescer.ts:10
↓ 73 callersMethodCreateComment
CreateComment adds a new comment to an item. userID is the authenticated user authoring the comment (empty for agent/system comments); it's stored as
internal/store/comments.go:20
↓ 73 callersMethodImportWorkspace
ImportWorkspace is ImportWorkspaceWithReport for callers with no use for the report.
internal/store/export.go:645
↓ 73 callersFunctionWithCurrentUser
Exported context-key helpers for callers that need to synthesize an authenticated request without going through the auth middleware chain (e.g. the in
internal/server/context.go:36
↓ 73 callersMethodrow
row seeds a pending queue row for bob (or opts.user) about the fixture item.
internal/server/task3939b_push_fixture_test.go:177
↓ 72 callersMethodGetSchedule
GetSchedule returns an item's schedule, or (nil, nil) when it has none.
internal/store/schedules.go:415
↓ 72 callersMethodSubscribe
Subscribe returns a channel that receives every future Notification, with NO replay. There is exactly one logical stream (unlike internal/events.Event
internal/watchevents/watchevents.go:308
↓ 72 callersMethodbaseBody
()
internal/server/handlers_items_copy_preflight_test.go:215
↓ 72 callersFunctionbothBackends
bothBackends runs body against SQLite and, under `make test-pg`, Postgres. testServer is SQLite-only whatever gate is running, so the Postgres leg nee
internal/server/bug3163_reserved_write_doors_test.go:38
↓ 72 callersMethodtick
()
internal/server/task3939b_push_fixture_test.go:222
↓ 70 callersFunctionNew
(s *store.Store)
internal/server/server.go:851
↓ 69 callersMethodSubscribe
Subscribe registers a new subscriber for the given workspace and returns its event channel and its GAP SIGNAL — see SubscribeIfAllowed for what the se
internal/events/bus.go:226
↓ 69 callersMethodexpectErr
(rr *httptest.ResponseRecorder, status int, code, detailCode string)
internal/server/handlers_commitments_http_test.go:115
← previousnext →101–200 of 28,840, ranked by callers