MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 18 callersMethoddo
do sends as the owner. A string body is sent verbatim.
internal/server/handlers_commitments_http_test.go:75
↓ 18 callersFunctionelapsedOffset
(secs int64)
internal/store/schedule_link_import_test.go:290
↓ 18 callersMethodgetItemTx
getItemTx is the in-transaction variant of GetItem. Used by UpdateItemWithPreCheck to re-read the parent under the workspace + parent-children locks s
internal/store/items.go:777
↓ 18 callersFunctionhasFlagPair
(args []string, flag, val string)
internal/mcp/task4105_schedule_test.go:227
↓ 18 callersMethodheldTotal
heldTotal returns the number of held slots. Backs pad_stream_connections_active as a scrape-time collector — see metrics.RegisterStreamConnectionsColl
internal/server/stream_admission.go:147
↓ 18 callersMethodhooksAt
(path string)
internal/server/handlers_apps_delivery_test.go:79
↓ 18 callersFunctionintParam
intParam is numericInput on input[key], with the parameter named in the error (BUG-4061).
internal/mcp/dispatch_http_routes.go:2197
↓ 18 callersMethodinvite
(email, role string)
internal/server/my_invitations_test.go:26
↓ 18 callersMethoditem
item creates an item and, when sc is non-nil, its schedule.
internal/server/handlers_agenda_test.go:53
↓ 18 callersMethoditem
(t *testing.T, title, content string)
internal/server/materialize_recovery_test.go:122
↓ 18 callersMethodlinked
(t *testing.T, userID, provider string)
internal/server/task4745_pending_link_test.go:157
↓ 18 callersMethodlog
(msg string, args ...any)
internal/server/events_publish_test.go:19
↓ 18 callersMethodmark
()
internal/server/home_hint_hub_test.go:48
↓ 18 callersMethodnaive
naive labels the reading as UTC, giving a time that orders and subtracts like the wall clock and that no DST rule can bend.
internal/schedule/wall.go:65
↓ 18 callersFunctionnewClearFixture
(t *testing.T)
internal/mcp/dispatch_http_clear_assignment_test.go:49
↓ 18 callersFunctionnewConsentEnv
(t *testing.T, mayCreate bool)
internal/server/handlers_workspace_create_consent_test.go:68
↓ 18 callersFunctionparseItemRef
parseItemRef parses "PREFIX-123" into ("PREFIX", 123, true). Returns false if the string is not a valid item ref. Case-insensitive: "task-5", "Task-5"
internal/store/items.go:1060
↓ 18 callersMethodpatch
(t *testing.T, body map[string]any)
internal/server/plan3578_patch_test.go:42
↓ 18 callersMethodpinScheduleTx
pinScheduleTx holds the item, the workspace and the schedule for the rest of the transaction, in that order, in one statement: the same shape as a fir
internal/store/schedule_resolve.go:1116
↓ 18 callersFunctionr
()
web/src/lib/components/editor/extensions/flankingMarks.svelte.test.ts:89
↓ 18 callersMethodrenegotiateCommitmentAt
(workspaceID, itemID, actor string, in models.CommitmentRenegotiateInput, nowT time.Time, expectedAssignee *st
internal/store/commitment_renegotiate.go:33
↓ 18 callersFunctionrequireAdmin
--- Helpers ---
internal/server/handlers_admin_users.go:923
↓ 18 callersFunctionrequireSafeScriptEnv
requireSafeScriptEnv is the harness guard every install-refresh exec in this package passes through BEFORE the script runs (BUG-4066 incident). A test
internal/buildtools/bug4066_harness_guard_test.go:99
↓ 18 callersMethodseedNeverAttached
seedNeverAttached inserts a never-attached attachment row aged past any grace cutoff a test will use.
internal/store/attachments_gc_claim_test.go:42
↓ 18 callersMethodseriesSchedule
seriesSchedule replaces item i's schedule with a native daily one.
internal/store/commitment_move_series_test.go:17
↓ 18 callersMethodtick
tick fires what is due at ts and returns the fired rows of one workspace.
internal/store/schedule_copy_test.go:113
↓ 18 callersFunctiontz4101User
TASK-4101: users.timezone. The zone is a user setting; an unset one computes in UTC. These pin the API, the conditional first-sign-in write, the pair-
internal/server/task4101_timezone_test.go:22
↓ 17 callersFunctionAsValidationError
AsValidationError reports whether err is (or wraps) a ValidationError, and returns it. Doors use this instead of a bare errors.As so the Reason-not- E
internal/store/validation_error.go:45
↓ 17 callersMethodCreateOAuthPendingLink
CreateOAuthPendingLink records a pending link and returns its plaintext token (padpl_ + 64 hex). Only the SHA-256 is stored. Every older unused token
internal/store/oauth_pending_links.go:36
↓ 17 callersMethodCreateWebhook
CreateWebhook registers a new webhook for a workspace. With WithPlanLimit() the workspace's webhooks cap is counted in the insert's transaction, unde
internal/store/webhooks.go:16
↓ 17 callersMethodDelete
Delete removes the blob identified by key. Deleting a missing key is NOT an error — callers (e.g. the orphan GC) treat it as the success case.
internal/attachments/store.go:55
↓ 17 callersMethodEvaluate
Evaluate asks the named set about the item, unless answers for its current state are already stored. It reports whether the provider was called.
internal/decision/runner.go:585
↓ 17 callersMethodFetch
(ctx context.Context, args []string)
internal/mcp/resources.go:50
↓ 17 callersMethodGetCrossWorkspaceBacklinks
GetCrossWorkspaceBacklinks returns inbound `[[ws::REF]]` backlinks pointing at the queried target (`targetWorkspaceID`, `targetRef`) from EVERY OTHER
internal/store/wiki_links.go:1447
↓ 17 callersMethodIsUnclaimed
IsUnclaimed reports whether the account is an agent's unclaimed account.
internal/models/user.go:108
↓ 17 callersFunctionNewRedisSessionPresence
NewRedisSessionPresence returns a shared registry backed by client. The client is the SAME one the watch bus uses (cmd/pad/cmd_server.go dials once o
internal/server/session_presence_redis.go:420
↓ 17 callersFunctionNewServer
NewServer constructs a pad MCP server. Call Run(ctx) to start it. The returned Server is wired with tool capabilities advertised but no tools registe
internal/mcp/server.go:58
↓ 17 callersFunctionOpenChatSeen
OpenChatSeen decides whether this process keeps a chat-seen log. It writes nothing yet: the file is created on the first line, so a session that never
internal/cli/chat_seen.go:107
↓ 17 callersMethodOpenWorkspaceTab
OpenWorkspaceTab adds a workspace to the user's open set. - Already open: a durable open pins an ephemeral tab (PLAN-3002 Q9); an ephemeral open of a
internal/store/workspace_tabs.go:188
↓ 17 callersMethodPath
Path is the log's path, or "" when there is none.
internal/cli/chat_seen.go:125
↓ 17 callersMethodSearchItems
(workspaceID, query string)
internal/store/items.go:4179
↓ 17 callersFunctionSniffMIME
SniffMIME detects the MIME type from the leading bytes of a payload using net/http's stdlib detector (the same RFC 6838 algorithm browsers use). The r
internal/attachments/mime.go:249
↓ 17 callersMethodUpdateSchedule
UpdateSchedule applies a partial update. It returns (nil, nil) when the item has no schedule. A timing edit (dtstart, tz, floating, rrule, rdates, ex
internal/store/schedules.go:752
↓ 17 callersMethodaccessKicks
accessKicks returns the server's kicker, created on first use so every constructor path (tests included) gets one.
internal/server/access_kick.go:135
↓ 17 callersFunctionbodyDecodesNUL
bodyDecodesNUL reports only the NUL half of scanRequestBody.
internal/server/middleware_request_text.go:495
↓ 17 callersFunctioncommitmentBase
--- Item schedules and the agenda --- Each method returns the server's body as raw JSON so a field the server adds later is not dropped on the way to
internal/cli/client_schedule.go:14
↓ 17 callersFunctioncompileScheduleSpec
compileScheduleSpec is the ONLY door a schedule's timing text goes through, called by CreateSchedule and UpdateSchedule, so no caller can store a rule
internal/store/schedules.go:130
↓ 17 callersMethodcreate
(body any)
internal/server/handlers_commitments_http_test.go:151
↓ 17 callersFunctioncreateHeadlessEditor
(markdownOverrides: Record<string, unknown> = {})
web/src/lib/collab/materializer/headless.ts:115
↓ 17 callersMethoddeadline
deadline gives schedule i a hard deadline at its occurrence.
internal/store/commitment_gates_outcome_test.go:32
↓ 17 callersFunctiondecodeErrorCode
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_items_bug3133_pending_guard_test.go:66
↓ 17 callersFunctiondecodeItemFields
(t *testing.T, fieldsJSON string)
internal/server/handlers_items_fieldpatch_test.go:27
↓ 17 callersFunctiondeleteCollection
( fixture: SuiteFixture, request: APIRequestContext, slug: string )
web/e2e/lib/attachment-viewer.ts:539
↓ 17 callersFunctiondoRequestFromRemoteAddr
(srv *Server, method, path string, body interface{}, remoteAddr string)
internal/server/server_test.go:49
↓ 17 callersFunctionf
(type: string, over: Partial<FieldDef> = {})
web/src/lib/collections/laneDrafts.test.ts:23
↓ 17 callersFunctionfetchTestCalendarFeed
(s *Server, token string)
internal/server/handlers_calendar_feeds_test.go:47
↓ 17 callersFunctionfloorEvent
(n int, seq int64)
cmd/pad/chat_floor_test.go:27
↓ 17 callersFunctionfullVersion
()
cmd/pad/main.go:37
↓ 17 callersMethodhandler
()
cmd/pad/bug4024_item_list_json_autopage_test.go:41
↓ 17 callersFunctionimportAs
importAs posts a gzip bundle through the real door as the given session.
internal/server/handlers_import_bundle_husk_test.go:135
↓ 17 callersFunctionitoa
(n int)
internal/cli/session_owner_test.go:218
↓ 17 callersMethodkey
The live key, or null when a part is missing.
web/src/lib/attachments/viewFence.ts:90
↓ 17 callersFunctionlist
(name string, v []int)
internal/schedule/reachability_test.go:14
↓ 17 callersFunctionnewCopyTestClient
newCopyTestClient points a Client at ts with a HOME that has no saved credentials, so the test never picks up the developer's real token.
internal/cli/client_items_copy_test.go:17
↓ 17 callersFunctionnewMovedToFixture
(t *testing.T)
internal/server/item_moved_to_test.go:49
↓ 17 callersFunctionnewTokenEditFixture
(t *testing.T)
cmd/pad/task4507_token_edit_test.go:34
↓ 17 callersMethodoccTotal
(t *testing.T, scheduleID string)
internal/store/schedule_resolve_test.go:94
↓ 17 callersFunctionoff
()
web/src/lib/components/items/itemDetailTouchEdit.svelte.test.ts:232
↓ 17 callersFunctionok
(body string)
internal/decision/decision_test.go:80
↓ 17 callersMethodok
ok issues the preflight as the owner and requires a 200.
internal/server/handlers_items_copy_preflight_test.go:202
↓ 17 callersMethodpreview
(t *testing.T)
internal/server/handlers_apps_install_test.go:153
↓ 17 callersMethodprocess
(itemID string)
internal/server/materialize_recovery.go:426
↓ 17 callersFunctionreadFixture
readFixture loads one of the real encoder outputs described in testdata/README.md. Every ISO-BMFF acceptance assertion in this file runs on those byte
internal/attachments/mime_isobmff_test.go:16
↓ 17 callersMethodrefuse
refuse makes the not-linked refusal the sidecar sees and returns the pending-link token it carries ("" when none).
internal/server/task4745_pending_link_test.go:87
↓ 17 callersFunctionsanitize
sanitize copies v with every credential-named entry masked and every string scrubbed, bounded in depth, width and total nodes so a hostile, cyclic or
internal/logging/scrub.go:687
↓ 17 callersMethodseedPending
seedPending leaves the item in the BUG-3000 state: an unflushed edit from a tab that has since closed.
internal/server/handlers_items_bug3133_pending_guard_test.go:41
↓ 17 callersFunctionseedRoleParkFixture
(t *testing.T)
internal/store/role_park_test.go:89
↓ 17 callersMethodseriesMove
(i int, to string, mut func(*models.LinkedMoveInput))
internal/store/commitment_move_series_test.go:33
↓ 17 callersMethodserver
(t *testing.T)
cmd/pad/task3462_u3c_library_builtin_test.go:31
↓ 17 callersMethodsession
session returns a CLI client signed in as user with a fresh session.
cmd/pad/cmd_auth_2fa_test.go:49
↓ 17 callersMethodsnapshot
()
internal/events/observer_test.go:131
↓ 17 callersFunctionsp
(v T)
internal/store/commitment_links_guard_test.go:23
↓ 17 callersMethodstream
(w io.Writer, resp *http.Response, lastEventID string)
cmd/pad/cmd_watch.go:721
↓ 17 callersFunctionstructuredResult
structuredResult is a successful result carrying structured content plus its text rendering, for clients that read only one of the two.
internal/mcp/result.go:23
↓ 17 callersFunctionsuiteFixture
()
web/e2e/fixtures.ts:77
↓ 17 callersFunctiontask3394Req
(clientID, subject, requestID string)
internal/store/task3394_install_clients_test.go:64
↓ 17 callersFunctiontask3399Req
task3399Req is a delegated grant's persistence request, as the consent decision builds its session data.
internal/store/task3399_delegated_barrier_test.go:47
↓ 17 callersFunctiontestStoreOAuth
Tests for the OAuth server constructor + audience strategy + storage adapter (PLAN-943 TASK-951 sub-PR B). Each layer is covered: - NewServer: requir
internal/oauth/server_test.go:40
↓ 17 callersFunctionwriteScheduleBodyError
(w http.ResponseWriter)
internal/server/handlers_schedules.go:140
↓ 16 callersMethodAdd
Add implements SessionPresence. Returns the generated id even when the Redis write fails. That is deliberate and it is the same posture the rest of t
internal/server/session_presence_redis.go:458
↓ 16 callersMethodAppendYjsUpdate
(itemID string, data []byte, schemaVersion string)
internal/collab/manager_test.go:135
↓ 16 callersFunctionChatDirectionOn
ChatDirectionOn reads fresh on every call and requires explicit delivery consent.
internal/cli/chat_direction_state.go:71
↓ 16 callersMethodCommit
Commit makes the staged bytes the canonical blob for their hash and returns its key. On a miss the temp file is renamed into place. On a hit it is unl
internal/attachments/staged.go:118
↓ 16 callersMethodCreateCLIAuthSession
CreateCLIAuthSession generates a new pending CLI auth session with a cryptographically random code and the default TTL. Returns the session including
internal/store/cli_auth_sessions.go:66
↓ 16 callersMethodDeleteSession
DeleteSession destroys a session by its plaintext token.
internal/store/sessions.go:576
↓ 16 callersMethodError
()
internal/materialize/globals.go:66
↓ 16 callersMethodForceRefreshRoom
ForceRefreshRoom makes items.content the canonical source for an item's collab state: it runs `commit` under the per-item lock (so the caller can atom
internal/collab/manager.go:1279
↓ 16 callersFunctionFormatInstant
FormatInstant renders an instant for the viewer. JSON timestamps bypass it.
internal/cli/zone.go:24
↓ 16 callersMethodIsConfigured
IsConfigured reports whether the client has an explicit global connection configuration, either from config.toml or an environment/flag override.
internal/config/config.go:969
↓ 16 callersMethodIsRelation
IsRelation reports whether this field's value names other items — a single one for "relation", an ordered list for "multi_relation". Use it for FIELD
internal/models/collection.go:64
← previousnext →901–1,000 of 31,685, ranked by callers