MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 37 callersFunctionsetupPushTest
setupPushTest mirrors setupItemOpenTest (item_open_test.go): points getClient()/getWorkspace() at a fake httptest server via the same urlFlag/workspac
cmd/pad/cmd_push_test.go:14
↓ 36 callersMethodError
()
internal/decision/typesafe.go:108
↓ 36 callersMethodGetPlatformSetting
GetPlatformSetting returns a single platform setting value, or empty string if not set.
internal/store/platform_settings.go:10
↓ 36 callersFunctionItemRef
ItemRef returns the reference string (e.g. "TASK-5") for an item, or empty string.
internal/cli/format.go:95
↓ 36 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:106
↓ 36 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
↓ 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 callersMethoddeadlineEvidence
(t *testing.T)
internal/store/schedule_deadline_eval_test.go:42
↓ 36 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
↓ 36 callersMethodexec
(q string, args ...any)
internal/server/task3939b_push_fixture_test.go:138
↓ 36 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
↓ 36 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
↓ 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:347
↓ 35 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:6108
↓ 35 callersFunctionParseWall
ParseWall reads "2006-01-02" (all-day), "2006-01-02T15:04" or "2006-01-02T15:04:05". A zone, a Z or an offset is refused: a Wall has none. Years outsi
internal/schedule/wall.go:28
↓ 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 callersMethodbootstrap
(t *testing.T, tok string, headers map[string]string)
internal/server/bootstrap_agenda_test.go:60
↓ 35 callersMethodmanaged
managed returns the schedule's managed reminder row.
internal/store/schedules_test.go:73
↓ 35 callersFunctionmustCollection
(t *testing.T, srv *Server, wsID, name string)
internal/server/authz_cross_workspace_test.go:105
↓ 35 callersFunctionnext
()
web/src/lib/components/common/Lightbox.svelte.test.ts:5664
↓ 35 callersFunctionparseTimePtr
(s *string)
internal/store/store.go:1603
↓ 35 callersFunctionroot
()
web/src/lib/components/common/Lightbox.svelte.test.ts:215
↓ 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 callersMethodupdate
(t *testing.T, upd models.ScheduleUpdate)
internal/store/schedules_test.go:53
↓ 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 callersFunctionmustWorkspace
(t *testing.T, srv *Server, name, ownerID string)
internal/server/authz_cross_workspace_test.go:93
↓ 34 callersMethodplan
(t *testing.T, req AttachmentCopyRequest)
internal/store/attachments_copy_plan_test.go:96
↓ 34 callersMethodwrite
write answers the request with this error.
internal/server/handlers_items.go:950
↓ 33 callersFunctionDecodeJSONKeepingNumbers
DecodeJSONKeepingNumbers is DecodeFieldsJSON for any target: v must be a pointer, as for json.Unmarshal. The range check covers numbers held in interf
internal/models/fields_json.go:45
↓ 33 callersMethodImportWorkspaceWithReport
ImportWorkspaceWithReport imports an archive as a new workspace and reports what it normalised on the way in.
internal/store/export.go:652
↓ 33 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
↓ 33 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
↓ 33 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:1244
↓ 33 callersMethodexpect
(t *testing.T, what string, i int, acc models.CommitmentAccess, state, outcome string)
internal/store/commitment_gates_outcome_test.go:73
↓ 33 callersFunctionget
(t *testing.T, h http.Handler, path string, hdr map[string]string)
internal/server/middleware_compress_test.go:26
↓ 33 callersFunctionimageRef
(id string)
internal/store/attachments_copy_plan_test.go:105
↓ 33 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
↓ 33 callersFunctionmeAgendaExec
(t *testing.T, w *agendaWorld, q string, args ...any)
internal/server/handlers_me_agenda_test.go:51
↓ 33 callersFunctionmust
(t *testing.T, err error)
internal/server/task3939b_push_fixture_test.go:115
↓ 33 callersFunctionnewRestrictedOwnerVisibilityFixture
(t *testing.T)
internal/server/handlers_grant_visibility_test.go:33
↓ 33 callersFunctionnowTS
nowTS is the instant a tick would pass in. Taken well after `past` and well before `future`, so the two fixtures sit on opposite sides of it with no d
internal/store/reminders_test.go:47
↓ 33 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:192
↓ 33 callersFunctiontzRun
(t *testing.T, root *cobra.Command, args ...string)
cmd/pad/task4101_timezone_test.go:78
↓ 33 callersMethodworkspace
workspace makes a workspace owned (and so a member as owner) by owner.
internal/server/handlers_me_needs_test.go:55
↓ 32 callersMethodCreateReminder
CreateReminder creates a target-only run-once commitment and returns its alarm.
internal/store/reminders.go:145
↓ 32 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:118
↓ 32 callersMethodGetWorkspaceByID
(id string)
internal/store/workspaces.go:302
↓ 32 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
↓ 32 callersFunctionValidateFields
ValidateFields checks field values against the collection schema. It validates required fields are present, types are correct, and select values are w
internal/items/validate.go:81
↓ 32 callersMethodcollection
(ws *models.Workspace, name string, asks bool)
internal/server/handlers_me_needs_test.go:76
↓ 32 callersMethodcurrentGen
NOTE: callerIsGone already exists in this package, added by BUG-2751 for the resume settle path, and is reused here rather than duplicated. Its reason
internal/watchevents/heartbeat.go:517
↓ 32 callersFunctionmax
()
web/e2e/bug-2182-pane-back-scroll.spec.ts:307
↓ 32 callersFunctionnfxDay
(d int)
internal/server/handlers_me_needs_test.go:178
↓ 32 callersFunctionpostOAuthForm
postOAuthForm POSTs an x-www-form-urlencoded body without any auth (used for /oauth/revoke + /oauth/token, where client_id rides in the form for publi
internal/server/handlers_oauth_test.go:2639
↓ 32 callersFunctiontask3867Want
(t *testing.T, rr *httptest.ResponseRecorder, status int, code string)
internal/server/task3867_token_access_test.go:26
↓ 32 callersFunctionwriteCredsFile
(t *testing.T, home, body string)
internal/cli/credentials_test.go:21
↓ 31 callersMethodCreateActivity
(a models.Activity)
internal/store/activities.go:66
↓ 31 callersFunctionNoul
Noul builds a Noul question — the probability that a statement is true. trueDesc and falseDesc are optional; pass "" for both to work from the instruc
internal/decision/decision.go:90
↓ 31 callersMethodResolveItemIncludeDeleted
ResolveItemIncludeDeleted is like ResolveItem but includes soft-deleted items.
internal/store/items.go:1010
↓ 31 callersMethodSetParentLink
--- Phase Links --- SetParentLink sets the parent for an item. Since an item can belong to at most one parent, this deletes any existing parent link f
internal/store/items.go:4574
↓ 31 callersMethodSetPlatformSetting
SetPlatformSetting upserts a platform setting.
internal/store/platform_settings.go:26
↓ 31 callersMethodSubscribeIfAllowed
SubscribeIfAllowed atomically checks the per-workspace subscriber limit and, only if it is satisfied, subscribes in the same critical section. Return
internal/events/bus.go:258
↓ 31 callersMethodWrite
(p []byte)
internal/collab/task3574_append_failure_test.go:84
↓ 31 callersMethodcallCount
()
internal/server/handlers_account_test.go:54
↓ 31 callersFunctioncommitmentBody
()
internal/server/handlers_commitments_test.go:22
↓ 31 callersMethodcontext
()
internal/webhooks/dispatcher.go:248
↓ 31 callersMethodcopy
(t *testing.T, req CrossWorkspaceCopyRequest)
internal/store/items_cross_workspace_copy_test.go:56
↓ 31 callersMethodimportBundle
(t *testing.T, data *models.WorkspaceExport, name string)
internal/store/schedule_carry_test.go:41
↓ 31 callersFunctionnewMockStore
(hooks []models.Webhook)
internal/webhooks/dispatcher_test.go:51
↓ 31 callersFunctionnewOAuthSession
(t *testing.T, srv *Server)
internal/server/task3321_u2a_audience_test.go:44
↓ 31 callersFunctionnewShareAssetFixture
(t *testing.T)
internal/server/handlers_share_attachments_test.go:115
↓ 31 callersMethodpublish
(t *testing.T, m map[string]any)
internal/server/handlers_apps_install_test.go:143
↓ 30 callersMethodExecContext
(ctx context.Context, q string, args []driver.NamedValue)
internal/store/nulguard.go:453
↓ 30 callersMethodGetDecisionJob
GetDecisionJob returns a job's row, or nil when no evaluation is owed.
internal/store/decisions.go:704
↓ 30 callersMethodListDocumentActivity
(documentID string, params models.ActivityListParams)
internal/store/activities.go:933
↓ 30 callersMethodListItemVersionsResolved
ListItemVersionsResolved returns versions with full content (diffs resolved). Requires the current item content to reconstruct diff-based versions. c
internal/store/items.go:6637
↓ 30 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
↓ 30 callersMethodResolve
Resolve returns the store responsible for key, or an error if no matching backend is registered. The key format is "<prefix>:<rest>".
internal/attachments/registry.go:63
↓ 30 callersMethodSetMetrics
SetMetrics attaches Prometheus metrics to the server. Must be called before the first request is served. Side effect (TASK-961): when both metrics AN
internal/server/server.go:1440
↓ 30 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
↓ 30 callersMethodabort
()
web/src/lib/api/importUpload.test.ts:26
↓ 30 callersFunctionappGet
(srv *Server, path, token string)
internal/server/task3401_app_api_test.go:184
↓ 30 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:699
↓ 30 callersFunctionnewCopyFixture
(t *testing.T)
internal/store/items_cross_workspace_copy_test.go:35
↓ 30 callersFunctionokReply
(body string)
cmd/pad/task4105_remind_schedule_test.go:18
↓ 30 callersFunctionread
(key: string)
web/src/lib/chat/chatRecords.ts:27
↓ 30 callersFunctionresolve
(id: string)
web/src/lib/collections/relationGroups.test.ts:60
↓ 30 callersMethodschedule
Arm (or re-arm) the idle debounce to flush `markdown` for `ctx`. No-op * when recovering or `ctx` is null. Cancels any prior pending flush first,
web/src/lib/collab/collabFlush.svelte.ts:129
↓ 30 callersFunctiontestServerWithPresence
testServerWithPresence gives a server both the watch bus and the presence registry — the production pairing (cmd_server.go wires them on adjacent line
internal/server/handlers_sessions_test.go:19
↓ 30 callersFunctionvalidationFailedResult
───────────────────────────────────────────────────────────────────── Helpers for non-HTTP error paths (TASK-1077 — replace plain-string NewToolResult
internal/mcp/errors.go:1863
↓ 30 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:3127
↓ 29 callersMethodAsk
Ask answers every question about the same state in ONE request, retried on transient provider failures. state is marshalled as JSON, so a string, a m
internal/decision/decision.go:312
↓ 29 callersMethodBeginFenced
BeginFenced opens a FencedTx. It is called only by internal/appstore; a test fails if any other package references it.
internal/store/fenced_tx.go:97
↓ 29 callersMethodIsDisabled
()
internal/models/user.go:102
↓ 29 callersMethodRestoreItem
RestoreItem un-archives a soft-deleted item and bumps the workspace-scoped seq so delta-sync clients re-materialize the row. Same lock + subquery shap
internal/store/items.go:3973
↓ 29 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
internal/mcp/chatgpt_security.go:111
↓ 29 callersMethodSubscribeAndReplaySince
SubscribeAndReplaySince atomically subscribes AND captures every buffered notification with ID > sinceID, under the SAME lock. Subscribing and reading
internal/watchevents/watchevents.go:337
← previousnext →401–500 of 28,840, ranked by callers