MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 5 callersFunctionnewSubscriber
newSubscriber builds a subscriber with BOTH channels, so no path can register one whose gaps channel is nil — a nil channel silently swallows every si
internal/watchevents/watchevents.go:628
↓ 5 callersFunctionnewTokenRecorder
(t *testing.T)
cmd/pad/bug3646_pad_toml_token_test.go:25
↓ 5 callersFunctionnewWatchVisCache
(s *Server, r *http.Request, user *models.User)
internal/server/handlers_watch_events.go:669
↓ 5 callersFunctionnoFlock
BUG-3828: Save truncates credentials.json in place before it writes, under the exclusive lock. A caller that could not take the lock (a holder past cr
internal/cli/credentials_bug3828_test.go:21
↓ 5 callersFunctionnoLeak
(t *testing.T, what string, rr *httptest.ResponseRecorder)
internal/server/bug3334_fail_closed_test.go:252
↓ 5 callersFunctionnormalizeRemindAt
normalizeRemindAt re-parses and re-formats an instant, and REFUSES anything that is not RFC3339. The HTTP edge already normalizes, so on that path th
internal/store/reminders.go:129
↓ 5 callersFunctionnormalizeServerURL
normalizeServerURL canonicalizes a server URL for use as a credential key. Trailing slash and surrounding whitespace are stripped; nothing else is tou
internal/cli/credentials.go:655
↓ 5 callersFunctionnormalizeSkill
normalizeSkill is what every hash is taken over: CRLF made LF and trailing newlines dropped, so a Windows checkout (core.autocrlf) or an editor that a
internal/cli/skillstamp.go:31
↓ 5 callersMethodnote
(owner_username: string, slug: string)
web/src/lib/stores/lastWorkspace.svelte.ts:21
↓ 5 callersMethodnoteResourceMissing
noteResourceMissing records a request that omitted the RFC 8707 resource parameter (TASK-3363, TASK-3345): one log line naming the client (id and regi
internal/server/handlers_oauth.go:625
↓ 5 callersFunctionnotifyAttachmentDeleted
(uuid: string)
web/src/lib/attachments/events.ts:45
↓ 5 callersMethodnow
()
internal/watchevents/heartbeat_test.go:25
↓ 5 callersFunctionnullStr
(p *string)
internal/store/schedules.go:1285
↓ 5 callersMethodobserveOAuthFlowDuration
observeOAuthFlowDuration records the elapsed time since `start` for the given stage. Designed to be `defer`'d at the top of each OAuth flow handler so
internal/server/handlers_oauth.go:140
↓ 5 callersMethodobserver
()
internal/collab/observer.go:92
↓ 5 callersMethodoccurrences
()
internal/server/handlers_commitments_resolve_test.go:29
↓ 5 callersFunctionok
(resp: Awaited<ReturnType<APIRequestContext['get']>>, what: string)
web/e2e/workspace-access-live.spec.ts:27
↓ 5 callersFunctiononlySession
onlySession reads the user's one remaining session: a rotation revokes every other one.
internal/server/bug3978_rotation_ttl_test.go:32
↓ 5 callersFunctionopLogRowCount
(t *testing.T, f *recoveryFixture, itemID string)
internal/server/task3531_compaction_test.go:48
↓ 5 callersMethodopenGET
openGET opens GET /mcp over a raw connection and waits for the session to register. It returns the connection and a reader positioned after the respon
internal/server/bug3808_mcp_stalled_reader_test.go:76
↓ 5 callersMethodopenSSEStream
openSSEStream wraps w, or refuses when w cannot take a write deadline. The bound is always sseFrameWriteTimeout: a method taking no timeout, so a hand
internal/server/sse_stream.go:63
↓ 5 callersFunctionopenStalledStream
openStalledStream sends one GET for path over a raw connection, reads the response head, and then never reads again. The connection stays open until t
internal/server/bug3637_sse_stalled_reader_test.go:112
↓ 5 callersFunctionopenStatusPicker
(container: ParentNode)
web/src/lib/components/collections/statusPickerTestKit.ts:31
↓ 5 callersFunctionoverdueToday
overdueToday renders the calendar day deadlines are measured against: the day now falls on in now's own location, so callers convert to the viewer's z
internal/server/overdue.go:40
↓ 5 callersFunctionoverrideFor
(m map[string]string, role string)
internal/store/commitment.go:137
↓ 5 callersFunctionownedTokens
(t *testing.T, env *tokenAuthEnv)
internal/server/handlers_plan_limit_race_test.go:224
↓ 5 callersFunctionpaneNavInFlight
()
web/src/lib/collections/paneHostController.ts:155
↓ 5 callersMethodparkUnrecorded
parkUnrecorded remembers rows the gateway delivered but whose 'sent' record failed (TASK-4032). A row left pending is reclaimed after the lease and pu
internal/server/push_dispatch.go:356
↓ 5 callersFunctionparkedSend
--- r4-L4: a send that outlives its lease ---
internal/server/task3939b_push_dispatch_test.go:255
↓ 5 callersFunctionparseChatPath
(pathname: string)
web/src/lib/stores/chatSurface.svelte.ts:36
↓ 5 callersFunctionparseComponent
(code: string)
web/src/test/identityFenceAst.ts:346
↓ 5 callersFunctionparseItemFields
(fieldsJSON string)
internal/models/item.go:1225
↓ 5 callersFunctionpasswordlessTOTPUser
TASK-2190: an account with no password (signed up through Google, GitHub or Apple) could never turn 2FA off: the door demanded a password it does not
internal/server/task2190_totp_disable_test.go:19
↓ 5 callersMethodpatchKey
TASK-3585: idempotency keys on patch.
internal/server/task3585_patch_key_test.go:20
↓ 5 callersFunctionpatchServer
TASK-3585 at the CLI: every patch carries an idempotency key, and a transport-level failure (a 5xx) is retried ONCE with the same key; a 4xx answer is
cmd/pad/task3585_patch_retry_test.go:14
↓ 5 callersFunctionpathErrorCode
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/middleware_request_text_test.go:42
↓ 5 callersFunctionpdCaptureLogs
--- logging ---
internal/server/task3939b_push_dispatch_test.go:424
↓ 5 callersFunctionpercentile
percentile returns the linearly-interpolated p-quantile (p in [0,1]) of vals, rounded to 1 decimal. 0 for an empty sample. Computed in Go so the same
internal/store/reports.go:969
↓ 5 callersFunctionpermissionLevel
permissionLevel returns a numeric level for grant permission comparison.
internal/server/middleware_auth.go:1006
↓ 5 callersMethodpg
()
internal/server/task3939b_push_fixture_test.go:147
↓ 5 callersMethodpin
pin sets every timestamp the digest reads in this workspace to at.
internal/server/task3615_catch_up_test.go:112
↓ 5 callersMethodpinAdmitsWorkspaceRef
pinAdmitsWorkspaceRef reports whether a pinned token may address the workspace named ref (a slug or an ID, as a request carries it), decided BEFORE re
internal/server/pinned_token.go:63
↓ 5 callersFunctionplanLimitErr
(t *testing.T, err error)
internal/store/task3619_storage_limit_test.go:73
↓ 5 callersFunctionplaybooksCollection
playbooksCollection returns a Playbooks collection scoped to the caller's domain. Like conventionsCollection, the trigger and scope select options are
internal/collections/templates.go:632
↓ 5 callersFunctionpluralize
pluralize renders "1 field" / "2 fields".
cmd/pad/cmd_item.go:2567
↓ 5 callersFunctionpolarity
(src: AstSource, n: Node, decls: Declarations, scope: PolarityScope)
web/src/test/identityFenceAst.ts:579
↓ 5 callersFunctionpollCLIAuth
(t *testing.T, srv *Server, code string)
internal/server/task2253_cli_auth_deny_test.go:35
↓ 5 callersFunctionportHeld
Two questions, two probes (TASK-3620). The old single probe was an HTTP GET of /health that required a 200, and it was wrong both ways: - The probe s
internal/cli/server.go:297
↓ 5 callersMethodpositiveTerminalExpr
positiveTerminalExpr builds the "this transition is a positive completion" boolean: OR over collections of (st.collection_id = ? AND st.field_key = ?
internal/store/reports.go:825
↓ 5 callersFunctionpostComment
TASK-2760. An agent's comment rendered under the human's name because the timeline payload carried the comment and dropped the one row holding the age
internal/server/handlers_timeline_comment_agent_test.go:19
↓ 5 callersFunctionpostSetPlan
(t *testing.T, srv *Server, body map[string]string)
internal/server/handlers_plan_source_test.go:41
↓ 5 callersFunctionpresenceNow
(now func() time.Time)
internal/server/session_activity.go:47
↓ 5 callersFunctionprintMigrateDropSummary
printMigrateDropSummary closes the run, where an operator looks, saying how many schedules were not carried and where they still are.
cmd/pad/cmd_db.go:1248
↓ 5 callersFunctionprobeBody
probeBody builds a linker body of approximately bodyBytes containing exactly `brackets` occurrences of [[title]], padded with filler that contains no
internal/store/items_rename_probe_test.go:53
↓ 5 callersFunctionprocStartToken
procStartToken has no portable non-Linux implementation, so it returns ok=false and a headless owner is judged by bare pid-liveness on unix platforms
internal/cli/proc_start_other.go:16
↓ 5 callersFunctionpruneOldSnapshots
pruneOldSnapshots removes pre-migration snapshots of dbPath older than the newest one other than keep, so each upgrade does not leave another full cop
internal/store/migration_guard.go:192
↓ 5 callersMethodpruneWorkspaceTabIfNoAccessTx
pruneWorkspaceTabIfNoAccessTx deletes the user's tab for a workspace when the user holds neither a membership nor any grant in it. It runs inside the
internal/store/workspace_tabs.go:415
↓ 5 callersMethodpublishEventWithName
publishEventWithName publishes a real-time event with actor name.
internal/server/handlers_documents.go:325
↓ 5 callersMethodpublishItemEventWithHint
publishItemEventWithHint always publishes the activity SSE event and optionally publishes a home_changed watch-bus refetch hint when hintHome is true.
internal/server/handlers_items.go:3813
↓ 5 callersMethodpublishItemUpdatedFromRequest
publishItemUpdatedFromRequest rides the existing item_updated SSE event rather than a new type: every client already subscribes to it, and a new type
internal/server/handlers_verifications.go:406
↓ 5 callersFunctionpublishReplayExpiryEvent
(t *testing.T, bus *MemoryBus, workspaceID, eventType string)
internal/events/bus_replay_expiry_test.go:131
↓ 5 callersMethodpublishWorkspaceAccessChanged
workspace_access_changed publishers (TASK-3272, PLAN-3002 U7a). Every door that gives a user access to a workspace, takes it away, or deletes, restor
internal/server/workspace_access_notify.go:31
↓ 5 callersFunctionpushEscapeHandler
(handler: EscapeHandler, priority: number)
web/src/lib/stores/escapeStack.ts:60
↓ 5 callersMethodput
(t *testing.T, tok string, entries ...any)
internal/server/task3517_sort_order_test.go:35
↓ 5 callersMethodrawComment
Stored comment stamps in a format other than now()'s UTC Z-second (TASK-3960): the marker is computed on the instant, never the text. rawComment adds
internal/store/needs_snooze_test.go:330
↓ 5 callersFunctionrawOutboxPayload
Tests for the account-deletion outbox scrub (TASK-2719). The CONVE-18 shape here: one test per payload family that carries a user id, because a scrub
internal/store/event_outbox_scrub_test.go:24
↓ 5 callersFunctionrawSubscriber
rawSubscriber returns a channel of raw payload strings on one workspace's Redis channel, bypassing the bus entirely — the only way to assert what this
internal/events/redis_heartbeat_test.go:84
↓ 5 callersFunctionrawTarEntry
rawTarEntry writes one ustar entry with an arbitrary typeflag (tar.Writer refuses to emit raw extension headers itself), fixing up the checksum.
internal/server/bug3354_import_bundle_bomb_test.go:190
↓ 5 callersFunctionreachedSeam
(t *testing.T, calls *int)
internal/server/bug3334_fail_closed_test.go:59
↓ 5 callersFunctionreadPasswordFrom
readPasswordFrom reads a password without echo when stdin is a TTY, and otherwise falls back to reading a line from the supplied bufio.Reader. Caller
cmd/pad/cmd_auth.go:864
↓ 5 callersFunctionreadTOML
Helpers ------------------------------------------------------------------
internal/mcp/install_test.go:850
↓ 5 callersFunctionreadableLinkEnds
(acc models.CommitmentAccess, a, b string)
internal/store/commitment_links.go:505
↓ 5 callersMethodrearmManagedReminderTx
rearmManagedReminderTx moves the managed row's instant and clears both fire marks, reporting whether a row existed.
internal/store/schedules.go:714
↓ 5 callersMethodrebuild
(year int, month time.Month)
internal/schedule/internal/rrule/rrule.go:343
↓ 5 callersFunctionreconcile
* Recompute and apply the desired inert set from scratch. This is the ONLY * mutator: release doesn't undo its own writes, it re-derives the truth fr
web/src/lib/a11y/viewerBackdrop.ts:96
↓ 5 callersFunctionreconcileNewItem
(t *testing.T, srv *Server, slug, content string)
internal/server/handlers_item_versions_test.go:29
↓ 5 callersMethodrecordMCPAuthzDenial
recordMCPAuthzDenial bumps the pad_mcp_authz_denials_total counter when the request originated from the MCP surface. The discriminator is the presence
internal/server/middleware_auth.go:958
↓ 5 callersFunctionrefKey
(workspace: string, ref: string)
web/src/lib/chat/refs.ts:272
↓ 5 callersFunctionrefresh
()
web/src/lib/components/editor/attachment-image.ts:1184
↓ 5 callersMethodrefresh
refresh replays fosite's storage calls for one refresh of r1, minting the given signatures, and reports the first error.
internal/store/bug3678_refresh_after_revoke_test.go:50
↓ 5 callersFunctionrefreshAccessibleName
()
web/src/lib/components/editor/attachment-chip.ts:302
↓ 5 callersFunctionrefusalNotice
(t *testing.T, s *Store, ws, item, actor string, agent bool)
internal/store/commitment_notifications_test.go:12
↓ 5 callersMethodregister
register signs up email with inv's code (A2).
internal/server/handlers_invitation_accept_limit_test.go:76
↓ 5 callersFunctionregisterAs
registerAs writes a record for the given owner pid via the real verb, so the list/prune tests exercise the same file the writer produces.
cmd/pad/cmd_session_registry_test.go:150
↓ 5 callersFunctionregisterNamedTestClient
TASK-1071: the consent screen is the trust anchor the RFC 8707 relaxation leans on (audienceForAuthorize), so it must say plainly that the resource is
internal/server/task1071_consent_identity_test.go:18
↓ 5 callersFunctionregisterNonAdmin
--- helpers --- registerNonAdmin inserts a member-role user directly into the store and mints a session token for them. Bypasses the admin-registratio
internal/server/handlers_admin_billing_test.go:351
↓ 5 callersFunctionregisterRemoteMCP
registerRemoteMCP registers everything the remote /mcp transport serves on mcpSrv: the catalog, prompts, meta and resources. Extracted from the cloud
cmd/pad/cmd_server.go:1540
↓ 5 callersFunctionrelationIssuesMessage
relationIssuesMessage is the same rendering for the doors that RETURN an error instead of writing a response — `createItemChecked` (*itemCreateError)
internal/server/relation_referents.go:306
↓ 5 callersFunctionrelease
()
web/src/lib/a11y/viewerBackdrop.ts:233
↓ 5 callersFunctionreleaseFirst
()
web/src/lib/components/items/PushToAgentDialog.svelte.test.ts:351
↓ 5 callersFunctionremapRef
(id string)
internal/store/attachments_remap_fixture_test.go:31
↓ 5 callersFunctionremoteCfg
remoteCfg builds a Config wired to point at the given test server URL.
cmd/pad/init_test.go:37
↓ 5 callersMethodremoveUnusableWorkspace
removeUnusableWorkspace takes back a workspace that cannot be made usable, and is the shared removal both of this door's failure points use (BUG-2715)
internal/server/workspace_owner_compensation.go:179
↓ 5 callersFunctionrender
(page, svgFile, size)
docs/brand/mark/export.mjs:46
↓ 5 callersFunctionrender
(statuses: unknown[], abandonedOptions: string[])
web/src/lib/components/NestedChildren.svelte.test.ts:51
↓ 5 callersFunctionrenderConsentFor
(t *testing.T, srv *Server, clientID, redirectURI, sessionToken string)
internal/server/task1071_consent_identity_test.go:36
↓ 5 callersFunctionrenderItemCopyNeedsValue
renderItemCopyNeedsValue is the refusal. It names every unresolved field and shows the flags to add FOR THE ONES A FLAG CAN ADDRESS. Not every one ca
cmd/pad/cmd_item.go:2765
↓ 5 callersFunctionrenderItemCopyResult
renderItemCopyResult writes the outcome of a completed copy.
cmd/pad/cmd_item.go:2976
↓ 5 callersFunctionrenderedScale
(page: Page, selector = VIEWER_IMAGE)
web/e2e/lib/attachment-viewer.ts:252
↓ 5 callersFunctionrepairBodyNULEscapes
repairBodyNULEscapes repairs a JSON body the way the GATE reads it, and returns how many values it changed. IT MIRRORS bodyDecodesNUL's WALK, and the
internal/server/server.go:3351
← previousnext →3,601–3,700 of 31,685, ranked by callers