Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
28,840 in github.com/PerpetualSoftware/pad
⨍
Functions
28,840
◇
Types & classes
3,245
↓ 25 callers
Function
newAttentionFixture
(t *testing.T)
internal/decision/attention_test.go:126
↓ 25 callers
Function
newCopyRelationFixtureWith
newCopyRelationFixtureWith builds the relation fixture with two knobs the default constructor does not need: a `default` on the DESTINATION's relation
internal/server/handlers_items_copy_relation_test.go:309
↓ 25 callers
Function
newDeliveryEnv
newDeliveryEnv installs the test app, flags its pinned origin for webhooks as well as fetches, attaches a dispatcher, and drains what provisioning emi
internal/server/handlers_apps_delivery_test.go:34
↓ 25 callers
Function
newFake
(t *testing.T, handler func(f *fake, req wireRequest, raw []byte, w http.ResponseWriter))
internal/decision/decision_test.go:37
↓ 25 callers
Function
newHarness
(t *testing.T, mode string, tweak func(*SupervisorConfig))
internal/materialize/supervisor_test.go:315
↓ 25 callers
Function
noWorkspaceResult
noWorkspaceResult builds the standard ErrNoWorkspace envelope with available_workspaces populated by the supplied lookup. Lookup is best-effort: failu
internal/mcp/errors.go:397
↓ 25 callers
Function
post
(request: APIRequestContext, fixture: SuiteFixture, path: string, data: unknown)
web/e2e/bug-3038-list-retry-rederives.spec.ts:27
↓ 25 callers
Function
recordingStub
recordingStub answers every request through reply and records it.
cmd/pad/task4105_remind_oneshot_test.go:16
↓ 25 callers
Method
removeEventListener
(type: 'toolchange', listener: (ev: Event) => void)
web/src/lib/webmcp/types.d.ts:79
↓ 25 callers
Method
resolve
(body any)
internal/server/handlers_commitments_resolve_test.go:24
↓ 25 callers
Function
run
(m Mutator[string])
internal/appstore/testdata/genericiface/x.go:13
↓ 25 callers
Method
sched
sched makes an item held by u with a one-shot at start (a wall, UTC).
internal/server/bootstrap_agenda_test.go:47
↓ 25 callers
Function
stdioCall
stdioCall runs a pad_item action against a recording dispatcher, as the stdio server does, and returns what reached it.
internal/mcp/task4105_schedule_test.go:72
↓ 25 callers
Function
validTOTPCode
validTOTPCode mints the current valid TOTP code for a secret, using the same library the handler validates against.
internal/server/handlers_account_test.go:502
↓ 25 callers
Function
walk
(node: Node, visit: (n: Node, ancestors: Node[]) => void, ancestors: Node[] = [])
web/src/test/identityFenceAst.ts:269
↓ 25 callers
Method
writeItemResolveError
writeItemResolveError distinguishes a soft-deleted (archived) item from a genuinely-missing one for mutation handlers. An archived item still appears
internal/server/handlers_items.go:1266
↓ 24 callers
Method
Day
Day returns index of the day in a week (0 for MO, 6 for SU)
internal/schedule/internal/rrule/rrule.go:77
↓ 24 callers
Method
GetItemIncludeDeleted
GetItemIncludeDeleted finds an item by id including soft-deleted items. Used by code paths that need to act on records the user already owns even thou
internal/store/items.go:1139
↓ 24 callers
Method
ListItemVersions
ListItemVersions returns all versions for an item.
internal/store/items.go:6928
↓ 24 callers
Method
ListWorkspaces
(ctx context.Context)
internal/mcp/errors.go:450
↓ 24 callers
Method
SetAddWorkspaceMemberCommitHookForTesting
SetAddWorkspaceMemberCommitHookForTesting routes the COMMIT of AddWorkspaceMember and AcceptWorkspaceInvitation (commitWorkspaceMemberTx, BUG-3281) th
internal/store/testing_helpers.go:185
↓ 24 callers
Method
SetEncryptionKey
SetEncryptionKey configures the store's AES-256 encryption key for encrypting sensitive fields (e.g., TOTP secrets) at rest. The key must be exactly 3
internal/store/encryption.go:22
↓ 24 callers
Method
Unsubscribe
Unsubscribe removes a subscriber and closes its channel. Safe to call with an already-removed channel — no-op in that case.
internal/collab/bus.go:120
↓ 24 callers
Method
UserCount
UserCount returns the total number of registered users.
internal/store/users.go:712
↓ 24 callers
Function
WriteArmState
WriteArmState arms the current session (an explicit ON marker). See writeArmStateFile.
internal/cli/session_arm_state.go:196
↓ 24 callers
Function
authedAgentRequest
BUG-2763. The activity debounce coalesced two writes by DIFFERENT writers into one row whenever they shared a user account — which every agent does, b
internal/server/handlers_activity_debounce_actor_test.go:31
↓ 24 callers
Function
chatDM
(t *testing.T, s *Store, owner *models.User, agent string)
internal/store/conversations_test.go:22
↓ 24 callers
Method
child
(t *testing.T, col *models.Collection, title string)
internal/store/milestone_test.go:40
↓ 24 callers
Function
clientIP
clientIP extracts the client IP from RemoteAddr. This is safe because TrustedProxyRealIP runs earlier in the chain and — when a trusted proxy is confi
internal/server/middleware_ratelimit.go:1038
↓ 24 callers
Function
edits
(pairs ...string)
internal/server/plan3578_patch_test.go:50
↓ 24 callers
Function
fakeSSEResponse
fakeSSEResponse wraps a raw SSE body string in an *http.Response shaped enough for streamWatchEvents to read (it only touches .Body).
cmd/pad/cmd_watch_test.go:18
↓ 24 callers
Method
fanOutLocally
gen is the subscription this notification arrived on, or currentGen() for a caller that is not the receive loop. CHECKED HERE, under the lock that AP
internal/watchevents/redis_bus.go:1561
↓ 24 callers
Method
item
(t *testing.T, collID, status string)
internal/decision/attention_test.go:231
↓ 24 callers
Method
line
(pos: number)
web/src/test/identityFenceAst.ts:343
↓ 24 callers
Method
mark
mark returns the bus's newest id, so a later accessSince reads only what the door under test published.
internal/server/workspace_access_notify_test.go:76
↓ 24 callers
Method
move
Move one finger; sends `touchMove` with the full active set.
web/e2e/lib/attachment-viewer.ts:389
↓ 24 callers
Function
outboxEventsFor
Tests for the transactional event outbox (SPEC-3 §choke point, TASK-2658). The load-bearing case here is the DISJOINT-DELTA RULE (SPEC-3 v1.3): canon
internal/store/event_outbox_test.go:25
↓ 24 callers
Method
stagePreview
stagePreview previews and returns the preview the owner reviews.
internal/server/handlers_apps_provision_test.go:31
↓ 24 callers
Function
startPreServer
startPreServer starts the "running server" a test hands to the script, on a port chosen in advance, and returns only once THAT process is the one answ
internal/buildtools/install_refresh_test.go:353
↓ 24 callers
Function
twoResourceOAuthServer
(t *testing.T)
internal/server/task3321_u2a_audience_test.go:19
↓ 24 callers
Function
waitForLockWait
waitForLockWait blocks until Postgres reports some backend running a statement containing needle AND waiting on a lock. It is the barrier that makes "
internal/store/attachments_live_item_test.go:141
↓ 23 callers
Function
BuildCLIArgs
( cmdInfo cmdhelp.Command, input map[string]any, sessionWorkspace string, rootFlags map[string]string, )
internal/mcp/dispatch.go:492
↓ 23 callers
Method
CreateOAuthClient
============================================================ Clients (RFC 7591 — Dynamic Client Registration) ========================================
internal/store/oauth.go:90
↓ 23 callers
Function
CreateReversePatch
CreateReversePatch computes a patch that transforms newText back into oldText. Used for reverse-diff version storage: current doc has latest content,
internal/diff/diff.go:118
↓ 23 callers
Function
ExtractItemImplementationNotes
(fieldsJSON string)
internal/models/item.go:954
↓ 23 callers
Method
GetReminder
GetReminder returns one reminder scoped to a workspace, or (nil, nil) when no such row exists. WORKSPACE-SCOPED ON PURPOSE, even though the id is a U
internal/store/reminders.go:178
↓ 23 callers
Method
GetUserWorkspaces
(userID string)
internal/mcp/dispatch_http_lister.go:52
↓ 23 callers
Method
LoadYjsUpdatesSince
(itemID string, sinceID int64)
internal/collab/room.go:317
↓ 23 callers
Method
MCP
MCP returns the underlying mark3labs MCPServer. Use this to register tools / resources / prompts BEFORE Run() takes over the stdio transport — registr
internal/mcp/server.go:116
↓ 23 callers
Method
SetDecisionSetResolver
SetDecisionSetResolver installs the resolver, or removes it with nil. Atomic, unlike the test seams on Store, because this is production wiring: ever
internal/store/decisions.go:48
↓ 23 callers
Method
SetTOTPSecret
--- TOTP 2FA --- SetTOTPSecret stores the TOTP secret for a user (before 2FA is verified). The secret is encrypted at rest if an encryption key is con
internal/store/users.go:1960
↓ 23 callers
Function
actorNameFromRequest
actorNameFromRequest returns the authenticated user's display name, or empty string.
internal/server/handlers_documents.go:342
↓ 23 callers
Method
clock
clock installs a fake dispatcher clock reading at.
internal/server/task3939b_push_fixture_test.go:252
↓ 23 callers
Function
connectedAppsTestServer
Connected-apps handler tests (PLAN-943 TASK-954). What's covered: - GET /api/v1/connected-apps requires cloud mode (404 outside). - List returns onl
internal/server/handlers_connected_apps_test.go:50
↓ 23 callers
Function
debounceFixture
debounceFixture bootstraps one account and gives it a workspace and an item. Every write below rides this one account, which is the shape the bug need
internal/server/handlers_activity_debounce_actor_test.go:62
↓ 23 callers
Function
doArtifactRequest
doArtifactRequest posts a raw (non-JSON) body to an artifact-import endpoint.
internal/server/handlers_artifact_test.go:17
↓ 23 callers
Function
imageRef
(id string)
internal/server/handlers_share_attachments_test.go:179
↓ 23 callers
Method
list
(opts: { before_seq?: number; after_seq?: number; limit?: number } = {})
web/src/lib/stores/chatThread.svelte.test.ts:117
↓ 23 callers
Method
member
(email, username, wsRole string, ws *models.Workspace)
internal/server/authz_cross_workspace_test.go:123
↓ 23 callers
Function
newGraphHTTP
(t *testing.T, roles ...models.CommitmentRolesInput)
internal/server/commitment_graph_entry_test.go:22
↓ 23 callers
Function
newLinkBundleFix
newLinkBundleFix is four commitments titled P, C1, C2 and D, so a restored workspace can be read by name.
internal/store/schedule_link_carry_test.go:26
↓ 23 callers
Function
newUpgradeEnv
(t *testing.T)
internal/server/handlers_apps_upgrade_test.go:20
↓ 23 callers
Function
postBundle
(srv *Server, name string, body []byte)
internal/server/bug3354_import_bundle_bomb_test.go:47
↓ 23 callers
Function
postOAuthLogin
postOAuthLogin fires a cloud-secret-authenticated oauth-login request and returns the recorder. The cloud secret rides the JSON body (the same channel
internal/server/handlers_oauth_provider_test.go:23
↓ 23 callers
Method
reminder
(t *testing.T, id string)
internal/store/schedule_fire_test.go:42
↓ 23 callers
Function
resolve
()
web/src/lib/components/items/ItemAppActions.svelte.test.ts:57
↓ 23 callers
Function
runScript
(t *testing.T, e stubEnv, built, installed, commit string)
internal/buildtools/install_refresh_test.go:262
↓ 23 callers
Function
runner
(t *testing.T)
internal/materialize/materialize_test.go:29
↓ 23 callers
Method
search
search runs q against /search (optionally naming a workspace) and returns the result titles, sorted. Titles, not refs: refs repeat across workspaces.
internal/server/bug3331_search_scope_test.go:158
↓ 22 callers
Function
CoerceFields
CoerceFields converts STRING field values to the type the collection schema declares, so every write door stores the same native type for the same inp
internal/items/coerce.go:46
↓ 22 callers
Method
CreateDocument
(workspaceID string, input models.DocumentCreate)
internal/store/documents.go:144
↓ 22 callers
Method
CreatePasswordReset
CreatePasswordReset generates a reset token for the given user. Returns the plaintext token (to embed in the reset URL). The token is stored as a SHA-
internal/store/password_resets.go:19
↓ 22 callers
Function
NewRunner
NewRunner returns a runner, or nil when provider is nil — the configured-off case. Every method is nil-safe, so the server holds a *Runner and never b
internal/decision/runner.go:408
↓ 22 callers
Function
NewSession
NewSession constructs a Session with the given subject (pad user ID). Returns a non-nil DefaultSession so the embedded methods don't panic on a zero-v
internal/oauth/session.go:49
↓ 22 callers
Method
Put
Put writes the blob from r into the backend, addressable by hash. The implementation MUST verify that the bytes streamed from r hash to the supplied h
internal/attachments/store.go:41
↓ 22 callers
Function
ResolveAnnouncedArmed
ResolveAnnouncedArmed is the full S3 resolution of what a stream this session opens should announce for ?armed (PLAN-2613 S3): a live explicit local o
internal/cli/session_arm_state.go:565
↓ 22 callers
Method
SetUserRole
SetUserRole updates a user's role (admin or member). When demoting an admin to member, the update is conditional: it only proceeds if at least one oth
internal/store/users.go:1291
↓ 22 callers
Method
UpdateScheduleLink
UpdateScheduleLink changes a link's offset or cancel policy. It needs edit on both ends, rechecks the limits and cycle rule, and, like a new link, mov
internal/store/commitment_links.go:728
↓ 22 callers
Function
WithPlanLimit
WithPlanLimit makes the insert enforce the owner's plan limit for what it creates, in the same transaction as the write (BUG-2808). The server passes
internal/store/limits.go:257
↓ 22 callers
Function
contextWithResolvedWorkspaceIDForTest
(ctx context.Context, wsID string)
internal/server/authz_cross_workspace_test.go:23
↓ 22 callers
Method
create
(t *testing.T, tok, coll, title string)
internal/server/task3615_catch_up_test.go:77
↓ 22 callers
Function
createUnverifiedUser
createUnverifiedUser makes a user whose email starts UNVERIFIED, so a consume can be observed flipping it verified. CreateUser's safe default is verif
internal/store/email_verification_test.go:16
↓ 22 callers
Method
decisionRunner
()
internal/server/decision_tick.go:113
↓ 22 callers
Function
doAuthedJSON
Mutation-endpoint tests for /api/v1/connected-apps/{id}/... routes (PLAN-1519 / TASK-1524 / IDEA-1517 §3). What's covered (per endpoint): - PATCH /n
internal/server/handlers_connected_apps_mutations_test.go:35
↓ 22 callers
Function
fieldErr
(field, code, msg string)
internal/store/schedules.go:81
↓ 22 callers
Method
getAsset
getAsset issues GET on the asset endpoint. rawQuery is appended verbatim (already URL-formed, no leading '?').
internal/server/handlers_share_attachments_test.go:214
↓ 22 callers
Method
itemByTitle
(t *testing.T, wsID, title string)
internal/store/schedule_carry_test.go:50
↓ 22 callers
Function
meAgendaWorkspace
(t *testing.T, w *agendaWorld, name string)
internal/server/handlers_me_agenda_test.go:92
↓ 22 callers
Method
newRequest
newRequest creates an http.Request with auth and agent headers set.
internal/cli/client.go:3141
↓ 22 callers
Function
postFormWithCookie
postFormWithCookie POSTs an x-www-form-urlencoded body with both a session cookie and the matching CSRF cookie set, plus the session-bound User-Agent.
internal/server/handlers_oauth_test.go:2483
↓ 22 callers
Function
rawJSONRequest
rawJSONRequest sends a RAW body string. A test cannot marshal a Go map here: marshalling would escape the backslash and send the literal text instead
internal/server/decode_json_nul_test.go:26
↓ 22 callers
Method
redeemNow
(t *testing.T)
internal/server/handlers_apps_delivery_test.go:57
↓ 22 callers
Method
req
()
internal/store/items_cross_workspace_copy_test.go:48
↓ 22 callers
Function
script
(cmd string)
internal/materialize/supervisor_test.go:360
↓ 22 callers
Function
tabsWorkspace
(t *testing.T, s *Store, owner *models.User, name string)
internal/store/workspace_tabs_test.go:26
↓ 22 callers
Function
task3399Fixture
task3399Fixture is an install whose manifest offers delegated access (offered), with a human member who can sign in through it.
internal/store/task3399_delegated_barrier_test.go:21
↓ 22 callers
Function
u1RelationSchema
Referent validation for relation values (PLAN-2857 U1 / TASK-2878). These are the STORE-level rules — does the value name a live item in the declared
internal/store/relation_referents_test.go:21
↓ 22 callers
Function
updateCmd
--- update ---
cmd/pad/cmd_item.go:1154
↓ 21 callers
Method
BeginInstallTeardown
BeginInstallTeardown is phase 1. It is a no-op when the install is already in the phase-1 state for this kind (a resumed call): the epoch was bumped a
internal/store/app_lifecycle.go:105
↓ 21 callers
Method
CreateSchedule
CreateSchedule attaches a schedule to a live item, with its first managed reminder row, in one transaction: both rows or neither.
internal/store/schedules.go:439
← previous
next →
601–700 of 28,840, ranked by callers