MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,743 in github.com/PerpetualSoftware/pad

↓ 13 callersFunctiongroupStatus
(t *testing.T, rr *httptest.ResponseRecorder, want int)
internal/server/handlers_workspace_groups_test.go:45
↓ 13 callersMethodguest
(edit ...int)
internal/server/commitment_graph_entry_test.go:62
↓ 13 callersFunctionimportWithLinks
importWithLinks replaces a bundle's links and imports it.
internal/store/schedule_link_import_test.go:300
↓ 13 callersMethodinvalidate
Supersede every outstanding token without taking a new one.
web/src/lib/attachments/viewFence.ts:145
↓ 13 callersFunctionkindsOf
(entries []models.TimelineEntry)
internal/server/handlers_timeline_structured_test.go:67
↓ 13 callersFunctionlegacyReminderRow
(t *testing.T, s *Store, state string)
internal/store/reminder_commitment_migration_test.go:60
↓ 13 callersFunctionloadCorpus
(t *testing.T)
internal/materialize/materialize_test.go:46
↓ 13 callersFunctionmakeIntegrationPNG
makeIntegrationPNG returns a real PNG large enough that both thumb-sm (256px) and thumb-md (1024px) variants must scale down. Filled with a stripe pat
internal/server/handlers_attachments_thumbnails_test.go:45
↓ 13 callersMethodmanaged
(t *testing.T, scheduleID string)
internal/store/schedule_copy_test.go:128
↓ 13 callersFunctionmatchRequestBody
(text string)
internal/server/handlers_playbook_match_test.go:56
↓ 13 callersMethodmembers
(t *testing.T)
internal/server/handlers_invitation_accept_limit_test.go:30
↓ 13 callersFunctionmustExec
(t *testing.T, db *sql.DB, query string, args ...any)
internal/store/nulscan_test.go:321
↓ 13 callersMethodnative
(t *testing.T, it *models.Item, start string, roles models.CommitmentRolesInput)
internal/store/commitment_links_test.go:34
↓ 13 callersFunctionnewAcceptLimitEnv
(t *testing.T)
internal/server/handlers_invitation_accept_limit_test.go:25
↓ 13 callersFunctionnewBug3837Fixture
(t *testing.T, accessLifespan time.Duration)
internal/server/bug3837_mcp_credential_tick_test.go:35
↓ 13 callersFunctionnewIPRateLimiter
(cfg rateLimitConfig)
internal/server/middleware_ratelimit.go:78
↓ 13 callersMethodnow
()
internal/server/task3939b_push_fixture_test.go:239
↓ 13 callersMethodoccRows
(t *testing.T, scheduleID, state string)
internal/store/schedule_resolve_test.go:89
↓ 13 callersFunctionpostOAuthFormBearer
postOAuthFormBearer POSTs an x-www-form-urlencoded body with a Bearer Authorization header (used for /oauth/introspect, where fosite v0.49 requires ei
internal/server/handlers_oauth_test.go:2652
↓ 13 callersFunctionpreMigrationDB
BUG-3663: 025_doc_type_plan rebuilds documents with DROP TABLE while foreign keys are on, and versions.document_id references documents with no cascad
internal/store/bug3663_migration_025_test.go:20
↓ 13 callersMethodrefresh
Bring new rows and tombstones into the window (see the REFRESH note on top).
web/src/lib/stores/chatThread.svelte.ts:347
↓ 13 callersMethodrefuseAppPrincipalQ
refuseAppPrincipalQ returns ErrAppPrincipal when userID is a bot.
internal/store/app_principal.go:39
↓ 13 callersMethodreload
(t *testing.T)
internal/mcp/dispatch_http_clear_assignment_test.go:121
↓ 13 callersMethodrenegotiateDeadlineAt
(workspaceID, itemID, actor string, until time.Time, reason string, nowT time.Time)
internal/store/commitment.go:599
↓ 13 callersFunctionrenegotiateState
(t *testing.T, s *Store)
internal/store/commitment_renegotiate_test.go:47
↓ 13 callersMethodrequestSessionInfo
requestSessionInfo is the session the request was authenticated with, or nil. It follows the credential the middleware recorded (ctxAuthKind) rather t
internal/server/handlers_account.go:68
↓ 13 callersFunctionrestoreAsUser
Restore-authorization tests (TASK-4937). Restore walks the delete handler's authorization ladder gate for gate, minus delete's rejection of tombstones
internal/server/handlers_storage_restore_authz_test.go:27
↓ 13 callersFunctionroleGateReason
roleGateReason is the reason for a refusal by a workspace-role gate. A guest holds grants, not a role, and a caller with no workspace role at all (a p
internal/server/server.go:3105
↓ 13 callersFunctionrow
(extra: Partial<AgendaEntry> = {})
web/src/routes/(console)/agenda/agenda.svelte.test.ts:27
↓ 13 callersFunctionrunReminderMigration
(s *Store, name, body string)
internal/store/reminder_commitment_migration_test.go:53
↓ 13 callersMethodscheduleSnapshotTx
(tx *sql.Tx, id string)
internal/store/schedule_journal.go:99
↓ 13 callersFunctionscrubTestUsers
scrubTestUsers creates the deleted-account user and the bystander whose data is the negative control.
internal/store/event_outbox_scrub_test.go:80
↓ 13 callersFunctionshortRereads
(t *testing.T, n int, pause time.Duration)
internal/cli/credentials_bug3828_test.go:43
↓ 13 callersMethodsummary
(ref string)
cmd/pad/cmd_schedule.go:128
↓ 13 callersMethodtargetCommit
TASK-4713: a managed reminder follows the occurrence's target (target minus the lead), not its start, on every writer of remind_at. targetCommit creat
internal/store/schedule_target_arming_test.go:17
↓ 13 callersFunctiontaskSchema
()
internal/items/validate_test.go:10
↓ 13 callersFunctiontitles
(rows []*needs.Row)
internal/server/handlers_me_needs_test.go:160
↓ 13 callersFunctiontlsServer
tlsServer serves h over TLS on 127.0.0.1 and returns its origin plus a TLS config trusting it.
internal/appfetch/appfetch_test.go:18
↓ 13 callersFunctionupdatedActivityEntries
updatedActivityEntries returns the timeline's "updated" activity entries. The timeline carries other kinds too (the create activity, versions, notes),
internal/server/handlers_activity_debounce_actor_test.go:100
↓ 13 callersMethodupload
(ctx context.Context, spec store.FenceSpec, itemID string, body []byte, name string)
internal/appstore/attachments_test.go:79
↓ 13 callersFunctionuploadIntegrationPNG
(t *testing.T, srv *Server, slug string, w, h int)
internal/server/handlers_attachments_transform_test.go:41
↓ 13 callersFunctionwantAts
(t *testing.T, got []Occurrence, want ...string)
internal/schedule/nextbetween_test.go:44
↓ 12 callersMethodAccept
()
internal/server/bug3637_sse_stalled_reader_test.go:83
↓ 12 callersMethodAddr
()
cmd/pad/chat_synctest_net_test.go:43
↓ 12 callersFunctionAgentNameFromMetadata
AgentNameFromMetadata returns the agent display name stamped on an activity's metadata JSON (`handlers_documents.go::agentMeta` writes the `agent` key
internal/models/activity.go:306
↓ 12 callersFunctionAppendImplementationNote
(fieldsJSON string, note ItemImplementationNote)
internal/models/item.go:1130
↓ 12 callersMethodBeginTx
(ctx context.Context, opts driver.TxOptions)
internal/store/nulguard.go:449
↓ 12 callersFunctionCaptureSessionOwner
CaptureSessionOwner reads this process's session owner from the environment. Precedence for the pid, most explicit first: 1. $PAD_SESSION_PID — the h
internal/cli/session_owner.go:135
↓ 12 callersMethodComputeRef
ComputeRef sets the Ref field from CollectionPrefix and ItemNumber. Call this after populating the item from a database query.
internal/models/item.go:626
↓ 12 callersMethodCreateAgentRole
CreateAgentRole creates a new agent role in a workspace.
internal/cli/client.go:1955
↓ 12 callersMethodCreateComment
(wsSlug, itemSlug string, input models.CommentCreate)
internal/cli/client.go:1235
↓ 12 callersMethodDeleteScheduleLink
DeleteScheduleLink removes a link. It needs edit on both ends.
internal/store/commitment_links.go:866
↓ 12 callersFunctionDeriveClaimCode
DeriveClaimCode produces the 6-digit code for the given (user, workspace) at the given wall-clock time. Exported so the Phase E "Connect project" moda
internal/server/claim_codes.go:78
↓ 12 callersFunctionFormatForTool
FormatForTool takes the raw embedded skill content and formats it for a specific tool. Returns the appropriately formatted content with tool-specific
internal/cli/agents.go:284
↓ 12 callersMethodGetItemQ
GetItemQ is GetItem parameterized over its executor, so the same read can run against the pool or on an in-flight transaction's connection (see Querye
internal/store/items.go:763
↓ 12 callersFunctionIsReservedItemField
IsReservedItemField reports whether key is system-written metadata rather than a user-facing schema field. Callers that filter, migrate, or render an
internal/models/item.go:333
↓ 12 callersMethodIsWorkspaceMember
IsWorkspaceMember checks if a user is a member of a workspace.
internal/store/workspace_members.go:1057
↓ 12 callersMethodJSON
JSON serializes traits for storage. The zero value serializes to "{}" so the column is never NULL and never an empty string.
internal/models/collection_traits.go:267
↓ 12 callersMethodLinkOAuthProvider
LinkOAuthProvider links provider to userID and, when subject is given, binds that provider account, in one transaction: a subject bound elsewhere link
internal/store/oauth_identities.go:138
↓ 12 callersMethodListAuditLog
ListAuditLog returns activities matching the given audit log filters. Supports filtering by action, actor, workspace, and date range.
internal/store/activities.go:1176
↓ 12 callersMethodListDocuments
(workspaceID string, params models.DocumentListParams)
internal/store/documents.go:14
↓ 12 callersMethodListMCPAuditByUser
ListMCPAuditByUser returns the user's most recent audit rows in reverse-chronological order. limit caps the page; offset paginates. Caller must enforc
internal/store/mcp_audit.go:115
↓ 12 callersMethodListRemindersForItem
ListRemindersForItem returns every reminder on an item, armed or not, soonest first. History is included because a fired reminder is the record that a
internal/store/reminders.go:202
↓ 12 callersMethodMoveLinkedDate
MoveLinkedDate moves one date of an item's outstanding occurrence and the dates linked below it. See the file comment for the deadline rule.
internal/store/commitment_cascade.go:241
↓ 12 callersFunctionNULProtectedColumns
NULProtectedColumns returns the full population, oauth expansion included. Exported so the guard test and the migration generator consume the SAME va
internal/store/nulcolumns.go:580
↓ 12 callersFunctionResolveAgentName
ResolveAgentName decides what goes in the X-Pad-Agent header, which is the ONLY signal the server has for attributing a write to an agent rather than
internal/cli/agent_identity.go:44
↓ 12 callersMethodServeInline
ServeInline reports whether an allowlisted attachment's bytes may be sent with Content-Disposition: inline. It is the server-side safety gate for BUG-
internal/attachments/mime.go:192
↓ 12 callersMethodSetExportSpoolDir
SetExportSpoolDir overrides the directory used for temporary export spool files. An empty string falls back to os.TempDir().
internal/server/export_metadata_limit.go:26
↓ 12 callersMethodSubscribe
Subscribe registers a local subscriber for the given workspace. Starts a Redis subscription for the workspace if this is the first local subscriber, a
internal/events/redis_bus.go:911
↓ 12 callersFunctionTrustedProxyRealIP
TrustedProxyRealIP returns middleware that rewrites r.RemoteAddr from X-Real-IP / X-Forwarded-For ONLY when the direct TCP peer is within one of the s
internal/server/middleware_realip.go:51
↓ 12 callersFunctionValidateExamples
ValidateExamples is the contractual mechanism by which cmdhelp v0.1 prevents documentation drift (spec §6, §11 Q5). For every example in every command
internal/cmdhelp/example_validation.go:28
↓ 12 callersFunctionValidatePartialFields
ValidatePartialFields validates ONLY the keys present in `patch` against the schema (TASK-2022, field-level PATCH / IDEA-1480). Unlike ValidateFields
internal/items/validate.go:322
↓ 12 callersFunctionWithCollectionAliasFallback
withCollectionAliasFallback runs op against the RAW collection slug the user typed, and — only if that fails specifically because the collection was n
internal/cli/collection_alias.go:59
↓ 12 callersFunctionWithTokenWorkspaceID
WithTokenWorkspaceID returns ctx decorated with a workspace-scope hint, mirroring TokenAuth's behaviour for workspace-scoped API tokens. Pass an empty
internal/server/context.go:59
↓ 12 callersFunctionWriteChatDirection
()
internal/cli/chat_direction_state.go:25
↓ 12 callersMethodadvance
(d time.Duration)
internal/server/task3939b_push_fixture_test.go:245
↓ 12 callersMethodany
()
internal/mcp/dispatch_http_schedule.go:111
↓ 12 callersFunctionappendToCatalog
appendToCatalog inserts def into Catalog. Called from catalog_<resource>.go init() functions. Keep this small + simple; validation happens at Register
internal/mcp/catalog.go:205
↓ 12 callersFunctionassertCensusUnchanged
(t *testing.T, before, after map[string]int)
internal/server/handlers_apps_provision_test.go:68
↓ 12 callersFunctionassertSpoolDirEmpty
(t *testing.T, dir string)
internal/server/task4839_export_limit_test.go:78
↓ 12 callersFunctionattachMatchRunner
(srv *Server, p decision.Provider)
internal/server/handlers_playbook_match_test.go:50
↓ 12 callersMethodauthorizeCollabAccess
authorizeCollabAccess mirrors RequireWorkspaceAccess but keyed on the item's workspace ID (the WS URL path doesn't carry a workspace slug). It checks:
internal/server/handlers_collab.go:628
↓ 12 callersMethodautoCreateWorkspace
--- Auto-create Workspace (TASK-432) --- autoCreateWorkspace creates a default workspace for a new user in cloud mode. Called after user creation in r
internal/server/handlers_cloud.go:2020
↓ 12 callersFunctionbootstrapBody
(email string)
internal/server/handlers_auth_bootstrap_token_test.go:45
↓ 12 callersMethodbuild
(workspace string)
internal/cmdhelp/dynamic_test.go:22
↓ 12 callersMethodbuildItem
---- the blocker has no commitment, or none left ---- buildItem makes an item in a collection whose terminal and abandoned options are its own: shippe
internal/store/commitment_gates_outcome_test.go:266
↓ 12 callersFunctionbundleDecode
(t *testing.T, v any)
internal/store/commitment_bundle_v2_test.go:27
↓ 12 callersFunctionbytes32ForTest
()
internal/server/handlers_oauth_test.go:77
↓ 12 callersFunctioncalItems
(m map[string]any)
internal/server/handlers_calendar_test.go:43
↓ 12 callersFunctioncarPointingAt
carPointingAt creates an item in `cars` whose `color` relation names target.
internal/store/relation_links_test.go:49
↓ 12 callersFunctionchangesOf
changesOf reads the human-readable change list the PATCH handler stamps into an activity's metadata, which is what identifies WHICH write a row came f
internal/server/handlers_activity_debounce_actor_test.go:112
↓ 12 callersMethodchannelFor
(workspaceID string)
internal/events/redis_heartbeat_test.go:77
↓ 12 callersFunctionchdir
(t *testing.T, dir string)
internal/cli/agent_identity_test.go:87
↓ 12 callersFunctionclassifyHTTPStatusKind
classifyHTTPStatusKind turns an HTTP error response into a structured envelope, using the dispatcher's known resource context to emit the right error
internal/mcp/errors.go:1108
↓ 12 callersMethodcommitFixture
nativeCommit is a schedule created native, so no conversion guards its overdue deadline. commitFixture is the legacy row a native write converts. comm
internal/store/commitment_c1_test.go:45
↓ 12 callersFunctioncommitmentJournal
(t *testing.T, s *Store, id string)
internal/store/commitment_journal_test.go:25
↓ 12 callersFunctioncommitmentOldRows
(t *testing.T, s *Store)
internal/store/commitment_dates_migration_test.go:102
↓ 12 callersFunctioncommitmentSnapshot
The snapshot includes the complete row, journal and managed reminder, so a refusal cannot hide a partial roles, timing or reminder write.
internal/server/handlers_commitments_timing_test.go:15
↓ 12 callersMethodcount
(t *testing.T, q string, args ...any)
internal/appstore/items_test.go:107
↓ 12 callersFunctioncreateWorkspace
( fixture: SuiteFixture, request: APIRequestContext, label: string )
web/e2e/lib/attachment-viewer.ts:439
← previousnext →1,301–1,400 of 31,743, ranked by callers