Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
31,685 in github.com/PerpetualSoftware/pad
⨍
Functions
31,685
◇
Types & classes
3,533
↓ 13 callers
Function
legacyReminderRow
(t *testing.T, s *Store, state string)
internal/store/reminder_commitment_migration_test.go:60
↓ 13 callers
Function
loadCorpus
(t *testing.T)
internal/materialize/materialize_test.go:46
↓ 13 callers
Function
makeIntegrationPNG
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 callers
Method
managed
(t *testing.T, scheduleID string)
internal/store/schedule_copy_test.go:128
↓ 13 callers
Function
matchRequestBody
(text string)
internal/server/handlers_playbook_match_test.go:56
↓ 13 callers
Method
members
(t *testing.T)
internal/server/handlers_invitation_accept_limit_test.go:30
↓ 13 callers
Function
mustExec
(t *testing.T, db *sql.DB, query string, args ...any)
internal/store/nulscan_test.go:321
↓ 13 callers
Method
native
(t *testing.T, it *models.Item, start string, roles models.CommitmentRolesInput)
internal/store/commitment_links_test.go:34
↓ 13 callers
Function
newAcceptLimitEnv
(t *testing.T)
internal/server/handlers_invitation_accept_limit_test.go:25
↓ 13 callers
Function
newBug3837Fixture
(t *testing.T, accessLifespan time.Duration)
internal/server/bug3837_mcp_credential_tick_test.go:35
↓ 13 callers
Function
newIPRateLimiter
(cfg rateLimitConfig)
internal/server/middleware_ratelimit.go:78
↓ 13 callers
Method
now
()
internal/server/task3939b_push_fixture_test.go:239
↓ 13 callers
Method
occRows
(t *testing.T, scheduleID, state string)
internal/store/schedule_resolve_test.go:89
↓ 13 callers
Function
postOAuthFormBearer
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 callers
Function
preMigrationDB
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 callers
Method
refresh
Bring new rows and tombstones into the window (see the REFRESH note on top).
web/src/lib/stores/chatThread.svelte.ts:347
↓ 13 callers
Method
refuseAppPrincipalQ
refuseAppPrincipalQ returns ErrAppPrincipal when userID is a bot.
internal/store/app_principal.go:39
↓ 13 callers
Method
reload
(t *testing.T)
internal/mcp/dispatch_http_clear_assignment_test.go:121
↓ 13 callers
Method
renegotiateDeadlineAt
(workspaceID, itemID, actor string, until time.Time, reason string, nowT time.Time)
internal/store/commitment.go:599
↓ 13 callers
Function
renegotiateState
(t *testing.T, s *Store)
internal/store/commitment_renegotiate_test.go:47
↓ 13 callers
Method
requestSessionInfo
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 callers
Function
restoreAsUser
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 callers
Function
roleGateReason
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 callers
Function
row
(extra: Partial<AgendaEntry> = {})
web/src/routes/(console)/agenda/agenda.svelte.test.ts:27
↓ 13 callers
Function
runReminderMigration
(s *Store, name, body string)
internal/store/reminder_commitment_migration_test.go:53
↓ 13 callers
Method
scheduleSnapshotTx
(tx *sql.Tx, id string)
internal/store/schedule_journal.go:99
↓ 13 callers
Function
scrubTestUsers
scrubTestUsers creates the deleted-account user and the bystander whose data is the negative control.
internal/store/event_outbox_scrub_test.go:80
↓ 13 callers
Function
shortRereads
(t *testing.T, n int, pause time.Duration)
internal/cli/credentials_bug3828_test.go:43
↓ 13 callers
Method
summary
(ref string)
cmd/pad/cmd_schedule.go:128
↓ 13 callers
Method
targetCommit
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 callers
Function
taskSchema
()
internal/items/validate_test.go:10
↓ 13 callers
Function
titles
(rows []*needs.Row)
internal/server/handlers_me_needs_test.go:160
↓ 13 callers
Function
tlsServer
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 callers
Function
updatedActivityEntries
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 callers
Method
upload
(ctx context.Context, spec store.FenceSpec, itemID string, body []byte, name string)
internal/appstore/attachments_test.go:79
↓ 13 callers
Function
uploadIntegrationPNG
(t *testing.T, srv *Server, slug string, w, h int)
internal/server/handlers_attachments_transform_test.go:41
↓ 13 callers
Function
wantAts
(t *testing.T, got []Occurrence, want ...string)
internal/schedule/nextbetween_test.go:44
↓ 12 callers
Method
Accept
()
internal/server/bug3637_sse_stalled_reader_test.go:83
↓ 12 callers
Method
Addr
()
cmd/pad/chat_synctest_net_test.go:43
↓ 12 callers
Function
AgentNameFromMetadata
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 callers
Function
AppendImplementationNote
(fieldsJSON string, note ItemImplementationNote)
internal/models/item.go:1130
↓ 12 callers
Method
BeginTx
(ctx context.Context, opts driver.TxOptions)
internal/store/nulguard.go:449
↓ 12 callers
Function
CaptureSessionOwner
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 callers
Method
ComputeRef
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 callers
Method
CreateAgentRole
CreateAgentRole creates a new agent role in a workspace.
internal/cli/client.go:1955
↓ 12 callers
Method
CreateComment
(wsSlug, itemSlug string, input models.CommentCreate)
internal/cli/client.go:1235
↓ 12 callers
Method
DeleteScheduleLink
DeleteScheduleLink removes a link. It needs edit on both ends.
internal/store/commitment_links.go:866
↓ 12 callers
Function
DeriveClaimCode
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 callers
Function
FormatForTool
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 callers
Method
GetItemQ
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 callers
Function
IsReservedItemField
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 callers
Method
IsWorkspaceMember
IsWorkspaceMember checks if a user is a member of a workspace.
internal/store/workspace_members.go:1057
↓ 12 callers
Method
JSON
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 callers
Method
LinkOAuthProvider
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 callers
Method
ListAuditLog
ListAuditLog returns activities matching the given audit log filters. Supports filtering by action, actor, workspace, and date range.
internal/store/activities.go:1176
↓ 12 callers
Method
ListDocuments
(workspaceID string, params models.DocumentListParams)
internal/store/documents.go:14
↓ 12 callers
Method
ListMCPAuditByUser
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 callers
Method
ListRemindersForItem
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 callers
Method
MoveLinkedDate
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 callers
Function
NULProtectedColumns
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 callers
Function
ResolveAgentName
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 callers
Method
ServeInline
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 callers
Method
SetExportSpoolDir
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 callers
Method
Subscribe
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:961
↓ 12 callers
Function
TrustedProxyRealIP
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 callers
Function
ValidateExamples
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 callers
Function
ValidatePartialFields
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 callers
Function
WithCollectionAliasFallback
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 callers
Function
WithTokenWorkspaceID
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 callers
Function
WriteChatDirection
()
internal/cli/chat_direction_state.go:25
↓ 12 callers
Method
advance
(d time.Duration)
internal/server/task3939b_push_fixture_test.go:245
↓ 12 callers
Method
any
()
internal/mcp/dispatch_http_schedule.go:111
↓ 12 callers
Function
appendToCatalog
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 callers
Function
assertCensusUnchanged
(t *testing.T, before, after map[string]int)
internal/server/handlers_apps_provision_test.go:68
↓ 12 callers
Function
assertSpoolDirEmpty
(t *testing.T, dir string)
internal/server/task4839_export_limit_test.go:78
↓ 12 callers
Function
attachMatchRunner
(srv *Server, p decision.Provider)
internal/server/handlers_playbook_match_test.go:50
↓ 12 callers
Method
authorizeCollabAccess
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 callers
Method
autoCreateWorkspace
--- 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 callers
Function
bootstrapBody
(email string)
internal/server/handlers_auth_bootstrap_token_test.go:45
↓ 12 callers
Method
build
(workspace string)
internal/cmdhelp/dynamic_test.go:22
↓ 12 callers
Method
buildItem
---- 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 callers
Function
bundleDecode
(t *testing.T, v any)
internal/store/commitment_bundle_v2_test.go:27
↓ 12 callers
Function
bytes32ForTest
()
internal/server/handlers_oauth_test.go:77
↓ 12 callers
Function
calItems
(m map[string]any)
internal/server/handlers_calendar_test.go:43
↓ 12 callers
Function
carPointingAt
carPointingAt creates an item in `cars` whose `color` relation names target.
internal/store/relation_links_test.go:49
↓ 12 callers
Function
changesOf
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 callers
Method
channelFor
(workspaceID string)
internal/events/redis_heartbeat_test.go:77
↓ 12 callers
Function
chdir
(t *testing.T, dir string)
internal/cli/agent_identity_test.go:87
↓ 12 callers
Function
classifyHTTPStatusKind
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 callers
Method
commitFixture
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 callers
Function
commitmentJournal
(t *testing.T, s *Store, id string)
internal/store/commitment_journal_test.go:25
↓ 12 callers
Function
commitmentOldRows
(t *testing.T, s *Store)
internal/store/commitment_dates_migration_test.go:102
↓ 12 callers
Function
commitmentSnapshot
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 callers
Method
count
(t *testing.T, q string, args ...any)
internal/appstore/items_test.go:107
↓ 12 callers
Function
createWorkspace
( fixture: SuiteFixture, request: APIRequestContext, label: string )
web/e2e/lib/attachment-viewer.ts:439
↓ 12 callers
Method
destroy
Stop the timer; for component teardown.
web/src/lib/items/saveTracker.svelte.ts:92
↓ 12 callers
Method
device
device registers a device for u on a fresh live session, created ago ago.
internal/server/task3939b_push_fixture_test.go:150
↓ 12 callers
Method
do
(method, path, tok string, body any)
internal/server/workspace_access_notify_test.go:116
↓ 12 callers
Function
drain
drain reads up to n events from ch with a short timeout so a missing/slow event doesn't hang the test.
internal/collab/bus_test.go:258
↓ 12 callers
Method
encrypt
encrypt encrypts plaintext using AES-256-GCM and returns a base64-encoded ciphertext prefixed with "enc:" to distinguish from plaintext values.
internal/store/encryption.go:33
← previous
next →
1,301–1,400 of 31,685, ranked by callers