MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 9,375 callersMethodFatalf
(format string, args ...any)
internal/store/storetest/writecapture_test.go:171
↓ 4,635 callersMethodFatal
(args ...any)
internal/store/storetest/writecapture_test.go:176
↓ 2,696 callersMethodHelper
()
internal/store/storetest/pgtrace_test.go:16
↓ 2,312 callersMethodString
()
internal/server/token_reaper_test.go:27
↓ 2,119 callersFunctionappend
(char: string)
web/src/lib/attachments/csv.ts:38
↓ 1,551 callersMethodRun
Run starts the stdio transport on os.Stdin / os.Stdout. It blocks until ctx is cancelled, stdin reaches EOF, or SIGINT / SIGTERM is received. EOF and
internal/mcp/server.go:123
↓ 1,423 callersMethodq
q rebinds a query to the store's dialect (converts "?" to "$1", "$2", etc. for PostgreSQL).
internal/store/store.go:1573
↓ 1,399 callersFunctionmake
(field: object, status: string)
web/src/lib/calendar/monthGrid.test.ts:67
↓ 1,254 callersMethodScan
(dest ...interface{})
internal/store/api_tokens.go:432
↓ 1,233 callersFunctiontestServer
(t *testing.T)
internal/server/server_test.go:20
↓ 1,214 callersFunctiontestStore
testStore creates a Store for testing. When PAD_TEST_POSTGRES_URL is set, it creates an isolated PostgreSQL database; otherwise it falls back to a fas
internal/store/store_test.go:23
↓ 1,170 callersMethodExec
(query string, args ...any)
internal/store/store.go:966
↓ 1,155 callersMethodClose
Close shuts down the bus and closes every active subscriber channel. After Close, Subscribe / Publish are undefined; callers must not invoke them.
internal/collab/bus.go:137
↓ 1,039 callersMethodAdd
Add registers a newly-opened stream for userID and returns the session's generated id, which the caller MUST pass to Remove. The identity is whatever
internal/server/session_presence.go:321
↓ 1,036 callersMethodNow
Now returns the SQL expression for the current UTC timestamp. SQLite: datetime('now') PostgreSQL: NOW() AT TIME ZONE 'UTC'
internal/store/dialect.go:68
↓ 927 callersMethodQueryRow
(query string, args ...any)
internal/store/items.go:4780
↓ 905 callersMethodJoin
Join attaches a freshly-upgraded WebSocket connection to the room for itemID. Replays the op-log to the new peer, spins up an inbound reader and an ou
internal/collab/manager.go:397
↓ 881 callersMethodIs
Is makes errors.Is(err, ErrCapHit) true for any *CapError.
internal/schedule/caps.go:97
↓ 782 callersFunctiondoRequest
(srv *Server, method, path string, body interface{})
internal/server/server_test.go:41
↓ 731 callersFunctiondescribe
(n: Node)
web/src/lib/components/items/childIdentityFencePopulation.test.ts:772
↓ 711 callersFunctioncreateTestWorkspace
(t *testing.T, s *Store, name string)
internal/store/store_test.go:383
↓ 674 callersMethodLock
Lock and Unlock expose the mutex to a caller that must hold it across its own check-and-act: the orphan GC and workspace purge keep it held from readi
internal/attachments/inflight.go:57
↓ 674 callersMethodUnlock
()
internal/attachments/inflight.go:58
↓ 671 callersMethodSet
Set replaces the session workspace. Pass an empty string to clear.
internal/mcp/workspace.go:79
↓ 635 callersFunctionparseJSON
(t *testing.T, rr *httptest.ResponseRecorder, v interface{})
internal/server/server_test.go:65
↓ 571 callersMethodpush
(target string, opts *http.PushOptions)
internal/server/flush_error_writer.go:88
↓ 554 callersFunctioncreateTestItem
(t *testing.T, s *Store, workspaceID, collectionID, title, content string)
internal/store/items_test.go:27
↓ 542 callersMethodDB
DB returns the underlying *sql.DB (for use in migrations/testing).
internal/store/store.go:395
↓ 527 callersMethodGet
Get returns a ReadCloser positioned at the start of the blob. Callers MUST close the returned reader. If key is unknown to this store, the returned er
internal/attachments/store.go:46
↓ 521 callersMethodAfter
After returns the first recurrence after the given datetime instance, or time.Time's zero value if no recurrence match. The inc keyword defines what h
internal/schedule/internal/rrule/rrule.go:978
↓ 519 callersMethodError
()
internal/server/handlers_collab.go:535
↓ 515 callersMethodCreateItem
(workspaceID, collectionID string, input models.ItemCreate, opts ...store.MintOption)
internal/appstore/testdata/ifacedecl/x.go:11
↓ 515 callersMethodQuery
(query string, args ...any)
internal/store/items.go:5808
↓ 496 callersFunctioncreateTestCollection
--- Collection helpers ---
internal/store/items_test.go:15
↓ 483 callersMethodfn
(name string)
internal/materialize/materialize.go:283
↓ 449 callersFunctioncreateWSWithCollections
createWSWithCollections creates a workspace and returns its slug. The workspace will have default collections seeded automatically.
internal/server/handlers_items_test.go:40
↓ 444 callersMethodAddWorkspaceMember
AddWorkspaceMember adds a user to a workspace with the given role. Transactional as of TASK-2658 — it was a bare Exec before. The membership row and
internal/store/workspace_members.go:37
↓ 438 callersMethodCreateUser
CreateUser creates a new user with a hashed password.
internal/store/users.go:124
↓ 436 callersMethodget
( url: string, options?: { headers?: Record<string, string> } )
web/e2e/workspace-bundle-roundtrip.spec.ts:67
↓ 413 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
internal/server/server.go:2825
↓ 402 callersMethodNext
Next returns the next token. For a String, which is either a value or an object member's name, str is its DECODED text (unless Raw is set) and is vali
internal/jsonscan/jsonscan.go:84
↓ 391 callersFunctionwriteError
(w http.ResponseWriter, status int, code, message string)
internal/server/server.go:2986
↓ 387 callersMethodRollback
Rollback abandons the fenced transaction. It is safe to defer after a successful Commit.
internal/store/fenced_tx.go:146
↓ 370 callersMethodError
()
internal/store/limits.go:239
↓ 365 callersFunctionwriteInternalError
writeInternalError logs the real error server-side and sends a generic message to the client. This prevents leaking SQL errors, file paths, and other
internal/server/server.go:3049
↓ 359 callersMethodHeader
()
internal/server/app_api.go:578
↓ 351 callersFunctiondoRequestWithCookie
doRequestWithCookie is like doRequest but adds a session cookie.
internal/server/handlers_auth_test.go:638
↓ 341 callersFunctionnewSchedFixture
(t *testing.T)
internal/store/schedules_test.go:25
↓ 338 callersMethodresolve
(t *testing.T, item *models.Item, in ResolveInput, now string)
internal/store/schedule_resolve_test.go:53
↓ 334 callersMethodBegin
()
internal/store/nultriggers_test.go:558
↓ 328 callersMethodok
(t *testing.T, u *models.User, query string)
internal/server/handlers_agenda_test.go:85
↓ 325 callersMethodCreateWorkspace
CreateWorkspace mints a workspace against the pool. Callers already inside a transaction want createWorkspaceQ instead. With WithPlanLimit() the mint
internal/store/workspaces.go:100
↓ 313 callersMethodGetItem
(id string)
internal/store/items.go:749
↓ 313 callersMethodUpdateItem
(id string, input models.ItemUpdate, opts ...MutationOption)
internal/store/items.go:2302
↓ 308 callersMethodnow
now reads the bus's clock. The seam is nil in production; tests set it so a 90s threshold can be crossed without sleeping through one.
internal/watchevents/heartbeat.go:125
↓ 304 callersFunctionwriteJSON
(w http.ResponseWriter, status int, v interface{})
internal/server/server.go:2934
↓ 303 callersMethodErr
()
internal/store/version_tie_diagnostic_test.go:187
↓ 301 callersMethodCreateCollection
(workspaceID string, input models.CollectionCreate)
internal/store/collections.go:40
↓ 291 callersMethodDriver
Driver returns the driver type.
internal/store/dialect.go:21
↓ 286 callersMethodCommit
Commit commits the fenced transaction.
internal/store/fenced_tx.go:136
↓ 277 callersMethodtext
(n: Node)
web/src/test/identityFenceAst.ts:342
↓ 275 callersFunctionnow
()
internal/store/store.go:1581
↓ 274 callersMethodEncode
Encode writes img to w in the given format ("png" / "jpeg"). JPEG is encoded at quality 85 — small enough for thumbnails, high enough that pixel-level
internal/attachments/processor.go:62
↓ 270 callersMethodexec
(t *testing.T, q string, args ...any)
internal/store/schedules_test.go:85
↓ 270 callersMethodfind
find returns the records containing every one of subs.
internal/materialize/supervisor_test.go:217
↓ 264 callersMethodWriteHeader
(code int)
internal/server/app_api.go:580
↓ 258 callersFunctionclose
()
web/src/lib/collab/patchApply.ts:210
↓ 232 callersFunctionbootstrapFirstUser
(t *testing.T, srv *Server, email, name string)
internal/server/handlers_auth_test.go:20
↓ 232 callersMethodcount
(t *testing.T, q string, args ...any)
internal/store/schedules_test.go:92
↓ 228 callersMethodpost
( url: string, options: { headers?: Record<string, string>; data?: unknown; multipart?: unknown } )
web/e2e/workspace-bundle-roundtrip.spec.ts:63
↓ 224 callersFunctionnewID
()
internal/store/store.go:1577
↓ 219 callersFunctioncreateTestUser
(t *testing.T, s *Store, email, name, password string)
internal/store/users_test.go:12
↓ 218 callersFunctioncancel
()
web/src/lib/chat/longPress.ts:16
↓ 217 callersMethodtest
(n: Node, s: boolean)
web/src/test/identityFenceAst.ts:1128
↓ 214 callersMethodevaluate
(t *testing.T)
internal/decision/runner_test.go:87
↓ 213 callersFunctionrt
TASK-4103 C2b: resolving the outstanding occurrence. Runs on SQLite in make test and on Postgres in make test-pg.
internal/store/schedule_resolve_test.go:17
↓ 206 callersMethodError
()
cmd/pad/cmd_schedule_end.go:47
↓ 205 callersMethodString
()
cmd/pad/bug3476_import_watch_test.go:43
↓ 204 callersFunctioncleanup
()
web/e2e/bug-3204-cursor-snapback.spec.ts:46
↓ 202 callersFunctiondelete
* Soft-delete an attachment by ID. The blob on disk stays put * (content-addressed dedupe means the same hash may still be * referenced) — orpha
web/src/lib/api/client.ts:3674
↓ 200 callersMethodskip
(i int)
internal/store/commitment_cancel_pg_test.go:22
↓ 190 callersMethodDone
()
internal/server/bug3632_account_export_read_ctx_test.go:94
↓ 187 callersMethodCreateSession
CreateSession generates a random session token, stores its SHA-256 hash, and returns the plaintext token (prefixed with "padsess_"). The plaintext is
internal/store/sessions.go:67
↓ 187 callersMethodjoin
(t *testing.T, us ...*models.User)
internal/store/notification_settings_test.go:49
↓ 184 callersMethodBefore
Before returns the last recurrence before the given datetime instance, or time.Time's zero value if no recurrence match. The inc keyword defines what
internal/schedule/internal/rrule/rrule.go:969
↓ 184 callersMethodStat
Stat returns the size in bytes of the blob identified by key. If key is unknown, the returned error wraps ErrNotFound.
internal/attachments/store.go:50
↓ 183 callersFunctiontestServerWithAttachments
testServerWithAttachments returns a fresh test server with the attachment registry wired against an FSStore rooted in t.TempDir(), and (on the pure-Go
internal/server/handlers_attachments_test.go:36
↓ 182 callersFunctioncreateItem
helper: create an item in a collection and return the parsed Item
internal/server/handlers_dashboard_test.go:13
↓ 171 callersMethodhas
(sub string)
internal/collab/task3574_append_failure_test.go:98
↓ 169 callersFunctionbrowserLogin
(page: Page)
web/e2e/lib/collab-helpers.ts:18
↓ 167 callersMethodrequest
* Open the confirmation and resolve when the user answers — the descriptor's * `ctx.confirmDelete`. A no-op that resolves false when the caller may
web/src/lib/attachments/surfaceDeleteConfirm.svelte.ts:54
↓ 164 callersMethodgetWorkspaceID
getWorkspaceID resolves workspace slug/ID from the request. If RequireWorkspaceAccess already resolved the workspace, reads from context. Otherwise fa
internal/server/server.go:3496
↓ 163 callersMethoddelete
(path string)
internal/cli/client.go:3309
↓ 162 callersFunctionrender
(md: string)
web/src/lib/components/share/shareRender.svelte.test.ts:12
↓ 161 callersMethodGetWorkspaceBySlug
(slug string)
internal/store/workspaces.go:270
↓ 161 callersMethodPrintf
(_ context.Context, format string, v ...interface{})
cmd/pad/redis_logger.go:39
↓ 159 callersFunctionWithDispatchInput
WithDispatchInput returns ctx decorated with the original MCP tool- call JSON input map. Called from the registry's tool handler before invoking Dispa
internal/mcp/dispatch.go:55
↓ 158 callersMethodRebind
Rebind converts a query with "?" placeholders to the dialect's format. For SQLite this is a no-op. For PostgreSQL, "?" becomes "$1", "$2", etc.
internal/store/dialect.go:29
↓ 158 callersFunctionnewLinkFix
(t *testing.T, n int)
internal/store/commitment_links_test.go:21
↓ 157 callersMethodDeleteItem
(T, ...store.MutationOption)
internal/appstore/testdata/genericifacebody/x.go:8
next →1–100 of 28,840, ranked by callers