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
↓ 5 callers
Method
UpdateWorkspaceTab
UpdateWorkspaceTab applies u to the user's tab for workspaceID. It returns sql.ErrNoRows when that workspace is not open.
internal/store/workspace_tabs.go:355
↓ 5 callers
Method
Validate
Validate reports whether the question is answerable as constructed. It rejects criteria belonging to a DIFFERENT kind as well as missing ones: a Choi
internal/decision/decision.go:111
↓ 5 callers
Method
Validate
Validate checks the mode, zone and wall clock.
internal/schedule/links.go:53
↓ 5 callers
Function
ValidateFieldsDetailed
ValidateFieldsDetailed is ValidateFields with per-field attribution: it returns one FieldIssue per failure instead of a joined error, and applies sche
internal/items/validate.go:125
↓ 5 callers
Function
ValidateURL
ValidateURL is the pre-flight SSRF guard: it rejects non-http(s) schemes, URLs with embedded credentials, missing hostnames, and IP-literal hosts in p
internal/urlimport/fetch.go:222
↓ 5 callers
Function
VerifyArmStateHeld
VerifyArmStateHeld reads this session's arm state back after an arm or disarm write and refuses when the file did not survive the read: its owner was
internal/cli/session_arm_state.go:517
↓ 5 callers
Method
VisibleCollectionIDsQ
VisibleCollectionIDsQ is VisibleCollectionIDs parameterized over its executor (see Queryer).
internal/store/workspace_members.go:518
↓ 5 callers
Function
WithContext
WithContext returns q as a Queryer whose every read runs under ctx, so the *Q readers can be bound to a deadline without a Context variant of each (BU
internal/store/store.go:1010
↓ 5 callers
Function
WithMCPTokenIdentity
WithMCPTokenIdentity stashes the bearer-token identity so the MCP audit middleware can record which connection drove the call. kind is the discrimina
internal/server/context.go:183
↓ 5 callers
Function
WithPreservedSlug
WithPreservedSlug keeps a supplied workspace slug VERBATIM instead of slugifying it (BUG-3769), still made unique. It is for a COPY of an existing wor
internal/store/limits.go:266
↓ 5 callers
Function
WriteContentPendingFlushError
WriteContentPendingFlushError renders the content_pending_flush refusal: the structured marker line for the MCP stdio classifier (the same contract as
internal/cli/client.go:2758
↓ 5 callers
Method
WriteHidden
WriteHidden writes the non-disclosing denial: an identical 404 for every failure mode, so absence and forbidden-ness are indistinguishable. This is th
internal/server/authz_cross_workspace.go:206
↓ 5 callers
Function
WritePatchRefusalError
WritePatchRefusalError writes the structured marker line for a patch refusal, so the stdio MCP transport reports its code and details instead of infer
internal/cli/client.go:1405
↓ 5 callers
Function
WriteUpdateConflictError
WriteUpdateConflictError formats an optimistic-concurrency conflict to w in the canonical two-track shape (TASK-2022), mirroring WriteOpenChildrenErro
internal/cli/client.go:2561
↓ 5 callers
Function
__checkChatSurfaceForTests
()
web/src/lib/stores/chatSurface.svelte.ts:550
↓ 5 callers
Function
__resetChatSurfaceForTests
()
web/src/lib/stores/chatSurface.svelte.ts:538
↓ 5 callers
Function
accountDeleteServer
BUG-3099. The delete-account handler read the list of workspaces to delete BEFORE the deletion's transaction, and DeleteAccountAtomic soft-deleted onl
internal/server/bug3099_account_delete_owned_test.go:17
↓ 5 callers
Function
actionItemLink
actionItemLink dispatches pad_item.action=link to the appropriate CLI cmdPath based on link_type. Renames the schema's uniform `ref` and `target` to t
internal/mcp/catalog_item.go:646
↓ 5 callers
Function
activityCursorFromQuery
activityCursorFromQuery reads the keyset cursor the paginated activity feeds accept (BUG-2781): before=<created_at, RFC3339> and before_id=<id>, both
internal/server/activity_cursor.go:21
↓ 5 callers
Method
activityForRequest
logActivityWithMetaReturningID is like logActivityWithMeta but returns the activity ID. The ID is either newly created or the coalesced existing activ
internal/server/handlers_documents.go:434
↓ 5 callers
Method
activityKey
(userID, workerID string)
internal/server/session_activity.go:110
↓ 5 callers
Method
add
(n: number)
web/src/lib/stores/chatThread.property.svelte.test.ts:131
↓ 5 callers
Method
addr
()
internal/events/redis_subscribe_confirm_test.go:87
↓ 5 callers
Function
adminOutsideWorkspace
adminOutsideWorkspace builds the one configuration in which delivered_sessions can over-report, and the reasoning for why it is THIS configuration is
internal/server/handlers_push_visibility_test.go:68
↓ 5 callers
Function
advance
(i: number)
web/src/lib/collab/materializer/polyfills.ts:67
↓ 5 callers
Method
afterCommitmentRefusal
afterCommitmentRefusal runs only after the refused transaction has rolled back. Notice delivery never changes the refusal or logs private graph data.
internal/server/commitment_notices.go:21
↓ 5 callers
Function
agendaRoleInstant
(v string, loc *time.Location)
internal/store/agenda_roles.go:68
↓ 5 callers
Method
allows
(bearerAuth bool)
internal/server/handlers_push.go:558
↓ 5 callers
Function
answer
()
web/src/routes/[username]/[workspace]/settings/task2190MemberGuards.svelte.test.ts:149
↓ 5 callers
Function
answer
(tabs: Tab[])
web/src/lib/components/layout/TopBar.svelte.test.ts:80
↓ 5 callers
Function
api
(request: APIRequestContext, fixture: SuiteFixture, method: 'get' | 'post' | 'delete', path: string, data?: un
web/e2e/bug-3159-roles-children-touch-drag.spec.ts:42
↓ 5 callers
Method
appRows
(t *testing.T)
internal/appstore/attachments_test.go:109
↓ 5 callers
Function
appUpload
TASK-3401 U6c: app attachments over the app API.
internal/server/task3401c_app_attachments_test.go:27
↓ 5 callers
Function
appendVarUint
(b []byte, v uint64)
internal/collab/awareness.go:80
↓ 5 callers
Method
appliesNow
appliesNow reports whether the set would be asked about the item as it stands: its collection is covered and, when the set has one, its Eligible predi
internal/decision/runner.go:971
↓ 5 callers
Method
apply
(v any)
internal/mcp/chatgpt_project.go:44
↓ 5 callers
Method
apply
apply writes the lifted columns onto the pointers a create/update input exposes. Called BEFORE --assign / --role resolution so those dedicated flags w
cmd/pad/cmd_item.go:121
↓ 5 callers
Function
applyConfigureValues
(cfg *config.Config, values *configureValues)
cmd/pad/configure.go:128
↓ 5 callers
Function
applyDBRuntimeLimits
applyDBRuntimeLimits swaps the store's Postgres pool for the bounded runtime pool (TASK-4278). On SQLite it only says that the settings do not apply,
cmd/pad/cmd_server.go:1620
↓ 5 callers
Method
applyLinkedPlanTx
applyLinkedPlanTx writes every change in plan order (the moved date first), each with its journal row, and checks the budget between writes. The first
internal/store/commitment_cascade.go:613
↓ 5 callers
Function
appsTestServer
(t *testing.T, enabled bool)
internal/mcp/apps_test.go:36
↓ 5 callers
Function
appsWireResult
(t *testing.T, srv *server.MCPServer, method string, params any)
internal/mcp/apps_test.go:13
↓ 5 callers
Function
asInvalidTitle
(t *testing.T, err error)
internal/store/items_title_validation_test.go:38
↓ 5 callers
Function
asOpenChildrenGuardError
asOpenChildrenGuardError unwraps a store-layer error that may carry an openChildrenGuardError sentinel. Returns the sanitized details and true when th
internal/server/handlers_items_open_children_guard.go:665
↓ 5 callers
Function
asShallow
(path: string)
web/src/lib/stores/chatSurface.svelte.test.ts:36
↓ 5 callers
Function
assertBusy
assertBusy checks the shared 503 shape and that nothing of the database reached the body.
internal/server/task4278_error_mapping_test.go:157
↓ 5 callers
Function
assertPathVectorIntact
assertPathVectorIntact fails if the request Go builds from target does not actually carry invalid path text — i.e. if the premise of every assertion b
internal/server/middleware_request_text_test.go:33
↓ 5 callers
Function
assertWorkspaceNotFound
assertWorkspaceNotFound checks the full workspace-refusal contract: the unchanged status/code/message AND the marker.
internal/server/bug3069_workspace_not_found_test.go:39
↓ 5 callers
Function
atomicWriteFile
atomicWriteFile writes data to a temp file in path's directory and renames it into place, so a concurrent reader sees either the old file or the compl
internal/cli/session_arm_state.go:290
↓ 5 callers
Function
attachmentDownloadUrl
( workspaceSlug: string, attachmentId: string, variant?: 'thumb-sm' | 'thumb-md' | 'original' )
web/src/lib/markdown/attachments.ts:98
↓ 5 callers
Function
authCodeFor
authCodeFor drives /oauth/authorize/decide for clientID and returns the authorization code from the callback, unexchanged.
internal/server/handlers_oauth_test.go:2590
↓ 5 callers
Function
backdateItem
(t *testing.T, s *Store, itemID string, hoursAgo float64)
internal/store/reports_test.go:283
↓ 5 callers
Function
benchArgs
The read-path cost measurement S1 named as owed. The guard touches EVERY statement, reads included, so its per-parameter cost is paid on the read flo
internal/store/nulguard_bench_test.go:23
↓ 5 callers
Function
bodyOf
bodyOf is the page after <body>, so CSS and the <title> never satisfy an assertion about what the user reads.
internal/server/task1071_consent_identity_test.go:58
↓ 5 callers
Method
boundResponseWrites
boundResponseWrites is the middleware. Register it BEFORE CompressResponses: chi runs middleware in registration order, so its writer then sits beneat
internal/server/middleware_write_deadline.go:119
↓ 5 callers
Function
breakTable
BUG-3334: a store error on an access decision fails CLOSED. Faults are real: a renamed table makes the store query genuinely fail, except where an ear
internal/server/bug3334_fail_closed_test.go:23
↓ 5 callers
Function
bug2103WaitConns
bug2103WaitConns waits until item's room holds n replay-done conns, so a frame the test sends is read by a registered readLoop.
internal/collab/prune_evict_bug2103_test.go:34
↓ 5 callers
Function
bug3163StoredFields
(t *testing.T, srv *Server, itemID string)
internal/server/bug3163_reserved_write_doors_test.go:61
↓ 5 callers
Function
bug3446BlankWorkspace
BUG-3446: the `blank` template seeds Conventions with trigger [always] and scope [all], and Playbooks with trigger [manual] and scope [all]. Every tri
internal/server/bug3446_blank_library_options_test.go:34
↓ 5 callers
Function
bug3446Options
(t *testing.T, srv *Server, wsID, collSlug, key string)
internal/server/bug3446_blank_library_options_test.go:45
↓ 5 callers
Function
bug3591Counts
(t *testing.T, s *Store)
internal/store/bug3591_upgrades_test.go:51
↓ 5 callers
Function
bug3664Path
BUG-3664: the legacy per-collection item numbering was converted on startup only while idx_items_collection_number existed, and SQLite migration 056's
internal/store/bug3664_legacy_numbering_test.go:16
↓ 5 callers
Function
bug3744Item
BUG-3744: a browser snapshot was written whatever its op-log cursor, so a delayed flush from a tab that had seen fewer ops overwrote a body built from
internal/store/bug3744_snapshot_behind_content_test.go:15
↓ 5 callers
Function
bug3770Inviter
bug3770Inviter adds a second, unrestricted owner who sends an invitation, then applies loss (nil: keeps the authority).
internal/server/bug3770_inviter_authority_test.go:38
↓ 5 callers
Function
bug3789Get
(t *testing.T, srv *Server, path, cookie string)
internal/server/bug3789_bounded_lists_test.go:26
↓ 5 callers
Function
bug3811Admins
BUG-3811: the instance always keeps at least one ACTIVE human admin. Three doors can take an admin out of that set (demote, disable, delete own accoun
internal/store/bug3811_last_admin_race_test.go:14
↓ 5 callers
Function
bug3820Resolve
(t *testing.T, s *Store, itemID string)
internal/store/bug3820_version_body_hash_test.go:51
↓ 5 callers
Function
bug4065Dispatch
(t *testing.T, door bug4065Door, v any)
internal/mcp/bug4065_non_numeric_inputs_test.go:193
↓ 5 callers
Function
bug4644Post
(srv *Server, path, contentType, body, bearer string)
internal/server/bug4644_oauth_form_cap_test.go:57
↓ 5 callers
Function
bump
What chatStore does after each applied unread fetch.
web/src/lib/stores/chatThread.svelte.test.ts:155
↓ 5 callers
Function
bundleAttachmentPath
bundleAttachmentPath builds the tar entry name for an attachment. CROSS-VERSION CONTRACT: import does not read this path from the manifest; it RECOMP
internal/server/handlers_export_bundle.go:300
↓ 5 callers
Function
calEntryTitles
(m map[string]any)
internal/server/handlers_calendar_test.go:61
↓ 5 callers
Method
canRenegotiateCommitment
canRenegotiateCommitment is the authority decision for renegotiations and their previews. The caller owns the item's visibility and write doors.
internal/server/handlers_commitments.go:18
↓ 5 callers
Method
cancel
Cancel the pending debounce without flushing. Leaves dedupe state intact.
web/src/lib/collab/collabFlush.svelte.ts:163
↓ 5 callers
Method
capAtOneMore
capAtOneMore sets the user's override for feature to current+1, so exactly one more row is admitted.
internal/server/handlers_plan_limit_race_test.go:56
↓ 5 callers
Function
capUpload
capUpload posts a multipart upload as the session's user.
internal/server/task3619_storage_cap_test.go:18
↓ 5 callers
Method
captureResolutionUndoTx
captureResolutionUndoTx runs under the schedule pin, before even the skip deadline guard. Only the current row and the bounded missed walk are read.
internal/store/schedule_reopen.go:161
↓ 5 callers
Function
carriedFrom
carriedFrom snapshots a field map so it can be passed as the migrate function's `sourceFields` — i.e. "every one of these came off the source item". A
internal/store/relation_referents_test.go:386
↓ 5 callers
Method
catchUp
(t *testing.T, tok string)
internal/server/task3615_catch_up_test.go:120
↓ 5 callers
Function
changesOf
changesOf reads the accumulated "changes" text out of an activity's metadata. Local to the test: the store writes this key through mergeActivityMeta a
internal/store/activities_debounce_race_test.go:65
↓ 5 callers
Function
chatRefs
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_chat_enrich_test.go:23
↓ 5 callers
Method
claimNotificationIDs
claimNotificationIDs is the ARBITER: one conditional UPDATE per candidate, each carrying its own availability predicate, stamped with ts; it then read
internal/store/push_dispatch.go:196
↓ 5 callers
Function
classifyTriggerRefusal
classifyTriggerRefusal converts a Layer B trigger abort into the SAME typed error Layer A produces, so a caller cannot tell which layer refused. That
internal/store/nulguard.go:291
↓ 5 callers
Method
clause
clause renders the scope as a predicate on the items alias.
internal/store/catch_up.go:31
↓ 5 callers
Function
cleanBrokenLinks
(markdown: string)
web/src/lib/utils/markdown.ts:1224
↓ 5 callers
Function
clearRefusedRawDraft
( userId: string, itemId: string, onlyIf?: string, slot: RefusedRawDraftSlot = 'pending', )
web/src/lib/items/refusedRawDraft.ts:190
↓ 5 callers
Function
closeSource
()
web/src/lib/services/accessStream.svelte.ts:91
↓ 5 callers
Function
codeOf
(t *testing.T, err error)
internal/schedule/floating_test.go:65
↓ 5 callers
Function
collapse
(s: string)
web/src/test/identityFenceGate.ts:90
↓ 5 callers
Function
collectSchemaDecodes
(t *testing.T, dir string, patterns ...string)
internal/models/reserved_field_decode_guard_test.go:283
↓ 5 callers
Function
collection
()
web/src/lib/components/collections/chipWritesStatus.svelte.test.ts:94
↓ 5 callers
Function
collectionAccessPath
This file pins BUG-1925: handleSetMemberCollectionAccess gated only on requireRole(r, "owner"), with zero validation of the CALLER's own visibility. A
internal/server/handlers_member_collection_access_escalation_test.go:20
↓ 5 callers
Function
collectionOf
(child: Item, collections: Collection[])
web/src/lib/collections/childProgress.ts:58
↓ 5 callers
Method
comment
(item *models.Item, userID, body string)
internal/store/schedule_resolve_test.go:67
↓ 5 callers
Method
comment
(t *testing.T, by *models.User, body string)
internal/store/needs_read_test.go:115
↓ 5 callers
Method
comment
(ws *models.Workspace, it *models.Item, by *models.User, body string)
internal/server/handlers_me_needs_test.go:122
↓ 5 callers
Function
commit
()
web/src/lib/components/editor/extensions/htmlBlock.ts:351
↓ 5 callers
Function
commitmentApply
(t *testing.T, s *Store)
internal/store/commitment_dates_migration_test.go:35
↓ 5 callers
Method
commitmentAssigneeMatchesTx
commitmentAssigneeMatchesTx checks the assignee used by the handler authority decision. A nil guard means authority does not depend on the assignee; a
internal/store/commitment_renegotiate.go:419
↓ 5 callers
Function
commitmentPreStore
(t *testing.T)
internal/store/commitment_dates_migration_test.go:29
← previous
next →
3,001–3,100 of 28,840, ranked by callers