MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 14 callersMethodtick
(t *testing.T)
internal/decision/attention_test.go:224
↓ 14 callersMethodtick
tick fires what is due at ts and returns the fired rows of one workspace.
internal/store/schedule_copy_test.go:113
↓ 14 callersFunctiontokenPinFrom
tokenPinFrom returns the request's token pin, or nil when the credential is not a workspace-pinned user token (a cookie or CLI session, an OAuth token
internal/server/pinned_token.go:26
↓ 14 callersFunctionu3cRun
(t *testing.T, srv *httptest.Server, build func() interface { SetArgs([]string) Execute() error }, args ...s
cmd/pad/task3462_u3c_library_builtin_test.go:81
↓ 14 callersFunctionuploadAttachment
( fixture: SuiteFixture, request: APIRequestContext, itemId: string, filename: string, mimeType = 'image/
web/e2e/lib/attachment-viewer.ts:470
↓ 14 callersFunctionuploadHelper
uploadHelper does a fresh upload and returns the parsed response.
internal/server/handlers_attachments_download_test.go:19
↓ 14 callersFunctionversionBodySHA256
versionBodySHA256 is the body_sha256 of a version standing for body (BUG-3820): hex sha256 of its UTF-8 bytes.
internal/store/items.go:6719
↓ 14 callersFunctionwaitFor
waitFor polls until cond holds or the deadline passes. Delivery crosses a goroutine and a socket, so a bare read after Publish is a race.
internal/watchevents/redis_bus_integration_test.go:40
↓ 14 callersFunctionwedge
wedge simulates the failure this whole unit exists to detect: the outbound probe keeps SUCCEEDING and nothing ever comes back. It has to be simulated
internal/events/redis_heartbeat_test.go:116
↓ 14 callersFunctionwriteAppJSON
(w http.ResponseWriter, status int, v any)
internal/server/app_api_read.go:130
↓ 14 callersFunctionwriteRestoreSQLite
Copy a quiescent committed WAL tuple while its scratch connection is open, then close the scratch DB. The fixture itself has no live connection.
cmd/pad/cmd_db_restore_test.go:78
↓ 14 callersFunctionwriteWorkspaceNotFound
writeWorkspaceNotFound writes the workspace-resolution 404 (BUG-3069). The message is passed through because two doors have long said "Workspace not f
internal/server/server.go:3042
↓ 13 callersMethodAppend
Append writes line plus a newline: the same bytes the caller printed.
internal/cli/chat_seen.go:133
↓ 13 callersMethodApply
Apply walks doc and stamps EnumSource + resolved Enum values on matching args and flags. Resolution failures are silent: the document continues to adv
internal/cmdhelp/dynamic.go:113
↓ 13 callersMethodCreateAttachmentForLiveItem
CreateAttachmentForLiveItem inserts an attachment row, refusing when its item_id does not name a LIVE item of the same workspace — re-checked and pinn
internal/store/attachments.go:227
↓ 13 callersMethodDeleteScheduleGate
DeleteScheduleGate removes a gate. It needs edit on both ends, as a link does, and works whether or not either end is soft-deleted: an end absent from
internal/store/commitment_gates.go:285
↓ 13 callersMethodError
()
internal/models/view_calendar.go:44
↓ 13 callersMethodError
()
internal/schedule/caps.go:92
↓ 13 callersFunctionExtractItemDecisionLog
(fieldsJSON string)
internal/models/item.go:979
↓ 13 callersMethodFind
Find reports how id resolves and, when it is found, its text's hash.
internal/verification/verification.go:73
↓ 13 callersMethodGetItemBySlug
(workspaceID, slug string)
internal/store/items.go:933
↓ 13 callersMethodGetUserQ
GetUserQ is GetUser parameterized over its executor (see Queryer).
internal/store/users.go:177
↓ 13 callersMethodListCollectionsMinimal
ListCollectionsMinimal returns collection rows populated with just the fields needed for done-detection context and slug lookups: ID, Slug, Schema, Se
internal/store/collections.go:379
↓ 13 callersMethodListItemVerifications
ListItemVerifications returns an item's verdicts, oldest first (created_at, then id). With latestOnly, it returns only the newest row per criterion, w
internal/store/verifications.go:140
↓ 13 callersFunctionListSessions
ListSessions reads every registry record and returns them with a liveness verdict each, newest first. A malformed file is returned as a Malformed reco
internal/cli/session_registry.go:307
↓ 13 callersMethodListUserOAuthConnections
ListUserOAuthConnections returns every OAuth connection the user has active. "Active" means at least one access OR refresh token in the chain still ha
internal/store/connected_apps.go:59
↓ 13 callersFunctionNewRefPrefixFixture
(t *testing.T, postgres, identExists bool)
internal/store/storetest/ref_prefix.go:21
↓ 13 callersFunctionParseRule
ParseRule reads an RRULE value (no "RRULE:" prefix) strictly: RFC 5545 3.3.10 grammar, every combination the RFC forbids, and rules that can never pro
internal/schedule/rule.go:69
↓ 13 callersFunctionParseTrustedProxyCIDRs
ParseTrustedProxyCIDRs parses a comma-separated list of CIDRs or bare IPs from the PAD_TRUSTED_PROXIES setting. Bare IPs get /32 (IPv4) or 128 (IPv6).
internal/server/middleware_realip.go:109
↓ 13 callersMethodPing
Ping verifies the database connection is alive.
internal/store/store.go:668
↓ 13 callersFunctionRedactPath
RedactPath removes credential-bearing path tails, including malformed and unmatched requests for which a router has no route template yet. URL.Path is
internal/logging/redaction.go:156
↓ 13 callersFunctionRegisterCatalog
RegisterCatalog installs the v0.2 catalog tools on srv. Returns the count of tools registered (excluding pad_set_workspace, which the cmdhelp-walk pat
internal/mcp/catalog.go:230
↓ 13 callersFunctionRepair
Repair is the ONE implementation of "make this value satisfy the invariant", and it lives beside the predicate for the same reason the predicate is sh
internal/textguard/repair.go:28
↓ 13 callersMethodResolveLateRelationDefaults
ResolveLateRelationDefaults resolves relation values that appeared in fieldMap only AFTER validation ran — i.e. schema defaults `ValidateFields` injec
internal/store/relation_referents.go:1696
↓ 13 callersFunctionResolveTool
ResolveTool finds an AgentTool by name or alias. Returns nil if not found.
internal/cli/agents.go:152
↓ 13 callersFunctionRewriteBracketsAt
RewriteBracketsAt rewrites every bracket named in `rewrites` in a SINGLE pass over `content`, returning the new content and how many rewrites it appli
internal/links/links.go:303
↓ 13 callersFunctionScheduleMissed
ScheduleMissed counts the occurrences that passed unresolved AFTER the outstanding one: instances whose wall is after O's wall and which have passed f
internal/store/schedule_outstanding.go:75
↓ 13 callersFunctionSessionArmedLocally
SessionArmedLocally reports whether this session has a live explicit ARM (LocalArmOn). Retained for callers that only ask the ON question; the full tr
internal/cli/session_arm_state.go:556
↓ 13 callersFunctionSetWorkspaceTool
SetWorkspaceTool returns the (Tool, Handler) pair for the built-in pad_set_workspace tool. The handler updates state in place. Exposed as a construct
internal/mcp/workspace.go:122
↓ 13 callersMethodSoftDeleteAttachment
SoftDeleteAttachment marks the given attachment row deleted (and every variant whose parent_id points at it) so the orphan GC will reclaim the bytes a
internal/store/attachments.go:1510
↓ 13 callersMethodSubscriberCount
SubscriberCount returns the number of active subscribers whose itemID matches. Used by the room manager to decide when the active peer count has dropp
internal/collab/memory_bus.go:189
↓ 13 callersMethodTotal
Total is the number of offending values.
internal/store/nulscan.go:123
↓ 13 callersMethodValidate
Validate runs the checks that need the schedule's Start. loc is the pinned zone, or nil for a floating schedule. It refuses an all-day schedule with a
internal/schedule/rule.go:397
↓ 13 callersFunctionadd
(names: Set<string>)
web/src/test/identityFenceAst.ts:815
↓ 13 callersFunctionafterCommitReadback
(kind, id string)
internal/store/testing_helpers.go:271
↓ 13 callersFunctionassertRestoreSQLiteValue
(t *testing.T, path, want string)
cmd/pad/cmd_db_restore_test.go:159
↓ 13 callersMethodbuildCommitmentAccess
buildCommitmentAccess runs only for an already admitted workspace. All reads use q, including when a mutation reloads permissions inside its transacti
internal/server/commitment_access.go:45
↓ 13 callersFunctioncalls
()
web/src/lib/components/layout/YouNav.svelte.test.ts:30
↓ 13 callersFunctioncaptureUpdateBody
captureUpdateBody runs `item update` against a fake server and returns the decoded PATCH body. The GET is the CLI's own pre-fetch (it resolves the ite
cmd/pad/item_column_fields_test.go:32
↓ 13 callersFunctionchildLinkTypeSQL
childLinkTypeSQL returns a SQL IN clause fragment like "'parent','implements'" for filtering item_links by child relationship types.
internal/store/items.go:30
↓ 13 callersFunctionchunkStrings
chunkStrings splits ids into slices of at most size elements.
internal/store/attachments_copy_plan.go:759
↓ 13 callersFunctioncollectionSchemaJSONFromFlags
collectionSchemaJSONFromFlags resolves the --schema and --fields flags into a marshaled CollectionSchema JSON string. Exactly one of schemaInput or f
cmd/pad/cmd_collection.go:81
↓ 13 callersFunctioncopyInput
(in map[string]any)
internal/mcp/task4105_schedule_test.go:110
↓ 13 callersFunctioncreateBulkTestItem
createBulkTestItem creates a task and returns it.
internal/server/handlers_items_bulk_test.go:17
↓ 13 callersFunctiondecodeEnvelope
decodeEnvelope helper extracts the ErrorEnvelope from an MCP error result. Uses textOf (the shared helper in catalog_test.go) to retrieve the JSON bod
internal/mcp/errors_test.go:309
↓ 13 callersFunctiondistinctPNG
distinctPNG returns a valid PNG whose bytes differ per seed, so an assertion on served content can tell one blob from another. The download handler ne
internal/server/handlers_attachments_download_authz_test.go:149
↓ 13 callersMethoddoAs
(t *testing.T, rt capRoute, host, remoteAddr string)
cmd/pad/mcp_capability_test.go:492
↓ 13 callersMethodend
end stops any further keepalive. Called once the transport returns, before mcpBoundWrites joins the keepalive goroutine and itself returns. It is not
internal/server/mcp_stream_keepalive.go:137
↓ 13 callersFunctionexecuteSQLiteRestore
(t *testing.T, backup string)
cmd/pad/cmd_db_restore_test.go:172
↓ 13 callersMethodfireOneReminder
fireOneReminder is the arbiter plus the emission, in one transaction. Returns (nil, nil) when another pass won the row or its item is gone.
internal/store/reminders.go:626
↓ 13 callersFunctionfmtInstant
fmtInstant renders an RFC3339 instant in the viewer's zone (loc overrides it when the caller named one), never the machine's.
cmd/pad/cmd_schedule.go:61
↓ 13 callersFunctiongetSessions
(t *testing.T, baseURL, token string)
internal/server/handlers_sessions_test.go:26
↓ 13 callersFunctiongroupStatus
(t *testing.T, rr *httptest.ResponseRecorder, want int)
internal/server/handlers_workspace_groups_test.go:45
↓ 13 callersFunctioni
(n int)
internal/store/commitment_c1_test.go:19
↓ 13 callersFunctionimportWithLinks
importWithLinks replaces a bundle's links and imports it.
internal/store/schedule_link_import_test.go:300
↓ 13 callersMethodinvalidateScheduleReopenTx
(tx *sql.Tx, id string)
internal/store/schedule_reopen.go:148
↓ 13 callersMethodinvalidateWorkspaceAccess
invalidateWorkspaceAccess is invalidateUserAccess for every connection on a workspace.
internal/server/access_kick.go:233
↓ 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:45
↓ 13 callersFunctionloadCorpus
(t *testing.T)
internal/materialize/materialize_test.go:46
↓ 13 callersMethodmanaged
(t *testing.T, scheduleID string)
internal/store/schedule_copy_test.go:128
↓ 13 callersMethodmembers
(t *testing.T)
internal/server/handlers_invitation_accept_limit_test.go:30
↓ 13 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
↓ 13 callersFunctionnewAcceptLimitEnv
(t *testing.T)
internal/server/handlers_invitation_accept_limit_test.go:25
↓ 13 callersFunctionnewIPRateLimiter
(cfg rateLimitConfig)
internal/server/middleware_ratelimit.go:78
↓ 13 callersFunctionnewRedisPresencePair
BUG-2698 — the registry half. These drive TWO RedisSessionPresence values against ONE miniredis, because that is what the bug is: two padd processes
internal/server/session_presence_redis_test.go:19
↓ 13 callersFunctionnewVerifiedEmailFixture
(t *testing.T, cloud bool)
internal/server/middleware_verified_email_test.go:46
↓ 13 callersMethodnow
()
internal/server/task3939b_push_fixture_test.go:239
↓ 13 callersFunctionplantLegacyRows
dropAllNULTriggers turns the store's database into a pre-S2 one for the duration of a test, so a raw handle can plant the LEGACY rows this unit exists
internal/store/nulscan_test.go:19
↓ 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 callersMethodrenegotiateDeadlineAt
(workspaceID, itemID, actor string, until time.Time, reason string, nowT time.Time)
internal/store/commitment.go:561
↓ 13 callersFunctionrenegotiateState
(t *testing.T, s *Store)
internal/store/commitment_renegotiate_test.go:47
↓ 13 callersMethodresolvedRefs
resolvedRefs resolves a share link (optionally with a password header) and returns its attachment_refs map.
internal/server/handlers_share_attachments_test.go:193
↓ 13 callersFunctionrunReminderMigration
(s *Store, name, body string)
internal/store/reminder_commitment_migration_test.go:38
↓ 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 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
↓ 13 callersMethodsummary
(ref string)
cmd/pad/cmd_schedule.go:123
↓ 13 callersFunctiontask3462ItemByTitle
(t *testing.T, srv *Server, wsSlug, coll, title string)
internal/server/task3462_builtin_origin_test.go:29
↓ 13 callersFunctiontask3867Verify
(e *tokenAuthEnv, body any)
internal/server/task3867_token_access_test.go:44
↓ 13 callersFunctiontaskSchema
()
internal/items/validate_test.go:10
↓ 13 callersFunctiontestStoreSQLite
(t *testing.T)
internal/store/store_test.go:54
↓ 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 callersFunctiontokenWorkspaceID
tokenWorkspaceID returns the workspace ID set by the TokenAuth middleware, or an empty string if no token was used.
internal/server/middleware_auth.go:646
↓ 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 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 callersMethodAddr
()
cmd/pad/chat_synctest_net_test.go:43
↓ 12 callersFunctionAppendImplementationNote
(fieldsJSON string, note ItemImplementationNote)
internal/models/item.go:1119
← previousnext →1,101–1,200 of 28,840, ranked by callers