MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,743 in github.com/PerpetualSoftware/pad

↓ 10,559 callersMethodFatalf
(format string, args ...any)
internal/store/storetest/writecapture_test.go:171
↓ 5,323 callersMethodFatal
(args ...any)
internal/store/storetest/writecapture_test.go:176
↓ 3,063 callersMethodHelper
()
internal/store/storetest/pgtrace_test.go:16
↓ 2,632 callersMethodString
()
internal/server/token_reaper_test.go:27
↓ 2,324 callersFunctionappend
(char: string)
web/src/lib/attachments/csv.ts:38
↓ 1,772 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,577 callersMethodq
q rebinds a query to the store's dialect (converts "?" to "$1", "$2", etc. for PostgreSQL).
internal/store/store.go:1636
↓ 1,512 callersFunctionmake
(field: object, status: string)
web/src/lib/calendar/monthGrid.test.ts:67
↓ 1,426 callersMethodScan
(dest ...interface{})
internal/store/api_tokens.go:440
↓ 1,368 callersFunctiontestServer
(t *testing.T)
internal/server/server_test.go:20
↓ 1,355 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:24
↓ 1,304 callersMethodExec
(query string, args ...any)
internal/store/store.go:996
↓ 1,300 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,204 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
↓ 1,188 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:327
↓ 1,057 callersMethodQueryRow
(query string, args ...any)
internal/store/items.go:4840
↓ 1,039 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:441
↓ 970 callersMethodIs
Is makes errors.Is(err, ErrCapHit) true for any *CapError.
internal/schedule/caps.go:97
↓ 836 callersFunctiondoRequest
(srv *Server, method, path string, body interface{})
internal/server/server_test.go:41
↓ 790 callersMethodSet
Set replaces the session workspace. Pass an empty string to clear.
internal/mcp/workspace.go:79
↓ 775 callersFunctiondescribe
(n: Node)
web/src/lib/components/items/childIdentityFencePopulation.test.ts:774
↓ 771 callersFunctioncreateTestWorkspace
(t *testing.T, s *Store, name string)
internal/store/store_test.go:384
↓ 730 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
↓ 730 callersMethodUnlock
()
internal/attachments/inflight.go:58
↓ 725 callersFunctionparseJSON
(t *testing.T, rr *httptest.ResponseRecorder, v interface{})
internal/server/server_test.go:65
↓ 622 callersMethodDB
DB returns the underlying *sql.DB (for use in migrations/testing).
internal/store/store.go:403
↓ 620 callersMethodCreateItem
(workspaceID, collectionID string, input models.ItemCreate, opts ...store.MintOption)
internal/appstore/testdata/ifacedecl/x.go:11
↓ 607 callersMethodFormat
Format writes Redacted for every verb.
internal/secret/secret.go:68
↓ 605 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
↓ 604 callersMethodpush
(target string, opts *http.PushOptions)
internal/server/flush_error_writer.go:88
↓ 584 callersFunctioncreateTestItem
(t *testing.T, s *Store, workspaceID, collectionID, title, content string)
internal/store/items_test.go:27
↓ 575 callersMethodQuery
(query string, args ...any)
internal/store/items.go:5914
↓ 550 callersMethodError
()
internal/server/handlers_collab.go:531
↓ 547 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
↓ 534 callersMethodfn
(name string)
internal/materialize/materialize.go:283
↓ 528 callersFunctioncreateTestCollection
--- Collection helpers ---
internal/store/items_test.go:15
↓ 524 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
↓ 481 callersMethodCreateUser
CreateUser creates a new user with a hashed password.
internal/store/users.go:171
↓ 476 callersMethodget
( url: string, options?: { headers?: Record<string, string> } )
web/e2e/workspace-bundle-roundtrip.spec.ts:67
↓ 463 callersFunctioncreateWSWithCollections
createWSWithCollections creates a workspace and returns its slug. The workspace will have default collections seeded automatically.
internal/server/handlers_items_test.go:40
↓ 446 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
↓ 441 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
internal/server/server.go:2918
↓ 428 callersMethodHeader
()
internal/server/app_api.go:583
↓ 422 callersFunctionwriteError
(w http.ResponseWriter, status int, code, message string)
internal/server/server.go:3079
↓ 407 callersMethodRollback
Rollback abandons the fenced transaction. It is safe to defer after a successful Commit.
internal/store/fenced_tx.go:146
↓ 402 callersFunctiondoRequestWithCookie
doRequestWithCookie is like doRequest but adds a session cookie.
internal/server/handlers_auth_test.go:638
↓ 395 callersMethodError
()
internal/store/limits.go:252
↓ 389 callersMethodGetItem
(id string)
internal/store/items.go:755
↓ 388 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:3142
↓ 382 callersMethodCreateWorkspace
CreateWorkspace mints a workspace against the pool. Callers already inside a transaction want createWorkspaceQ instead. With WithPlanLimit() the mint
internal/store/workspaces.go:102
↓ 381 callersFunctionnewSchedFixture
(t *testing.T)
internal/store/schedules_test.go:25
↓ 372 callersMethodresolve
(t *testing.T, item *models.Item, in ResolveInput, now string)
internal/store/schedule_resolve_test.go:67
↓ 354 callersMethodCreateCollection
(workspaceID string, input models.CollectionCreate)
internal/store/collections.go:41
↓ 352 callersMethodUpdateItem
(id string, input models.ItemUpdate, opts ...MutationOption)
internal/store/items.go:2308
↓ 350 callersMethodBegin
()
internal/store/nultriggers_test.go:558
↓ 342 callersMethodok
(t *testing.T, u *models.User, query string)
internal/server/handlers_agenda_test.go:85
↓ 339 callersMethodErr
()
internal/store/version_tie_diagnostic_test.go:187
↓ 323 callersFunctionwriteJSON
(w http.ResponseWriter, status int, v interface{})
internal/server/server.go:3027
↓ 322 callersMethodDriver
Driver returns the driver type.
internal/store/dialect.go:21
↓ 321 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
↓ 311 callersFunctionnow
()
internal/store/store.go:1644
↓ 309 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
↓ 308 callersMethodCommit
Commit commits the fenced transaction.
internal/store/fenced_tx.go:136
↓ 308 callersMethodEqual
Equal compares the secret with given in time that depends only on their lengths (subtle.ConstantTimeCompare): the length is not treated as secret.
internal/secret/secret.go:57
↓ 306 callersMethodexec
(t *testing.T, q string, args ...any)
internal/store/schedules_test.go:85
↓ 298 callersMethodfind
find returns the records containing every one of subs. Each record is matched with a trailing space, so a sub ending in a space (pidAttr) matches an a
internal/materialize/supervisor_test.go:219
↓ 295 callersMethodWriteHeader
(code int)
internal/server/app_api.go:585
↓ 286 callersMethodtext
(n: Node)
web/src/test/identityFenceAst.ts:342
↓ 273 callersFunctionclose
()
web/src/lib/collab/patchApply.ts:210
↓ 269 callersFunctionrt
(s string)
internal/store/schedule_resolve_test.go:31
↓ 261 callersFunctionbootstrapFirstUser
(t *testing.T, srv *Server, email, name string)
internal/server/handlers_auth_test.go:20
↓ 256 callersMethodError
()
cmd/pad/cmd_token.go:430
↓ 252 callersFunctioncreateTestUser
(t *testing.T, s *Store, email, name, password string)
internal/store/users_test.go:12
↓ 251 callersFunctionnewID
()
internal/store/store.go:1640
↓ 248 callersMethodcount
(t *testing.T, q string, args ...any)
internal/store/schedules_test.go:92
↓ 245 callersMethodString
()
cmd/pad/bug3476_import_watch_test.go:43
↓ 237 callersMethodpost
( url: string, options: { headers?: Record<string, string>; data?: unknown; multipart?: unknown } )
web/e2e/workspace-bundle-roundtrip.spec.ts:63
↓ 233 callersFunctioncancel
()
web/src/lib/chat/longPress.ts:16
↓ 232 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:3845
↓ 227 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:190
↓ 226 callersMethodtest
(n: Node, s: boolean)
web/src/test/identityFenceAst.ts:1128
↓ 222 callersMethodevaluate
(t *testing.T)
internal/decision/runner_test.go:87
↓ 221 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
↓ 219 callersFunctioncleanup
()
web/e2e/bug-3204-cursor-snapback.spec.ts:46
↓ 212 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
↓ 211 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
↓ 206 callersMethodskip
(i int)
internal/store/commitment_cancel_pg_test.go:22
↓ 202 callersMethodDone
()
internal/server/bug3632_account_export_read_ctx_test.go:94
↓ 196 callersMethodjoin
(t *testing.T, us ...*models.User)
internal/store/notification_settings_test.go:49
↓ 194 callersMethodBefore
Before reports whether w is an earlier reading than o, in wall order. An all-day Wall reads as 00:00 of its date. Wall order is not instant order: acr
internal/schedule/wall.go:75
↓ 193 callersMethodGetUser
GetUser retrieves a user by ID.
internal/store/users.go:210
↓ 191 callersFunctionnewLinkFix
(t *testing.T, n int)
internal/store/commitment_links_test.go:21
↓ 190 callersFunctioncreateItem
helper: create an item in a collection and return the parsed Item
internal/server/handlers_dashboard_test.go:13
↓ 183 callersMethodGetWorkspaceBySlug
(slug string)
internal/store/workspaces.go:272
↓ 182 callersFunctionrender
(md: string)
web/src/lib/components/share/shareRender.svelte.test.ts:12
↓ 179 callersMethodhas
(sub string)
internal/collab/task3574_append_failure_test.go:98
↓ 178 callersMethoddelete
(path string)
internal/cli/client.go:3724
↓ 177 callersFunctionbrowserLogin
(page: Page)
web/e2e/lib/collab-helpers.ts:18
↓ 176 callersMethoditem
item creates an open item; assignee may be nil. created pins created_at.
internal/server/handlers_me_needs_test.go:91
↓ 175 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
next →1–100 of 31,743, ranked by callers