MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 15 callersFunctionmustList
mustList reads a registry's session list, failing the test if the read itself failed. ListForUser gained an error when an out-of-process implementati
internal/server/session_presence_test.go:192
↓ 15 callersFunctionnativeBundle
(t *testing.T)
internal/store/commitment_bundle_v2_test.go:46
↓ 15 callersFunctionnewFenceFixture
(t *testing.T)
internal/store/fenced_tx_test.go:40
↓ 15 callersFunctionnewRecordingObserver
()
internal/watchevents/observer_test.go:30
↓ 15 callersFunctionnewRequestCapture
()
internal/mcp/dispatch_http_advanced_test.go:907
↓ 15 callersMethodnonTerminalFilter
nonTerminalFilter builds a WHERE fragment (plus ordered args) that keeps only items whose resolved done-field value is NOT one of their collection's t
internal/store/items.go:5472
↓ 15 callersMethodoauthAvailable
oauthAvailable is PLAN-2310 DR-1's second predicate: MCP available, an OAuth server constructed, and, off cloud, an https auth-server URL. The server
internal/server/handlers_admin_mcp.go:78
↓ 15 callersFunctionoauthOnlyCloud
oauthOnlyCloud is a cloud server with an initialized instance and an OAuth-only account holding a fresh session.
internal/server/bug3336_account_delete_test.go:92
↓ 15 callersFunctionok
(body string)
internal/decision/decision_test.go:80
↓ 15 callersFunctionoutboxPayloadFor
outboxPayloadFor returns the decoded payload of the single event of the given type for an item, failing if there is not exactly one.
internal/store/event_outbox_test.go:50
↓ 15 callersMethodpendingOutbox
(t *testing.T)
internal/server/handlers_apps_delivery_test.go:89
↓ 15 callersMethodpersistedFields
persistedFields reads the destination item's fields blob back out of the database. Deliberately NOT the response body: the contract being asserted is
internal/server/handlers_items_copy_test.go:121
↓ 15 callersFunctionrender
(entries: TimelineEntry[])
web/src/lib/components/timeline/HistoryView.svelte.test.ts:71
↓ 15 callersMethodrenegotiateCommitmentAt
(workspaceID, itemID, actor string, in models.CommitmentRenegotiateInput, nowT time.Time, expectedAssignee *st
internal/store/commitment_renegotiate.go:33
↓ 15 callersFunctionrunItemList
runItemList runs `pad item list <args>` in the given format and returns stdout, stderr and the command's error.
cmd/pad/bug4024_item_list_json_autopage_test.go:105
↓ 15 callersFunctionscriptPath
(t *testing.T)
internal/buildtools/install_refresh_test.go:209
↓ 15 callersFunctionsetSQLiteRestoreEnv
(t *testing.T, dataDir string)
cmd/pad/cmd_db_restore_test.go:612
↓ 15 callersMethodspec
()
internal/store/fenced_tx_test.go:59
↓ 15 callersFunctiontask3867Patch
(e *tokenAuthEnv, body any)
internal/server/task3867_token_access_test.go:35
↓ 15 callersFunctionwaitForFrameWithEvent
(t *testing.T, frames <-chan string, eventType string)
internal/server/handlers_events_resume_test.go:65
↓ 15 callersFunctionwantTitles
(t *testing.T, label string, rows []*needs.Row, want ...string)
internal/server/handlers_me_needs_test.go:168
↓ 14 callersMethodAddConnectionWorkspace
AddConnectionWorkspace inserts a (request_id, workspace_id) row in the allow-list join table. Idempotent: re-adding an existing pair is a no-op (INSER
internal/store/oauth_connections.go:508
↓ 14 callersMethodAppendYjsUpdate
(itemID string, data []byte, schemaVersion string)
internal/collab/manager_test.go:135
↓ 14 callersFunctionAsAPIError
AsAPIError returns the *APIError in err's chain, or nil. Use it instead of a direct err.(*APIError) assertion: a write that sent an op_key comes back
internal/cli/client.go:3226
↓ 14 callersMethodClaimDecisionJobs
ClaimDecisionJobs claims up to limit owed jobs for runner, oldest first, each leased until now+lease. The scan and the claim are separate statements;
internal/store/decisions.go:391
↓ 14 callersMethodCreateAgentRole
(workspaceID string, input models.AgentRoleCreate)
internal/store/agent_roles.go:13
↓ 14 callersFunctionFormatInstant
FormatInstant renders an instant for the viewer. JSON timestamps bypass it.
internal/cli/zone.go:24
↓ 14 callersMethodInsertMCPAuditEntry
InsertMCPAuditEntry persists one audit row. Called from the audit middleware's async writer; the caller owns the buffered channel + the ordering, so t
internal/store/mcp_audit.go:54
↓ 14 callersMethodListTraitedCollections
(workspaceID string)
internal/store/collections.go:433
↓ 14 callersMethodLockWorkspaceSeq
LockWorkspaceSeq takes the workspace lock every human item write takes for item_number and seq (insertItemTx, acquireWorkspaceSeqLock), so an app writ
internal/store/fenced_tx.go:159
↓ 14 callersFunctionLookupBuiltin
LookupBuiltin returns the built-in with this key.
internal/collections/builtin.go:204
↓ 14 callersFunctionNewClientFromURLWithAgentName
NewClientFromURLWithAgentName uses an already resolved agent name without consulting the session registry, workspace configuration or environment for
internal/cli/client.go:87
↓ 14 callersFunctionNewRedisBusWithKeys
NewRedisBusWithKeys is NewRedisBus with an explicit key namespace (BUG-2724). cmd/pad/cmd_server.go uses this one, passing the value shared with the w
internal/events/redis_bus.go:905
↓ 14 callersFunctionNewStorage
NewStorage wraps a *store.Store as a fosite-compatible adapter. The store must be a fully-initialized pad store (migrations applied); no validation he
internal/oauth/storage.go:131
↓ 14 callersFunctionNewTitleEscaper
NewTitleEscaper precomputes the escaped forms for one rename. oldTitle is REQUIRED, not optional, and that is deliberate: it is the only thing that c
internal/links/links.go:563
↓ 14 callersFunctionNormalizeItemLinkType
NormalizeItemLinkType canonicalizes supported link types and returns an error for unknown values.
internal/models/item_links.go:33
↓ 14 callersMethodProvisionAppInstall
ProvisionAppInstall provisions an app install in one transaction. THE RE-CHECK IS A RE-DERIVATION. The transaction does not re-verify a list of facts
internal/store/app_provision.go:207
↓ 14 callersMethodRegisterPushDevice
RegisterPushDevice binds a push token to a session in ONE transaction. When this user already holds the token, the row is UPDATED in place: id and cre
internal/store/push_devices.go:51
↓ 14 callersMethodResolveMCPEndpoints
ResolveMCPEndpoints derives the MCP addressing from the configuration. It never fails: PAD_URL also tells the CLI where the server is, so an install t
internal/config/mcp.go:94
↓ 14 callersMethodScheduleGates
ScheduleGates is what one reader is shown of an item's gates. It is DISPLAY only: it evaluates every gate without writing, and then leaves out of the
internal/store/commitment_gates.go:564
↓ 14 callersMethodSend
(ctx context.Context, msgs []notify.Message)
internal/server/push_dispatch.go:78
↓ 14 callersMethodSetOAuthServer
OAuth 2.1 authorization-server HTTP handlers (PLAN-943 TASK-951). Sub-PR C built the /register, /authorize, /authorize/decide and token endpoints + th
internal/server/handlers_oauth.go:78
↓ 14 callersMethodSetSSELimits
SetSSELimits configures the streaming connection limits. A value of 0 means unlimited for any of them. `global` and `perUser` bound BOTH stream endpo
internal/server/server.go:1554
↓ 14 callersMethodaccessKicks
accessKicks returns the server's kicker, created on first use so every constructor path (tests included) gets one.
internal/server/access_kick.go:135
↓ 14 callersFunctionacquire
(exemptRoot: HTMLElement)
web/src/lib/a11y/viewerBackdrop.ts:217
↓ 14 callersMethodallow
allow charges one token from key's bucket and reports whether the request may proceed. The lookup and the charge happen under one lock hold: a caller
internal/server/middleware_ratelimit.go:137
↓ 14 callersFunctionappendTestNote
(t *testing.T, s *Store, itemID, summary, details string)
internal/store/item_entries_index_test.go:35
↓ 14 callersFunctionasCap
(t *testing.T, err error, kind CapKind)
internal/schedule/caps_test.go:9
↓ 14 callersFunctionassertSourceSet
(t *testing.T, p *AttachmentCopyPlan, want ...string)
internal/store/attachments_copy_plan_test.go:115
↓ 14 callersFunctionbindReactiveEpoch
(hook: { read: null | (() => number); write: null | ((n: number) => void); })
web/src/test/identityEpochMock.svelte.ts:63
↓ 14 callersMethodcancelLink
The cancel policy and "No longer needed" (TASK-4353, 2c). A link's cancel_policy says what a cancelled parent occurrence does to the child occurrence
internal/store/commitment_cancel_test.go:19
↓ 14 callersFunctionchatMessage
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_chat_test.go:57
↓ 14 callersFunctionclearSessionEnv
clearSessionEnv unsets every variable CaptureSessionOwner and RegisterSession read, so a test's own harness (this suite runs inside Claude Code someti
internal/cli/session_owner_test.go:15
↓ 14 callersFunctioncontentState
(t *testing.T, s *store.Store, itemID string)
internal/store/bug3124_content_bearing_test.go:51
↓ 14 callersFunctioncountOpLog
BUG-2840 half B. On the no-room / no-applier path a content PATCH prunes the item's Yjs op-log and writes items.content. The prune used to run FIRST,
internal/server/handlers_collab_prune_atomicity_test.go:27
↓ 14 callersFunctioncounterValue
counterValue is a tiny helper that pulls the float value out of a Prometheus counter.
internal/server/middleware_mcp_metrics_test.go:209
↓ 14 callersFunctioncreateBlocksLink
helper: create a "blocks" link from source to target
internal/server/handlers_dashboard_test.go:37
↓ 14 callersMethoddeadlineOverride
(t *testing.T, sc *models.ItemSchedule, value string)
internal/store/schedule_deadline_eval_test.go:203
↓ 14 callersFunctiondecisionSettingsServer
decisionSettingsServer returns a server with an encryption key, the production question sets, a tick that never fires on its own (enabling typesafe mu
internal/server/decision_settings_test.go:46
↓ 14 callersFunctiondeviceTokens
(t *testing.T, s *Store, userID string)
internal/store/push_devices_test.go:39
↓ 14 callersFunctiondoJSONReq
doJSONReq drives a JSON request through srv and returns the recorder. Mirrors the local pattern in internal/server/server_test.go::doRequest, kept pac
internal/mcp/dispatch_http_routes_test.go:45
↓ 14 callersFunctiondoRequestFromRemoteAddr
(srv *Server, method, path string, body interface{}, remoteAddr string)
internal/server/server_test.go:49
↓ 14 callersFunctiondoRequestWithCookieFrom
doRequestWithCookieFrom is like doRequestWithCookie but lets the caller set the request RemoteAddr so tests can simulate a session jumping to a differ
internal/server/middleware_session_ip_test.go:18
↓ 14 callersFunctiondoTransform
(srv *Server, slug, attachmentID string, body transformRequestBody)
internal/server/handlers_attachments_transform_test.go:29
↓ 14 callersFunctioneachBackend
(t *testing.T, fn func(t *testing.T, s *store.Store))
internal/store/bug3244_set_aside_test.go:18
↓ 14 callersMethodexec
(t *testing.T, q string, args ...any)
internal/store/schedule_copy_test.go:35
↓ 14 callersMethodfailSent
TASK-4032: a push the gateway accepted whose 'sent' record then fails must not be sent again every lease. The fault is a test-only DB trigger that abo
internal/server/task4032_push_record_failure_test.go:25
↓ 14 callersFunctionfullPreflight
── fixtures ───────────────────────────────────────────────────────────── fullPreflight is a preview where EVERY bucket and EVERY warning is non-trivi
cmd/pad/item_copy_test.go:22
↓ 14 callersMethodgetSource
getSource performs GET on the source item exactly as the router would and requires a 200. Use rawGetSource when the status is what is under test.
internal/server/item_moved_to_test.go:124
↓ 14 callersMethodgoAsync
goAsync spawns fn in a goroutine that's tracked by s.bg, so Stop() can wait for in-flight background work to finish. Use this for any fire-and-forget
internal/server/server.go:729
↓ 14 callersFunctionisolateHome
isolateHome redirects HOME to a temp dir and chdirs to a fresh temp project dir so credential writes and .pad.toml detection don't leak into the real
cmd/pad/setup_headless_test.go:89
↓ 14 callersFunctionitemUrl
(fixture: SuiteFixture, slug: string)
web/e2e/lib/attachment-viewer.ts:421
↓ 14 callersFunctionloaded
(r: ReturnType<typeof mount>)
web/src/lib/components/items/itemDetailIdentityLoad.svelte.test.ts:262
↓ 14 callersFunctionmalformed
(code Code, part, value, detail string)
internal/schedule/errors.go:46
↓ 14 callersMethodmanifest
manifest returns a valid manifest for the test app with one companion collection and the golden playbook as its artifact.
internal/server/handlers_apps_install_test.go:120
↓ 14 callersMethodmustBePinDenial
mustBePinDenial fails unless rr is the 403 a pinned token gets, naming its workspace and how to mint an unscoped token.
internal/server/bug3982_pinned_token_test.go:64
↓ 14 callersFunctionnewAppsEnv
(t *testing.T)
internal/server/handlers_apps_install_test.go:53
↓ 14 callersFunctionnewMCPStallFixture
(t *testing.T, opts ...mcpgo.StreamableHTTPOption)
internal/server/bug3808_mcp_stalled_reader_test.go:43
↓ 14 callersFunctionnewParentFixture
(t *testing.T)
internal/mcp/dispatch_http_clear_parent_test.go:46
↓ 14 callersFunctionnewPlanLimitEnv
(t *testing.T)
internal/server/handlers_plan_limit_race_test.go:36
↓ 14 callersFunctionnilIfEmpty
(s string)
internal/store/activities.go:1089
↓ 14 callersMethodnotifRow
(t *testing.T, id string)
internal/store/task3939_push_dispatch_test.go:29
↓ 14 callersMethodoutstanding
(t *testing.T, item *models.Item)
internal/store/schedule_end_guard_test.go:31
↓ 14 callersFunctionpassThrough
passThrough returns an ActionFn that forwards the input verbatim to the given cmdPath via env.Dispatch. The vast majority of catalog actions use this
internal/mcp/catalog.go:189
↓ 14 callersFunctionpgBounded
pgBounded is pgOnly followed by BoundRuntimePool(l).
internal/store/runtime_pool_test.go:44
↓ 14 callersMethodpublishItemEventWithName
publishItemEventWithName publishes a real-time event for item changes with actor name. `seq` is the item's workspace-scoped monotonic mutation cursor
internal/server/handlers_items.go:3657
↓ 14 callersFunctionr
()
web/src/lib/components/editor/extensions/flankingMarks.svelte.test.ts:89
↓ 14 callersMethodread
(t *testing.T, canRead func(string) bool)
internal/store/milestone_test.go:63
↓ 14 callersFunctionrefuse
(format string, args ...any)
internal/appstore/items.go:38
↓ 14 callersFunctionrelationIndexFixture
relationIndexFixture returns a workspace with Cars (carrying a `color` relation) and Colors, plus one colour to point at.
internal/store/relation_links_test.go:33
↓ 14 callersFunctionrelease
()
web/src/lib/stores/workspaceRecovery.svelte.test.ts:158
↓ 14 callersFunctionreminderMigrationStore
(t *testing.T, pg bool)
internal/store/reminder_commitment_migration_test.go:12
↓ 14 callersMethodreopenOccurrenceAt
(workspaceID, itemID string, in ReopenInput, now time.Time)
internal/store/schedule_reopen.go:468
↓ 14 callersFunctionrequireSafeScriptEnv
requireSafeScriptEnv is the harness guard every install-refresh exec in this package passes through BEFORE the script runs (BUG-4066 incident). A test
internal/buildtools/bug4066_harness_guard_test.go:99
↓ 14 callersFunctionrestoredBundle
(t *testing.T, f *schedFixture, b map[string]any)
internal/store/commitment_bundle_v2_test.go:65
↓ 14 callersFunctionsend
( request: APIRequestContext, f: Fixture, n: number, body: string, agent?: string )
web/e2e/chat-thread-read.spec.ts:41
↓ 14 callersFunctionsettle
()
web/src/lib/components/items/itemDetailIdentityLoad.svelte.test.ts:190
↓ 14 callersFunctionstop
(make)
plugin/hooks/register.js:511
↓ 14 callersFunctiontask3392Bot
task3392Bot creates a bot through the one real door, then makes it CREDENTIAL-ELIGIBLE by direct SQL: a VALID bcrypt hash of a known password and a ve
internal/store/task3392_bot_principal_test.go:29
↓ 14 callersFunctiontask3867Factor
(t *testing.T, e *tokenAuthEnv, want string)
internal/server/task3867_token_access_test.go:47
← previousnext →1,001–1,100 of 28,840, ranked by callers