MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,743 in github.com/PerpetualSoftware/pad

↓ 6 callersFunctionscheduleWithAudience
(audience string)
internal/server/agenda_audience_test.go:56
↓ 6 callersFunctionscopeTestServer
scopeTestServer is an OAuth-capable server whose /mcp transport records what reaches it, with a classifier calling pad_item.create a write.
internal/server/task2308_mcp_scope_test.go:42
↓ 6 callersFunctionsearchCmd
--- search ---
cmd/pad/cmd_item.go:4034
↓ 6 callersFunctionsearchOne
TASK-4514: matched_in and the snippet choice come from per-column match flags computed in SQL, not from "<mark>" appearing in the snippet text, so sto
internal/store/search_matched_in_test.go:15
↓ 6 callersFunctionseedBackfillWorkspace
(t *testing.T, s *Store, name, ownerID string)
internal/store/oauth_connections_backfill_test.go:52
↓ 6 callersFunctionseedOrphanImage
seedOrphanImage creates an UNATTACHED image original uploaded by uploader, plus its thumb-md variant (unattached too, as upload leaves them), and retu
internal/server/handlers_attachments_attach_test.go:53
↓ 6 callersFunctionseedParentAndChild
(t *testing.T, srv *Server, slug string)
internal/server/handlers_items_parent_ambiguity_test.go:21
↓ 6 callersFunctionseedSnapshotFile
seedSnapshotFile writes content at path and stamps its mtime, so the prune order (newest first by mtime) is fixed by the test rather than by how fast
internal/store/migration_guard_test.go:326
↓ 6 callersFunctionseedVersionedItem
seedVersionedItem creates an item and edits it n times, producing n+1 versions' worth of history (the create plus each content change). Edits go thro
internal/server/handlers_item_versions_bounds_test.go:39
↓ 6 callersFunctionselectSortItem
(t *testing.T, s *Store, wsID, colID, title, field, value string)
internal/store/bug4400_select_sort_test.go:38
↓ 6 callersMethodsend
* Send `body`. The bubble is shown at once; the outcome says what the caller * should do (see SendOutcome). Nothing is sent for a draft the server w
web/src/lib/stores/chatThread.svelte.ts:413
↓ 6 callersMethodseq
(t *testing.T)
internal/server/handlers_items_bug3133_pending_guard_test.go:57
↓ 6 callersFunctionserverTrimmedTitle
(title: string)
web/src/lib/items/titleLimit.ts:35
↓ 6 callersFunctionsessionGone
(t *testing.T, srv *Server, tok string)
internal/server/handlers_webview_session_test.go:52
↓ 6 callersMethodsessionKey
sessionKey is the per-session entry: one key, one TTL, one owner.
internal/server/session_presence_redis.go:362
↓ 6 callersFunctionsetAsideOne
(t *testing.T, s *store.Store, itemID string)
internal/store/bug3244_set_aside_test.go:30
↓ 6 callersFunctionsetSurface
(path: string | null, state: Record<string, unknown>)
web/src/lib/stores/chatSurface.svelte.test.ts:668
↓ 6 callersFunctionsettle
()
web/src/lib/components/shareDialogOpenGen.svelte.test.ts:86
↓ 6 callersFunctionsetupAgentSignupFreshConfig
(t *testing.T)
cmd/pad/cmd_auth_agent_signup_test.go:136
↓ 6 callersFunctionsetupEnsureWorkspaceTest
setupEnsureWorkspaceTest produces a clean tempdir, points HOME at a tempdir (so credential/config writes don't leak), chdirs into the project so cli.D
cmd/pad/init_test.go:20
↓ 6 callersFunctionshowCmd
--- show ---
cmd/pad/cmd_item.go:903
↓ 6 callersMethodsince
(m int)
internal/server/home_hint_hub_test.go:55
↓ 6 callersMethodsleep
(_ context.Context, d time.Duration)
internal/materialize/supervisor_test.go:292
↓ 6 callersFunctionsniffEBMLDocType
sniffEBMLDocType returns the MIME for an EBML file by READING ITS DOCTYPE ELEMENT, not by searching for a string. The mimesniff table maps the bare E
internal/attachments/mime_magic.go:211
↓ 6 callersFunctionsplitOnUnescapedPipe
splitOnUnescapedPipe scans `body` for the first `|` that isn't preceded by an unescaped `\`, splitting the body into (key, display, found). Mirrors sp
internal/links/extract.go:628
↓ 6 callersFunctionstalledStreamServer
BUG-3637: a client that connects to an event stream and then stops reading must not pin its handler. Once the socket buffers fill, a frame write block
internal/server/bug3637_sse_stalled_reader_test.go:33
↓ 6 callersFunctionstatIdentity
statIdentity returns the inode and device of a stat'd file on unix, which together identify a specific filesystem node — a recreated node at the same
internal/cli/stat_identity_unix.go:15
↓ 6 callersFunctionstate
(s string)
cmd/pad/bug3476_import_watch_test.go:87
↓ 6 callersFunctionstepUpExec
(t *testing.T, s *store.Store, q string, args ...any)
internal/store/step_up_test.go:45
↓ 6 callersMethodstopPresence
()
web/src/lib/stores/chatInbox.svelte.ts:187
↓ 6 callersFunctionstorage
()
web/src/lib/items/refusedRawDraft.ts:92
↓ 6 callersFunctionstoredOffset
(o schedule.Offset)
internal/store/commitment_links.go:170
↓ 6 callersFunctionstreamWatchEventsTo
(w io.Writer, resp *http.Response, lastEventID string, sinks ...chatSink)
cmd/pad/cmd_watch.go:711
↓ 6 callersMethodsyncAppItemActionsTx
syncAppItemActionsTx makes the install's action rows match specs, on the caller's transaction (provisioning, upgrade, the backfill), which holds the i
internal/store/app_item_actions.go:91
↓ 6 callersFunctiont4590Create
(floating bool)
internal/store/task4590_move_snooze_test.go:23
↓ 6 callersMethodtap
A single-finger tap: down then up at the same point, no move.
web/e2e/lib/attachment-viewer.ts:409
↓ 6 callersFunctiontask3392Install
(t *testing.T, s *Store, workspaceID, installID, state string)
internal/store/task3392_bot_principal_test.go:463
↓ 6 callersFunctiontask3392SameAnswer
sameAnswer asserts two responses are byte-identical in status and body.
internal/server/task3392_bot_principal_test.go:68
↓ 6 callersFunctiontask3397LifecycleFix
(t *testing.T, installID string)
internal/store/task3397_lifecycle_test.go:101
↓ 6 callersFunctiontask3615Want
(t *testing.T, name string, sec store.CatchUpSection, want ...string)
internal/server/task3615_catch_up_test.go:142
↓ 6 callersFunctiontask4105FixtureFor
TASK-4105: schedules and the agenda on pad_item. Every action rides the `pad item remind` CLI on stdio and a route on /mcp. task4105FixtureFor adjusts
internal/mcp/task4105_schedule_test.go:27
↓ 6 callersFunctiontask4684AssignmentRows
assignmentActivities returns the item's "updated" activity metadata that mention an assignment, oldest first, with their timestamps.
internal/server/task4684_assignment_rename_test.go:31
↓ 6 callersFunctiontask4723Commit
task4723Commit creates a one-shot commitment tomorrow at 10:00 New York and returns the item slug and its outstanding occurrence. deadlineDays < 0 lea
internal/server/task4723_placement_test.go:43
↓ 6 callersFunctiontestOverride
(key string)
internal/store/commitment_bundle_v2_test.go:57
↓ 6 callersFunctiontlsServerFor
tlsServerFor starts a TLS listener whose certificate is valid for the given names, and returns its address plus a config that trusts it.
internal/redisdial/redisdial_test.go:22
↓ 6 callersMethodtoken
(u *models.User)
internal/server/workspace_access_notify_test.go:56
↓ 6 callersFunctiontokenCreateCmd
()
cmd/pad/cmd_token.go:64
↓ 6 callersFunctiontoolsCall
BUG-3217. mcp-go decodes a tool call's arguments with a plain json.Unmarshal, so a `fields` number reached the dispatcher as a float64: 90071992547409
internal/mcp/bug3217_fields_number_literals_test.go:23
↓ 6 callersFunctiontracePGConnected
Duplicated from storetest.TracePGConnected: storetest imports store, so these white-box tests cannot import it. Keep the gate and marker format in syn
internal/store/pgtrace_test.go:11
↓ 6 callersFunctiontz4101Me
(t *testing.T, srv *Server, token string)
internal/server/task4101_timezone_test.go:32
↓ 6 callersFunctiontzStub
(zone string, hits *int)
cmd/pad/task4101_timezone_test.go:85
↓ 6 callersFunctionunescapeWikiBody
unescapeWikiBody undoes the editor's body-escape sequences: `\]` → `]`, `\|` → `|`, `\\` → `\`. Other backslash sequences are left as-is (the renderer
internal/links/extract.go:647
↓ 6 callersFunctionunsealChatRecords
()
web/src/lib/chat/chatRecords.ts:106
↓ 6 callersMethodupdate
(t *testing.T, itemID, body, actor, source string)
internal/store/plan2348_u2_versions_test.go:38
↓ 6 callersMethodupdateCommitmentAt
(workspaceID, itemID string, upd models.ScheduleUpdate, partial *models.CommitmentRolesPatch, nowT time.Time,
internal/store/schedules.go:764
↓ 6 callersFunctionuploadChannels
uploadChannels drives the real route (no users exist in these tests, so RequireWorkspaceAccess grants implicit owner) with independent control over th
internal/server/handlers_attachments_test.go:393
↓ 6 callersFunctionuploadEncodedName
uploadEncodedName uploads body under an RFC 5987 encoded filename. That is the reachable spelling for these bytes: Go's multipart reader refuses a raw
internal/server/handlers_attachments_bug2818_test.go:33
↓ 6 callersFunctionveOAuthUnverifiedSession
--------------------------------------------------------------------- Perimeter 5: OAuth-provider authorize + decide (mints auth codes). -------------
internal/server/middleware_verified_email_test.go:456
↓ 6 callersFunctionverifyIdentityTranscript
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_server_identity_test.go:43
↓ 6 callersFunctionvisit
(n: Node, anc: Node[])
web/src/test/identityFenceAst.ts:433
↓ 6 callersFunctionwaitForAuditRows
waitForAuditRows polls ListMCPAuditByUser until we see the expected count or the deadline expires. The middleware writes async via a buffered channel
internal/server/middleware_mcp_audit_test.go:77
↓ 6 callersFunctionwatchEventPayloadFor
watchEventPayloadFor builds a Notification's wire payload. Its "workspace" is the slug (DOC-2479's payload carries a human-facing "workspace", matchin
internal/server/handlers_watch_events.go:1013
↓ 6 callersFunctionwhoamiCmd
()
cmd/pad/cmd_auth.go:975
↓ 6 callersFunctionwikiLinksToMarkdown
(content: string, items: Item[], workspaceSlug: string, username?: string)
web/src/lib/utils/markdown.ts:890
↓ 6 callersFunctionwireTestImageProcessor
wireTestImageProcessor (pure-Go build): wires the real pure-Go processor so thumbnail integration tests can derive variants against a working backend.
internal/server/testimageprocessor_purego_test.go:12
↓ 6 callersFunctionwithFastCLIAuthPolling
withFastCLIAuthPolling shrinks pollAndSaveCLIAuth's interval/timeout/error bound for the duration of the test, then restores them. Mirrors internal/cl
cmd/pad/cmd_auth_poll_test.go:25
↓ 6 callersFunctionwithLocalFetcher
withLocalFetcher replaces the package-level fetcher with one that allows loopback dials so httptest.NewServer addresses (127.0.0.1) can be reached. Re
internal/server/handlers_import_test.go:17
↓ 6 callersFunctionwrite
(key: string, value: string)
web/src/lib/collections/viewPersistence.ts:58
↓ 6 callersFunctionwriteBootstrapToken
writeBootstrapToken drops a token file at <dataDir>/.bootstrap-token in the same shape EnsureBootstrapToken would produce — token + trailing newline,
internal/cli/bootstrap_test.go:52
↓ 6 callersFunctionwriteConfigFile
(t *testing.T, dir, body string)
internal/config/save_env_test.go:86
↓ 6 callersFunctionwritePadTomlURL
writePadTomlURL links the current directory to serverURL.
cmd/pad/bug3646_pad_toml_token_test.go:45
↓ 6 callersFunctionwriteSkillFile
(t *testing.T, project, content string)
cmd/pad/bug3466_skill_overwrite_test.go:34
↓ 6 callersFunctionwriteStoreErrorBusyAs
writeStoreErrorBusyAs is writeStoreErrorR for the paths where the default busy wording would be untrue: a step that runs AFTER the main write committe
internal/server/server.go:3229
↓ 6 callersFunctionwriteTokenWorkspaceDeniedFor
writeTokenWorkspaceDeniedFor writes the 403 for a token refused a workspace. A pinned token gets the pin reason, naming its workspace and how to mint
internal/server/pinned_token.go:165
↓ 6 callersMethodwriteTypedItemRefusal
writeTypedItemRefusal writes the structured refusal for any of the four typed, permanent failures store.UpdateItem can return, and reports whether it
internal/server/handlers_items_content_route.go:505
↓ 5 callersMethod#run
()
web/src/lib/stores/chat.svelte.ts:186
↓ 5 callersMethodAcquireParentChildrenLocks
AcquireParentChildrenLocks is the CANONICAL helper for taking `pad:parent-children:<id>` advisory locks. Every call site that needs to serialize again
internal/store/items.go:5871
↓ 5 callersMethodAddOAuthProvider
AddOAuthProvider adds a provider to the user's oauth_providers list. No-op if the provider is already linked. It takes the account lock, like every pr
internal/store/users.go:991
↓ 5 callersMethodAppAPIAudience
AppAPIAudience returns the configured app API resource, or "".
internal/store/install_clients.go:177
↓ 5 callersMethodAttachmentReferenced
AttachmentReferenced returns true when anything in the workspace mentions "pad-attachment:<id>" — either a live item's content/fields JSON or a commen
internal/store/attachments.go:1461
↓ 5 callersMethodBackfillSelfHostedPlans
BackfillSelfHostedPlans is the non-cloud boot's plan conversion: free and empty plans become `self-hosted` (unlimited). On a cloud-owned database it w
internal/store/instance_mode.go:108
↓ 5 callersMethodBackfillYjsContentBearing
BackfillYjsContentBearing classifies every op-log row whose content_hash IS NULL: rows written before migration 091, and the step2/update rows migrati
internal/store/yjs_content_bearing.go:239
↓ 5 callersMethodBefore
Before returns the last recurrence before the given datetime instance, or time.Time's zero value if no recurrence match. The inc keyword defines what
internal/schedule/internal/rrule/rrule.go:969
↓ 5 callersFunctionBlocked
Blocked reports whether ip is in a private, reserved or otherwise non-public range that a server-side fetch must never connect to. The stdlib predica
internal/netpolicy/netpolicy.go:28
↓ 5 callersMethodBootstrapAgenda
BootstrapAgenda reads the caller's agenda for the bootstrap: for each open schedule the caller receives (the item's assignee, else its creator) whose
internal/store/schedule_bootstrap.go:73
↓ 5 callersMethodBootstrapIncludeForKey
BootstrapIncludeForKey returns the declaration feeding the named bootstrap payload, or nil when this collection feeds no such payload.
internal/models/collection_traits.go:134
↓ 5 callersFunctionBox
(props)
plugin/hooks/register.js:518
↓ 5 callersFunctionBuildAppEventDTO
BuildAppEventDTO builds the app body for one outbox event and returns it with the companion collection its visibility is decided by. It reads the stor
internal/store/app_event_dto.go:105
↓ 5 callersFunctionBuildItemState
BuildItemState builds an item's state from its row and trail. ONE SERIALISATION PATH: the bytes returned are both hashed and sent. The runner passes
internal/decision/runner.go:281
↓ 5 callersFunctionCapabilityLine
CapabilityLine returns the single-line capability bit a conforming CLI emits in response to `<cmd> help --capabilities` (or the `--cmdhelp-capabilitie
internal/cmdhelp/json.go:27
↓ 5 callersMethodCheckLimit
CheckLimit checks whether a workspace operation is allowed under the owner's plan. Resolution order: 1. User plan_overrides[feature] — per-user overri
internal/store/limits.go:116
↓ 5 callersFunctionCleanup
Cleanup removes the process-wide template databases, if any were built. Call it from TestMain after m.Run() so a lazily-built template doesn't linger
internal/store/storetest/storetest.go:119
↓ 5 callersMethodCloseWorkspaceTab
CloseWorkspaceTab removes a workspace from the user's open set. Closing a tab that is not open is not an error. It takes the per-user lock like every
internal/store/workspace_tabs.go:279
↓ 5 callersFunctionCollectionTracksWork
PLAN-3535: a collection either tracks WORK (its items have a lifecycle and finish) or holds REFERENCE material (its items just exist: docs, convention
internal/models/tracks_work.go:23
↓ 5 callersFunctionCommitmentKind
CommitmentKind is a display label derived from roles, with deadline first.
internal/schedule/commitment_flags.go:171
↓ 5 callersMethodCompleteIdempotencyKeyTx
CompleteIdempotencyKeyTx records the answer inside the write's own transaction. It fails, rolling the write back, unless this token still holds the cl
internal/store/idempotency.go:108
↓ 5 callersMethodCountAgentSignupsSince
CountAgentSignupsSince counts signups recorded in the ledger created after since. A claim, expiry or account delete does not remove them.
internal/store/agent_signups.go:180
↓ 5 callersMethodCountBillingAggregates
CountBillingAggregates returns the per-plan customer counts and the count of new "pro" signups since `since`. Implemented as two scalar SQL queries so
internal/store/users.go:878
↓ 5 callersMethodCountLiveOAuthConnections
Counts for the console's MCP readiness panel (PLAN-2310 DR-7). Turning MCP off revokes nothing; these are what would start working again if it were tu
internal/store/mcp_resume.go:22
↓ 5 callersMethodCreateCalendarFeed
(ctx context.Context, userID, layer string, ids []string, name string)
internal/store/calendar_feeds.go:42
← previousnext →3,101–3,200 of 31,743, ranked by callers