MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 3 callersMethodaddWorkspaceMemberTx
addWorkspaceMemberTx is the one membership insert, shared by AddWorkspaceMember and AcceptWorkspaceInvitation so the lock, the cap, the INSERT and the
internal/store/workspace_members.go:70
↓ 3 callersFunctionafter
(next Next, dt time.Time, inc bool)
internal/schedule/internal/rrule/util.go:171
↓ 3 callersMethodafterUntil
afterUntil says an occurrence of the rule falls past a Z UNTIL, compared on the resolved instant, inclusive. An RDATE is not bound by UNTIL. Elapsed r
internal/schedule/engine.go:97
↓ 3 callersFunctionageAndFlush
BUG-3747: a compaction snapshot covers the cursors of ITS generation only. After a path deletes the op-log (a direct write, a restore, a dormant prune
internal/store/bug3747_compaction_generation_test.go:18
↓ 3 callersFunctionagendaEventBound
agendaEventBound rounds a query boundary up to the next stored second. Item creations and status transitions store whole seconds; rounding both bounds
internal/store/agenda_item_events.go:21
↓ 3 callersMethodagendaExpired
(run *agendaRead)
internal/server/handlers_me_agenda.go:363
↓ 3 callersFunctionagendaRefs
(rows []BootstrapAgendaRow)
internal/server/bootstrap_agenda_test.go:77
↓ 3 callersFunctionagentClaimBearerRefused
(t *testing.T, f agentClaimFixture, token string)
internal/server/handlers_agent_claim_test.go:157
↓ 3 callersFunctionagentMeta
(agent string)
internal/store/fenced_items.go:476
↓ 3 callersFunctionagentNameOf
(metadata: Record<string, unknown> | undefined | null)
web/src/lib/utils/agentActor.ts:68
↓ 3 callersMethodagentSignupTermsURL
agentSignupTermsURL is the configured terms URL; a store error reads as none, which keeps signup off.
internal/server/handlers_agent_signup.go:149
↓ 3 callersFunctionall
(next Next)
internal/schedule/internal/rrule/util.go:136
↓ 3 callersFunctionallSee
()
internal/server/needs_scorers_test.go:39
↓ 3 callersMethodallowedAudiences
()
internal/oauth/server.go:348
↓ 3 callersFunctionannotationForDef
annotationForDef derives the MCP tool annotation block from the catalog's own read-only knowledge (readOnlyActions in tool_surface.go — the single sou
internal/mcp/catalog.go:320
↓ 3 callersFunctionannounceAttachmentRestored
( workspaceSlug: string, attachmentId: string, itemId?: string | null )
web/src/lib/attachments/events.ts:198
↓ 3 callersFunctionanswer
(extra: Partial<AgendaResponse> = {})
web/src/lib/components/calendar/WeekSummary.svelte.test.ts:23
↓ 3 callersFunctionanswer
(key: string, noul: number)
web/src/lib/components/items/DecisionChips.svelte.test.ts:38
↓ 3 callersFunctionanswer
(...tabs: Tab[])
web/src/lib/stores/tabs.svelte.test.ts:81
↓ 3 callersFunctionapiHeaders
(fixture: import('./fixtures').SuiteFixture)
web/e2e/task-3552-diagram-graph-render.spec.ts:22
↓ 3 callersFunctionappAPIFixtureOn
appAPIFixtureOn builds the fixture on Pad Cloud, or on a self-host with apps enabled (cloud=false).
internal/server/task3401_app_api_test.go:61
↓ 3 callersFunctionappActionSpecs
appActionSpecs translates the manifest's item actions (by companion KEY) into the store's specs (by companion SLUG).
internal/server/app_item_actions.go:37
↓ 3 callersMethodappAdmitToken
appAdmitToken is the token half of admission, shared by the door and the re-admission before a response is sent: the token is introspected (active, no
internal/server/app_api.go:296
↓ 3 callersMethodappAdmitWorkspace
appAdmitWorkspace is the workspace half of admission, shared by the door and the re-admission: the workspace is live, the bot is a member, and the rol
internal/server/app_api.go:475
↓ 3 callersFunctionappBearer
appBearer reads the token from the Authorization header only: the app API takes no token from a query string or a form.
internal/server/app_api.go:259
↓ 3 callersFunctionappContextSelfCheck
appContextSelfCheck refuses a request whose context lacks any key the shared helpers read (§4 step 5).
internal/server/app_api.go:531
↓ 3 callersFunctionappDoLazy
appDoLazy sends a request whose body is built only when the handler reads it, after the handler's own reads.
internal/server/task3401b_app_writes_test.go:520
↓ 3 callersFunctionappHookSubscribes
appHookSubscribes reports whether a stored subscription list names event, and, when collectionID is not empty, names it for that collection.
internal/store/app_delivery.go:88
↓ 3 callersMethodappItemDTOs
appItemDTOs builds the item DTOs, etag and app metadata included.
internal/server/app_api_read.go:265
↓ 3 callersMethodappRecheckCollection
appRecheckCollection replays a collection's authorization against the store as it stands: live, in the workspace, visible to the actor, inside the cei
internal/server/app_api_read.go:172
↓ 3 callersMethodappRecheckItem
appRecheckItem replays an item's authorization: live, in the workspace and collection it was read from, inside the ceiling, visible to the actor.
internal/server/app_api_read.go:205
↓ 3 callersFunctionappRequestContext
appRequestContext sets every key the shared helpers read from a complete app context.
internal/server/app_api.go:517
↓ 3 callersFunctionappRows
(t *testing.T, e *appsEnv, q string, args ...any)
internal/server/handlers_apps_provision_test.go:173
↓ 3 callersMethodappVisibleCollection
appVisibleCollection resolves a collection by EXACT slug in the token's workspace, inside the ceiling and the actor's visibility, or reports false aft
internal/server/app_api_read.go:142
↓ 3 callersFunctionappWebhookSpec
appWebhookSpec translates the manifest's events (by companion KEY) into the store's spec (by companion SLUG). nil when the manifest declares no events
internal/server/app_webhooks.go:27
↓ 3 callersMethodappWebhookView
(installID string)
internal/server/app_webhooks.go:65
↓ 3 callersFunctionappendKeyFixture
TASK-3585: idempotency keys on the note/decision appends.
internal/server/task3585_append_key_test.go:12
↓ 3 callersMethodappendSearchFilters
appendSearchFilters adds workspace, collection, and field filter clauses to a query. Used to keep count and results queries in sync.
internal/store/search.go:633
↓ 3 callersFunctionappendServer
appendServer answers capabilities and scripts the statuses of the item PATCHes (appends) it receives. A success echoes the appended entry, as the serv
cmd/pad/task3585_append_retry_test.go:14
↓ 3 callersFunctionappendSync
(t *testing.T, s *store.Store, itemID string, frame []byte)
internal/store/bug3135_sync_frame_dedupe_test.go:44
↓ 3 callersMethodappendWorkspaceAgenda
appendWorkspaceAgenda is the single schedule expansion and dated-item path.
internal/server/handlers_agenda.go:334
↓ 3 callersMethodappliesNow
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:951
↓ 3 callersMethodapplyExternal
applyExternal is the restart loop shared by the markdown and patch forms.
internal/collab/applier.go:516
↓ 3 callersFunctionapplyFieldsJSON
applyFieldsJSON merges a --fields-json object into dst (TASK-3611). It is how the local stdio MCP server writes a structured field value: --field key=
cmd/pad/fields_json.go:22
↓ 3 callersFunctionapplyListAnchor
(scroller: HTMLElement, anchor: ListAnchor)
web/src/lib/collections/listScrollHandoff.ts:77
↓ 3 callersFunctionapplyPatch
(editor: Editor, edits: PatchEdit[], ctx: PatchContext)
web/src/lib/collab/patchApply.ts:292
↓ 3 callersFunctionapplyWithStore
(t *testing.T, itemID string, bracketed bool, frames int, failAppend bool)
internal/collab/bug3749_applier_ack_durable_test.go:48
↓ 3 callersMethodapproveCLIAuthSessionCore
(w http.ResponseWriter, r *http.Request, sess *store.CLIAuthSession)
internal/server/handlers_cli_auth.go:210
↓ 3 callersMethodappsAvailableChecked
appsAvailableChecked is appsAvailable with a failure to read the setting reported rather than folded into "off", for re-admission, where a fault must
internal/server/apps_available.go:30
↓ 3 callersMethodappsPrivateOrigins
appsPrivateOrigins is the admin list, or nil on Cloud (no private destination is ever reachable there) or when unset or unreadable.
internal/server/handlers_apps_install.go:690
↓ 3 callersMethodarchiveCollection
(t *testing.T)
internal/server/bug3635_share_archived_target_test.go:23
↓ 3 callersFunctionarchiveStartCollection
(t *testing.T, f *startFixture)
internal/server/task4924_archived_start_test.go:23
↓ 3 callersFunctionarchivedStartFixture
TASK-4924: the start rules read an archived playbook collection too. archivedStartFixture is a start fixture whose playbook collection is a custom one
internal/server/task4924_archived_start_test.go:15
↓ 3 callersFunctionarm
()
web/src/lib/items/linksRetry.ts:73
↓ 3 callersMethodarmManagedReminderTx
armManagedReminderTx re-arms the schedule's managed reminder at remindAt, or inserts it when the row is missing. The caller holds the schedule.
internal/store/schedule_resolve.go:949
↓ 3 callersFunctionarmStateWellFormed
armStateWellFormed reports whether a parsed ArmState carries the stamps AND invariants writeArmStateFile always produces: a non-empty RFC3339 StartedA
internal/cli/session_arm_state.go:549
↓ 3 callersMethodasBearer
(tok string)
internal/server/bug3331_search_scope_test.go:198
↓ 3 callersFunctionasCollectionUpdateConflictError
asCollectionUpdateConflictError reports whether err is (or wraps) a store.CollectionUpdateConflictError and returns it. Mirrors asUpdateConflictError
internal/server/handlers_collections.go:666
↓ 3 callersFunctionasNewUser
(page: Page)
web/e2e/lib/workspace-tabs.ts:19
↓ 3 callersFunctionasText
asText extracts the text payload from any content type that has one. mcp-go's Content interface is implemented by TextContent, etc.; we only care abou
internal/mcp/workspace_test.go:128
↓ 3 callersFunctionassertAnnotation
assertAnnotation checks all four hint pointers are explicitly set (nil would mean "no claim", which is exactly the pre-fix defect shape: the absence t
internal/mcp/catalog_annotations_test.go:182
↓ 3 callersFunctionassertChatJSONMark
Check the additive mark object and ensure stdout remains one JSON response.
cmd/pad/cmd_chat_test.go:347
↓ 3 callersFunctionassertDeletedIDs
(t *testing.T, s *Store, ws string, f AttachmentListFilters, want ...string)
internal/store/attachments_deleted_test.go:51
↓ 3 callersFunctionassertEntriesMatchGo
assertEntriesMatchGo fails unless the index equals the Go extraction of the stored fields, and the stored fields hold at least want entries (so a writ
internal/store/item_entries_index_test.go:116
↓ 3 callersFunctionassertGroupByOrder
(t *testing.T, out string, parts ...string)
cmd/pad/cmd_item_group_by_test.go:48
↓ 3 callersFunctionassertHidden
(t *testing.T, where, out string)
internal/secret/secret_test.go:28
↓ 3 callersFunctionassertLinkedConcurrencyResults
(t *testing.T, errs []error)
internal/store/commitment_links_pg_test.go:439
↓ 3 callersFunctionassertLinkedSave
(t *testing.T, link, target string)
internal/cli/credentials_bug3648_test.go:377
↓ 3 callersFunctionassertMemberCollectionAccessUnchanged
(t *testing.T, f *restrictedOwnerVisibilityFixture, userID, wantMode string, wantIDs []string)
internal/server/handlers_member_collection_access_escalation_test.go:189
↓ 3 callersFunctionassertNeverRenders
(t *testing.T, label string, v any, fixture string)
internal/server/task4323_server_secrets_test.go:46
↓ 3 callersFunctionassertNoFrameWithEvent
assertNoFrameWithEvent fails if a frame of the given type arrives within the window. Frames of other types are read past, not treated as the absence.
internal/server/handlers_stream_gap_test.go:291
↓ 3 callersFunctionassertNoVariants
assertNoVariants fails if any spec produced a row.
internal/server/handlers_attachments_thumbnails_parent_test.go:72
↓ 3 callersFunctionassertNotModified
(t *testing.T, rr *httptest.ResponseRecorder, wantETag, label string)
internal/server/handlers_attachments_cache_test.go:44
↓ 3 callersFunctionassertPartial
assertPartial runs the preflight as u and checks relationships_partial.
internal/server/handlers_items_copy_preflight_test.go:1644
↓ 3 callersFunctionassertQueryVectorIntact
assertQueryVectorIntact fails if the request Go builds from target does not actually deliver invalid query text to a handler — i.e. if the premise of
internal/server/middleware_query_test.go:31
↓ 3 callersFunctionassertRefusalParity
assertRefusalParity is the matrix's single assertion: the two endpoints refused with the same status, the same error code, and — since every refusal o
internal/server/handlers_items_copy_parity_test.go:138
↓ 3 callersFunctionassertRevealable
(t *testing.T, label string, v any, want string)
internal/server/task4323_server_secrets_test.go:71
↓ 3 callersFunctionassertRowAffected
assertRowAffected returns notFound if the statement didn't touch any rows, the underlying RowsAffected error if the driver can't report, and nil other
internal/store/oauth_connections.go:870
↓ 3 callersFunctionassertShellRefusal
(t *testing.T, msg string, details map[string]any, shell bool)
internal/server/plan_limit_native_shell_test.go:60
↓ 3 callersFunctionassertSlotReleased
assertSlotReleased requires the stream's admission slot to be held first (otherwise the release check passes against a handler that never admitted the
internal/server/bug3637_sse_stalled_reader_test.go:191
↓ 3 callersFunctionassertStampIgnored
(t *testing.T, f *task4871Fixture, rr *httptest.ResponseRecorder)
internal/server/task4871_watermark_door_test.go:135
↓ 3 callersFunctionassertStoredNumber
assertStoredNumber re-reads the item and asserts the field is stored as a JSON NUMBER with the expected value. Re-reading rather than trusting the mut
internal/server/handlers_items_field_coercion_test.go:694
↓ 3 callersFunctionassertVariants
assertVariants fails unless every spec produced a row. This is the control that keeps the skip tests honest: same fixture, same bytes, live parent.
internal/server/handlers_attachments_thumbnails_parent_test.go:87
↓ 3 callersFunctionassertWorkspaceNumbering
(t *testing.T, s *Store)
internal/store/bug3664_legacy_numbering_test.go:55
↓ 3 callersFunctionat
(secAgo: number)
web/src/lib/components/timeline/HistoryView.svelte.test.ts:27
↓ 3 callersFunctionatMount
atMount presents token to an MCP mount: /mcp (no resource stamped) or the ChatGPT catalog's (its resource stamped, as its route will).
internal/server/task3321_u2a_audience_test.go:162
↓ 3 callersFunctionatt
(overrides: Partial<AttachmentListItem> & { id: string })
web/src/lib/components/items/ItemAttachmentStrip.svelte.test.ts:137
↓ 3 callersFunctionattachmentAttachCmd
()
cmd/pad/cmd_attachment.go:142
↓ 3 callersFunctionattachmentBatchError
attachmentBatchError is the error of a command that acted on several attachment ids. With one id it is that id's own error, wrapped in an attachmentRe
cmd/pad/cmd_attachment.go:194
↓ 3 callersFunctionattachmentDeleteCmd
()
cmd/pad/cmd_attachment.go:230
↓ 3 callersFunctionattachmentServeType
attachmentServeType is the download's fail-closed Content-Type and Content-Disposition decision (BUG-2413; see the handler above), shared by the human
internal/server/handlers_attachments.go:1070
↓ 3 callersFunctionattachmentToolAction
(t *testing.T, action string)
cmd/pad/attachment_stdio_parity_test.go:70
↓ 3 callersFunctionattachmentViewCmd
()
cmd/pad/cmd_attachment.go:603
↓ 3 callersFunctionattachmentsIn
attachmentsIn returns every attachment row in a workspace (including soft-deleted ones, of which the copy path creates none).
internal/store/items_cross_workspace_copy_test.go:126
↓ 3 callersMethodattemptFloor
The stream goroutine resolves identity and fetches the floor within one deadline. Failed attempts cannot block subsequent events during backoff.
cmd/pad/cmd_watch_chat.go:345
↓ 3 callersFunctionattentionQuestionHashes
attentionQuestionHashes is the fingerprint of each attention question as attachAttentionRunner's stub (model stub-1) asks it: the question_hash a stor
internal/server/needs_scorers_test.go:337
↓ 3 callersMethodattributionQuery
attributionQuery looks up table.installCol for ids, joined to the install and its bot, attributionChunk ids per query.
internal/store/app_attribution.go:30
↓ 3 callersFunctionauditLabel
auditLabel applies the marker; see the body for the namespace-reservation rule that makes it non-forgeable.
internal/server/middleware_mcp_audit.go:463
↓ 3 callersFunctionauditedMCPServerWith
auditedMCPServerWith is auditedMCPServer with the metrics call-name predicate passed through SetMCPTransport, the production door (BUG-2817).
internal/server/middleware_mcp_audit_test.go:41
↓ 3 callersFunctionauth
* TASK-2230: a board lane mounts a window of its cards (50 for a terminal * lane), and the full lane is what gets persisted. The drop that proves it
web/e2e/task-2230-lane-window.spec.ts:19
← previousnext →5,201–5,300 of 31,685, ranked by callers