MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 41 callersMethodneed
(u *models.User, query string, mods ...func(context.Context) context.Context)
internal/server/handlers_me_needs_test.go:147
↓ 41 callersFunctionokReply
(body string)
cmd/pad/task4105_remind_schedule_test.go:18
↓ 41 callersMethodrelease
* Drop the lease. `released` is false on a repeat call (no-op). `stackEmpty` * reports whether any lease remains AFTER this release — the caller use
web/src/lib/a11y/viewerBackdrop.ts:37
↓ 41 callersFunctionrestore
* Undo a delete (POST /attachments/{id}/restore). 200 with the row, * restored or already live. 410 `attachment_expired` past the restore * wind
web/src/lib/api/client.ts:3859
↓ 41 callersFunctionrunItemCopy
runItemCopy is the whole command, minus flag binding. Order of operations is load-bearing: 1. Build the request (the SAME body both endpoints take).
cmd/pad/cmd_item.go:2312
↓ 40 callersFunctionLoadStore
LoadStore reads the credentials file and returns a usable CredentialStore. Returns an empty (but non-nil) store if the file doesn't exist — that's not
internal/cli/credentials.go:108
↓ 40 callersFunctionNewErrorResult
NewErrorResult packages an ErrorPayload as an MCP CallToolResult with IsError=true. Both the JSON envelope and a human-readable summary are returned:
internal/mcp/errors.go:385
↓ 40 callersMethodNextAfter
NextAfter returns the first occurrence strictly after t, or found=false when the set is exhausted. A pinned schedule ignores view.
internal/schedule/engine.go:320
↓ 40 callersFunctionbaseOpts
()
cmd/pad/item_copy_test.go:144
↓ 40 callersFunctiondaily
daily is a pinned daily 09:00 UTC rule with a 30 minute lead.
internal/store/schedule_copy_test.go:51
↓ 40 callersMethoddeps
()
cmd/pad/item_copy_test.go:114
↓ 40 callersFunctionmustCollection
(t *testing.T, srv *Server, wsID, name string)
internal/server/authz_cross_workspace_test.go:105
↓ 40 callersFunctionmustWall
(t *testing.T, s string)
internal/schedule/resolve_test.go:17
↓ 40 callersMethodresolvableBody
resolvableBody is a request the copy can actually satisfy: the two needs_value entries the base fixture leaves open are supplied, so the preflight com
internal/server/handlers_items_copy_test.go:111
↓ 40 callersFunctiontestStorePostgres
testStorePostgres creates an isolated test database on the PostgreSQL server by CLONING a per-binary template that has already been migrated. TASK-29
internal/store/store_test.go:193
↓ 40 callersFunctionworkspaceIDForSlug
workspaceIDForSlug looks up the internal UUID for a slug — used by tests that synthesize attachment rows directly via the store (bypassing the upload
internal/server/handlers_storage_test.go:433
↓ 40 callersFunctionworkspaceRole
workspaceRole returns the user's role in the current workspace, as set by RequireWorkspaceAccess. Returns empty string if not set.
internal/server/middleware_auth.go:914
↓ 39 callersMethodListen
Listen builds the HTTP server and binds addr, returning the listener without accepting on it yet. A failure here is the "address already in use" case,
internal/server/server.go:2952
↓ 39 callersMethodMaterialize
(ctx context.Context, job materialize.Job)
internal/server/materialize_recovery.go:65
↓ 39 callersFunctionchatMsg
(id string, seq int64)
cmd/pad/cmd_watch_chat_test.go:95
↓ 39 callersFunctiondialCollab
dialCollab opens a WebSocket against the test server's collab endpoint with the given itemID. Returns the connection and the HTTP response. The respon
internal/server/handlers_collab_test.go:40
↓ 39 callersFunctionnewNotifyFixture
(t *testing.T)
internal/store/notification_settings_test.go:19
↓ 39 callersFunctionnewTransitionTestWorkspace
(t *testing.T, s *Store)
internal/store/status_transitions_test.go:48
↓ 38 callersMethodCreateInvitation
CreateInvitation creates a pending workspace invitation. Generates a 128-bit (16-byte) random code and stores only its SHA-256 hash. The plaintext cod
internal/store/workspace_members.go:1228
↓ 38 callersFunctionNewDispatcher
NewDispatcher creates a Dispatcher with the given store. The delivery client enforces the SSRF guard at connect time, not just at parse time: its dia
internal/webhooks/dispatcher.go:294
↓ 38 callersFunctionNormalizeInstant
NormalizeInstant renders a parsed time as the RFC3339 second it must not fire before, in UTC. SECONDS ARE THE STORED RESOLUTION: the column is compar
internal/store/reminders.go:830
↓ 38 callersMethodRegister
Register adds a set, refusing an invalid one or a duplicate name: a second registration under one name would silently change what stored answers mean.
internal/decision/runner.go:154
↓ 38 callersMethodSubscribe
Subscribe registers a subscriber for the given item and returns a buffered channel of OpEvents. Caller is responsible for calling Unsubscribe (typical
internal/collab/bus.go:108
↓ 38 callersFunctionattachmentsServerOn
BUG-3094: the bundle import's validation-reject rollback soft-deleted only, the fourth member of the class BUG-3087 closed on the cloud auto-create do
internal/server/handlers_import_bundle_husk_test.go:49
↓ 38 callersMethoddo
(t *testing.T, archive bool)
internal/store/schedule_copy_test.go:93
↓ 38 callersFunctionloginTestUserAs
loginTestUserAs is a variant of loginTestUser that takes explicit email/name/password so multiple distinct users can coexist within one test (loginTes
internal/server/handlers_connected_apps_mutations_test.go:415
↓ 38 callersMethodmanaged
managed returns the schedule's managed reminder row.
internal/store/schedules_test.go:73
↓ 38 callersFunctionrefOf
refOf builds a PREFIX-NUMBER string from a fresh item — used by the integration tests since the canonical ref isn't on the model directly. ItemNumber
internal/store/wiki_links_test.go:556
↓ 38 callersFunctionremoteCall
remoteCall runs a pad_item action through the /mcp dispatcher against a handler that records the request and answers 200 {}.
internal/mcp/task4105_schedule_test.go:94
↓ 37 callersMethodError
()
internal/webhooks/validate.go:22
↓ 37 callersMethodListDocumentActivity
(documentID string, params models.ActivityListParams)
internal/store/activities.go:933
↓ 37 callersMethodMoveItem
MoveItem moves an item to a different collection within the same workspace. It updates the collection_id and fields JSON. The item_number is preserved
internal/store/items.go:6246
↓ 37 callersFunctionNewMemorySessionPresence
NewMemorySessionPresence returns an empty in-process registry.
internal/server/session_presence.go:371
↓ 37 callersMethodSetWatchEventsBus
SetWatchEventsBus attaches the watch/nudge notification bus consumed by GET /api/v1/events/stream (TASK-2533). Nil-checked by every producer and by th
internal/server/server.go:1294
↓ 37 callersFunctionchatObject
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_chat_test.go:51
↓ 37 callersMethoddeadlineEvidence
(t *testing.T)
internal/store/schedule_deadline_eval_test.go:42
↓ 37 callersMethodlinkRaw
linkRaw stores a link without the move a link write makes, so a test can start from dates a link does not produce.
internal/store/commitment_links_test.go:75
↓ 37 callersFunctionmeAgendaExec
(t *testing.T, w *agendaWorld, q string, args ...any)
internal/server/handlers_me_agenda_test.go:51
↓ 37 callersFunctionnewMonitorChat
(sink chatSink, printed *recentSet)
cmd/pad/cmd_watch_chat.go:155
↓ 37 callersFunctionnewPlanFixture
(t *testing.T)
internal/store/attachments_copy_plan_test.go:24
↓ 37 callersFunctionnewRestrictedOwnerVisibilityFixture
(t *testing.T)
internal/server/handlers_grant_visibility_test.go:33
↓ 37 callersMethodupdate
(t *testing.T, upd models.ScheduleUpdate)
internal/store/schedules_test.go:53
↓ 36 callersMethodCreateScheduleGate
CreateScheduleGate gates blockedItemID behind blockerItemID. Both ends need edit; access holds the caller's decision, and an end it does not make read
internal/store/commitment_gates.go:119
↓ 36 callersFunctionItemRef
ItemRef returns the reference string (e.g. "TASK-5") for an item, or empty string.
internal/cli/format.go:95
↓ 36 callersMethodSetSessionPresence
SetSessionPresence attaches the live-session registry read by GET /api/v1/sessions and written by GET /api/v1/events/stream (PLAN-2558 S1). Nil-checke
internal/server/server.go:1304
↓ 36 callersMethodUpdateDocument
(id string, input models.DocumentUpdate)
internal/store/documents.go:276
↓ 36 callersFunctionValidateUpload
ValidateUpload combines the sniff result, the client-supplied MIME header, and the filename's extension to produce one of: - (entry, "", nil) — accep
internal/attachments/mime.go:313
↓ 36 callersFunctionarmReminder
(t *testing.T, s *Store, wsID, itemID, at string)
internal/store/reminders_test.go:29
↓ 36 callersFunctionclassifyExecError
classifyExecError turns an exec.Cmd failure (err + stderr) into a structured envelope. lookup is optional — when supplied, no_workspace errors get ava
internal/mcp/errors.go:736
↓ 36 callersFunctioncommitmentBody
()
internal/server/handlers_commitments_test.go:22
↓ 36 callersMethodexec
(q string, args ...any)
internal/server/task3939b_push_fixture_test.go:138
↓ 36 callersFunctionget
(t *testing.T, h http.Handler, path string, hdr map[string]string)
internal/server/middleware_compress_test.go:26
↓ 36 callersMethodinvalidateUserAccess
invalidateUserAccess tells every instance that userID's access or credential changed, so their live connections re-check now. Best-effort: a failed pu
internal/server/access_kick.go:227
↓ 36 callersMethodpublish
(t *testing.T, m map[string]any)
internal/server/handlers_apps_install_test.go:144
↓ 36 callersFunctionroot
()
web/src/lib/components/common/Lightbox.svelte.test.ts:215
↓ 36 callersFunctionstdioCall
stdioCall runs a pad_item action against a recording dispatcher, as the stdio server does, and returns what reached it.
internal/mcp/task4105_schedule_test.go:77
↓ 35 callersMethodEventsSince
EventsSince returns buffered notifications with ID > sinceID, for Last-Event-ID resume. Returns nil if sinceID has been evicted from the buffer (gap t
internal/watchevents/watchevents.go:354
↓ 35 callersFunctionNewPostgres
NewPostgres returns a *store.Store backed by an ISOLATED PostgreSQL database when PAD_TEST_POSTGRES_URL is set, and t.Skip()s the test otherwise. It l
internal/store/storetest/postgres.go:70
↓ 35 callersMethodStart
Start begins probing in the background. It runs one probe SYNCHRONOUSLY before returning, so a server that has finished starting has a real answer rat
internal/server/redis_health.go:142
↓ 35 callersFunctionaddDevice
addDevice registers a push device for the user the way the (later) register endpoint will: one row bound to a fresh session.
internal/store/notification_settings_test.go:34
↓ 35 callersFunctionbearerHdr
(tok string)
internal/server/handlers_role_park_test.go:182
↓ 35 callersFunctionmax
()
web/e2e/bug-2182-pane-back-scroll.spec.ts:307
↓ 35 callersFunctionnext
()
web/src/lib/components/common/Lightbox.svelte.test.ts:5676
↓ 35 callersFunctionparseTimePtr
(s *string)
internal/store/store.go:1666
↓ 35 callersFunctionrecordingStub
recordingStub answers every request through reply and records it.
cmd/pad/task4105_remind_oneshot_test.go:16
↓ 35 callersFunctiontimelineItemWithStructured
BUG-2301: `pad item note` / `pad item decide` wrote structured entries that no web surface rendered — the renderer shipped in c61f4cda and was deleted
internal/server/handlers_timeline_structured_test.go:24
↓ 35 callersFunctiontzCLIWithLocal
tzCLIWithLocal sets the machine zone BEFORE the stub server starts: its goroutines read time.Local, so a later write is a data race (TASK-4101). The z
cmd/pad/task4101_timezone_test.go:57
↓ 35 callersFunctionwriteStoreErrorR
writeStoreErrorR answers a failed store call with the status, code and message the caller chose, unless the database was merely busy (see store.IsDBBu
internal/server/server.go:3220
↓ 34 callersMethodCreateOAuthConnection
CreateOAuthConnection inserts a new connection row. Idempotent in the sense that callers should INSERT once per /authorize/decide; if the same request
internal/store/oauth_connections.go:217
↓ 34 callersMethodDeleteAccountAtomic
DeleteAccountAtomic deletes a user and all their owned workspaces in a single transaction. If any step fails, the entire operation is rolled back and
internal/store/users.go:1555
↓ 34 callersMethodImportWorkspaceWithReport
ImportWorkspaceWithReport imports an archive as a new workspace and reports what it normalised on the way in.
internal/store/export.go:743
↓ 34 callersMethodIsDisabled
()
internal/models/user.go:137
↓ 34 callersFunctionParseCollectionTraits
ParseCollectionTraits decodes a stored traits JSON blob. An empty or "null" blob yields the zero value with no error — a collection that declares no t
internal/models/collection_traits.go:176
↓ 34 callersMethodRemoveWorkspaceMember
RemoveWorkspaceMember removes a user from a workspace. The user's workspace tab goes with it when no grant keeps them in the workspace (TASK-3256).
internal/store/workspace_members.go:333
↓ 34 callersFunctionWithTokenAllowedWorkspaces
WithTokenAllowedWorkspaces returns ctx decorated with the OAuth token's workspace allow-list set at consent time (TASK-952). The list is either a set
internal/server/context.go:152
↓ 34 callersMethodWrite
(p []byte)
internal/collab/task3574_append_failure_test.go:84
↓ 34 callersMethodabort
()
web/src/lib/api/importUpload.test.ts:26
↓ 34 callersFunctioncommitmentPath
(f *schedHTTP)
internal/server/handlers_commitments_test.go:16
↓ 34 callersFunctionnewProvisionEnv
(t *testing.T)
internal/server/handlers_apps_provision_test.go:23
↓ 34 callersMethodplan
(t *testing.T, req AttachmentCopyRequest)
internal/store/attachments_copy_plan_test.go:96
↓ 34 callersFunctionvalidationFailedResult
───────────────────────────────────────────────────────────────────── Helpers for non-HTTP error paths (TASK-1077 — replace plain-string NewToolResult
internal/mcp/errors.go:1940
↓ 34 callersMethodwrite
write answers the request with this error.
internal/server/handlers_items.go:970
↓ 33 callersMethodError
()
internal/decision/typesafe.go:110
↓ 33 callersMethodExecContext
(ctx context.Context, q string, args []driver.NamedValue)
internal/store/nulguard.go:453
↓ 33 callersFunctionGetTemplate
GetTemplate returns the workspace template with the given name, or nil if no template with that name exists.
internal/collections/templates.go:713
↓ 33 callersMethodResolveItemIncludeDeleted
ResolveItemIncludeDeleted is like ResolveItem but includes soft-deleted items.
internal/store/items.go:1016
↓ 33 callersMethodWriteHeader
(status int)
internal/mcp/response_cap.go:204
↓ 33 callersMethodaccount
account creates a verified password account with the given providers linked (each bound to "<provider>-<email>").
internal/server/task4745_pending_link_test.go:44
↓ 33 callersMethodacquireWorkspaceSeqLock
acquireWorkspaceSeqLock takes a Postgres advisory transaction lock keyed on the workspace ID so concurrent seq-bumping mutations serialize. The lock a
internal/store/items.go:127
↓ 33 callersFunctionbearerCall
(t *testing.T, srv *Server, method, path, token string, body []byte)
internal/server/handlers_watches_test.go:62
↓ 33 callersFunctiondoAuthedRequest
doAuthedRequest is like doRequest but with a session cookie + the matching User-Agent attached (SessionAuth UA-binding, see middleware_auth.go:186).
internal/server/handlers_oauth_test.go:2459
↓ 33 callersMethodexpect
(t *testing.T, what string, i int, acc models.CommitmentAccess, state, outcome string)
internal/store/commitment_gates_outcome_test.go:73
↓ 33 callersFunctionimageRef
(id string)
internal/store/attachments_copy_plan_test.go:105
↓ 33 callersFunctionmust
(t *testing.T, err error)
internal/server/task3939b_push_fixture_test.go:115
↓ 33 callersFunctionnewOAuthSession
(t *testing.T, srv *Server)
internal/server/task3321_u2a_audience_test.go:44
← previousnext →401–500 of 31,685, ranked by callers