MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 12 callersFunctionrunHelp
runHelp invokes the help command with the given args and returns (stdout, stderr, error).
cmd/pad/help_cmdhelp_test.go:46
↓ 12 callersFunctionsanitizeMarkdownHtml
(html: string, profile?: 'chat')
web/src/lib/utils/markdown.ts:216
↓ 12 callersFunctionseedCollabFixture
seedCollabFixture creates the minimum fixture chain needed to test the collab WS endpoint: workspace + collection + item, all in the store, returning
internal/server/handlers_collab_test.go:62
↓ 12 callersMethodseedPending
seedPending leaves the item in the BUG-3000 state: an unflushed edit from a tab that has since closed.
internal/server/handlers_items_bug3133_pending_guard_test.go:41
↓ 12 callersMethodsel
(t *testing.T, it *models.Item)
internal/store/milestone_test.go:56
↓ 12 callersMethodsession
session returns a CLI client signed in as user with a fresh session.
cmd/pad/cmd_auth_2fa_test.go:49
↓ 12 callersMethodsetTxTimeoutsCtx
setTxTimeoutsCtx is setTxTimeouts with a context for the SET statements.
internal/store/tx_timeouts.go:51
↓ 12 callersFunctionslugify
slugify converts a string to a URL-friendly slug.
internal/store/store.go:1612
↓ 12 callersMethodtick
(t *testing.T)
internal/server/handlers_apps_delivery_test.go:65
↓ 12 callersFunctiontokenScopeAllows
tokenScopeAllows checks if the token's scopes permit the given HTTP method and path. Scopes are stored as a JSON array of strings. Supported scopes (
internal/server/middleware_auth.go:1380
↓ 12 callersMethodupload
(ctx context.Context, spec store.FenceSpec, itemID string, body []byte, name string)
internal/appstore/attachments_test.go:79
↓ 12 callersFunctionwedge
wedge simulates the failure this unit exists to detect: the outbound probe keeps SUCCEEDING and nothing comes back. Simulated rather than produced, b
internal/watchevents/heartbeat_test.go:67
↓ 12 callersMethodweeklyDeadline
weeklyDeadline is a native weekly row whose occurrence is Monday 09:00 UTC and whose deadline is two days later (Wednesday 09:00).
internal/store/commitment_move_deadline_test.go:27
↓ 11 callersMethodAccept
()
internal/server/bug3637_sse_stalled_reader_test.go:83
↓ 11 callersMethodAcceptWorkspaceInvitation
AcceptWorkspaceInvitation accepts an invitation in one transaction: the membership through addWorkspaceMemberTx, then the invitation's accepted_at. An
internal/store/workspace_members.go:180
↓ 11 callersFunctionAgentNameFromMetadata
AgentNameFromMetadata returns the agent display name stamped on an activity's metadata JSON (`handlers_documents.go::agentMeta` writes the `agent` key
internal/models/activity.go:293
↓ 11 callersMethodArmed
Armed reports whether a tick would still consider this reminder.
internal/models/reminder.go:43
↓ 11 callersFunctionAttentionSet
AttentionSet returns the `attention` question set.
internal/decision/attention.go:64
↓ 11 callersMethodComputeRef
ComputeRef sets the Ref field from CollectionPrefix and ItemNumber. Call this after populating the item from a database query.
internal/models/item.go:615
↓ 11 callersMethodConfigureDecisions
ConfigureDecisions resolves the provider from every source, swaps the runner, and starts the tick if a provider is now configured. The returned error
internal/server/decision_settings.go:71
↓ 11 callersFunctionCopyOutcomeUnknown
CopyOutcomeUnknown reports whether err leaves it genuinely unknown whether the copy committed. True for the server's 500 `copy_failed` and for any tra
internal/cli/client_items_copy.go:385
↓ 11 callersMethodDecisions
Decisions returns the item's latest answer per question, each marked Current when it was computed from the item's present state. A nil runner returns
internal/decision/runner.go:775
↓ 11 callersFunctionDecode
Decode parses an artifact's portable on-disk form back into an Artifact. It splits a leading "---\n ... \n---" frontmatter block from the body, unmar
internal/artifact/decode.go:21
↓ 11 callersFunctionDoneFieldKey
DoneFieldKey resolves which field on a collection's schema represents "is this item done?". The resolution is: 1. If CollectionSettings.BoardGroupBy
internal/models/terminal.go:58
↓ 11 callersMethodEnsureAgentDM
EnsureAgentDM returns the owner's direct conversation with the agent, creating it (and its two member rows) on first use. created reports whether this
internal/store/conversations.go:98
↓ 11 callersMethodError
()
internal/server/handlers_items.go:941
↓ 11 callersMethodGetClient
===================================================================== fosite.ClientManager ===========================================================
internal/oauth/storage.go:145
↓ 11 callersMethodGetInvitation
GetInvitation retrieves an invitation by ID.
internal/store/workspace_members.go:1414
↓ 11 callersMethodInstall
Install adds (or refreshes) the pad entry in the named agent's config. Returns the resolved path + whether the file was actually modified (false on a
internal/mcp/install.go:661
↓ 11 callersFunctionIsTerminalItem
IsTerminalItem reports whether an item's fields map indicates the item is in a terminal state for its collection. This is the canonical Go-side "is do
internal/models/terminal.go:314
↓ 11 callersMethodJSON
JSON serializes traits for storage. The zero value serializes to "{}" so the column is never NULL and never an empty string.
internal/models/collection_traits.go:267
↓ 11 callersMethodJSONFieldText
JSONFieldText, JSONFieldEquals and JSONFieldOrder read an item field value by its JSON type, identically on both dialects (BUG-3221; the rule is in di
internal/store/dialect.go:45
↓ 11 callersMethodListAuditLog
ListAuditLog returns activities matching the given audit log filters. Supports filtering by action, actor, workspace, and date range.
internal/store/activities.go:1098
↓ 11 callersMethodListPendingReminders
The window is BOUNDED because this list feeds a payload that is otherwise capped: every pending reminder became a suggestion prepended to a three-entr
internal/store/reminders.go:298
↓ 11 callersMethodListWorkspaceTabs
ListWorkspaceTabs returns the user's stored tab rows in bar order and their revision. It does not filter by visibility; see the note above.
internal/store/workspace_tabs.go:58
↓ 11 callersMethodMoveLinkedDate
MoveLinkedDate moves one date of an item's outstanding occurrence and the dates linked below it. See the file comment for the deadline rule.
internal/store/commitment_cascade.go:238
↓ 11 callersMethodPIDFile
()
internal/config/config.go:875
↓ 11 callersMethodPlan
Plan computes a complete cascade without changing any input. Changes are ordered by hops, Schedule, Occurrence and Role; unchanged dates are omitted.
internal/schedule/links.go:344
↓ 11 callersMethodProvider
Provider returns the fosite.OAuth2Provider that sub-PR C's HTTP handlers will call (NewAuthorizeRequest, NewAccessRequest, WriteAuthorizeResponse, etc
internal/oauth/server.go:311
↓ 11 callersFunctionResolveAgentName
ResolveAgentName decides what goes in the X-Pad-Agent header, which is the ONLY signal the server has for attributing a write to an agent rather than
internal/cli/agent_identity.go:44
↓ 11 callersMethodServe
Serve accepts connections on ln until the server is shut down. Pair it with Listen, or with Prepare for a listener bound elsewhere; ListenAndServe is
internal/server/server.go:2902
↓ 11 callersMethodSetAuthToken
SetAuthToken sets the authorization token for API requests.
internal/cli/client.go:138
↓ 11 callersMethodSetCommitmentRoles
SetCommitmentRoles replaces a schedule's role columns and marks them native. Writing a legacy_backfill row converts it, and the journal row it writes
internal/store/commitment.go:428
↓ 11 callersMethodSetWriteDeadline
(time.Time)
internal/server/bug3821_write_deadline_test.go:421
↓ 11 callersMethodSnapshot
(ctx context.Context, job materialize.Job)
internal/server/oplog_compaction.go:29
↓ 11 callersMethodSpec
Spec returns the schedule as compiled, with the rule canonicalised.
internal/schedule/spec.go:119
↓ 11 callersMethodSubscribeIfAllowed
SubscribeIfAllowed atomically checks the per-workspace limit and subscribes. See the EventBus interface for why there is no global limit here (BUG-272
internal/events/redis_bus.go:988
↓ 11 callersFunctionWithEventBatch
WithEventBatch marks every canonical event this mutation emits as a member of the named batch. The caller mints the id per bulk OPERATION, not per it
internal/store/event_outbox.go:117
↓ 11 callersMethodWorkspaceAttachments
WorkspaceAttachments lists original (non-derived) attachments in a workspace, with optional filtering + sorting + pagination. Returns the page rows an
internal/store/attachments.go:682
↓ 11 callersMethodWorkspaceSubscriberCount
WorkspaceSubscriberCount returns the number of active subscribers for a specific workspace.
internal/events/bus.go:328
↓ 11 callersFunctionWriteWorkspaceLink
WriteWorkspaceLink writes a .pad.toml in the given directory. serverURL is the base URL of the Pad server hosting this workspace. Pass the empty stri
internal/cli/workspace.go:128
↓ 11 callersFunctionackFixture
(t *testing.T, rule, anchor string)
internal/store/schedule_ack_test.go:17
↓ 11 callersFunctionackInput
()
internal/store/schedule_ack_test.go:24
↓ 11 callersMethodany
()
internal/mcp/dispatch_http_schedule.go:80
↓ 11 callersMethodappStore
()
internal/server/app_api.go:120
↓ 11 callersFunctionappendToCatalog
appendToCatalog inserts def into Catalog. Called from catalog_<resource>.go init() functions. Keep this small + simple; validation happens at Register
internal/mcp/catalog.go:205
↓ 11 callersMethodappsAvailable
appsAvailable: Pad Cloud always; self-host only when an admin has enabled apps AND the server has an OAuth server with an https issuer, since every ap
internal/server/apps_available.go:18
↓ 11 callersFunctionattachMatchRunner
(srv *Server, p decision.Provider)
internal/server/handlers_playbook_match_test.go:50
↓ 11 callersFunctionbindableText
bindableText reports whether a decoded string can be bound into a text comparison. It is the shared predicate of both middlewares in this file: Valida
internal/server/middleware_request_text.go:201
↓ 11 callersMethodbobSession
bobSession is a live session for bob; the plaintext is the cookie value.
internal/server/task3939b2b_notification_test.go:30
↓ 11 callersMethodbody
(c *cobra.Command)
cmd/pad/cmd_schedule_link.go:59
↓ 11 callersFunctionbug3626Owner
BUG-3626: an account export that runs out of time, or hits a store error, must never hand the user a file that parses as a complete export. "Leave Pad
internal/server/bug3626_account_export_test.go:22
↓ 11 callersFunctionbundleDecode
(t *testing.T, v any)
internal/store/commitment_bundle_v2_test.go:27
↓ 11 callersFunctionchatLastSeq
(t *testing.T, s *Store, convID string)
internal/store/conversations_test.go:49
↓ 11 callersFunctionclassifyHTTPStatusKind
classifyHTTPStatusKind turns an HTTP error response into a structured envelope, using the dispatcher's known resource context to emit the right error
internal/mcp/errors.go:1071
↓ 11 callersFunctioncompensationServer
(t *testing.T)
internal/server/workspace_owner_compensation_test.go:37
↓ 11 callersMethodconfirmUpgrade
(t *testing.T, p appPreview)
internal/server/handlers_apps_upgrade_test.go:45
↓ 11 callersFunctionconnectSSE
connectSSE connects to the SSE endpoint on a real test server and returns a channel of parsed events. Cancel the context to disconnect.
internal/server/handlers_events_test.go:35
↓ 11 callersFunctioncountRows
BUG-3349 (b, c): disabling an account ends every credential it holds, and a disabled account is refused everywhere but sign-out and the session check.
internal/server/bug3349_disable_test.go:19
↓ 11 callersFunctioncountsOf
countsOf returns the counts series of an agenda response as compact JSON, or "" when there is none.
internal/server/handlers_me_agenda_counts_test.go:16
↓ 11 callersFunctioncreateItemIn
(t *testing.T, srv *Server, wsSlug, collSlug, title string)
internal/server/collection_resolve_test.go:35
↓ 11 callersFunctioncreateWorkspace
( fixture: SuiteFixture, request: APIRequestContext, label: string )
web/e2e/lib/attachment-viewer.ts:439
↓ 11 callersMethodcurrentPubSub
()
internal/watchevents/heartbeat_test.go:75
↓ 11 callersMethodcwd
()
internal/mcp/install.go:633
↓ 11 callersFunctiondecodeSummaries
(t *testing.T, out string)
cmd/pad/bug4024_item_list_json_autopage_test.go:143
↓ 11 callersMethoddest
dest creates a destination item in ws and returns it.
internal/store/item_workspace_moves_test.go:37
↓ 11 callersMethoddestroy
Stop the timer; for component teardown.
web/src/lib/items/saveTracker.svelte.ts:92
↓ 11 callersFunctiondiffFields
(oldFields, newFields string)
internal/server/handlers_documents.go:566
↓ 11 callersFunctiondivergedState
()
cmd/pad/task3462_u3c_library_builtin_test.go:99
↓ 11 callersFunctioneditFixture
editFixture is a REAL item's shape — ref parts, seq, updated_at and fields — because a stub missing what real data always has hides the branch real us
cmd/pad/bug3035_edit_guard_test.go:28
↓ 11 callersFunctionemitInTx
emitInTx runs one production emitter inside a committed transaction.
internal/store/event_outbox_scrub_test.go:63
↓ 11 callersFunctionequalStrings
(a, b []string)
internal/mcp/catalog_test.go:407
↓ 11 callersMethodexpand
(t *testing.T, item *models.Item, view *time.Location, from, to, now string)
internal/store/schedule_agenda_test.go:24
↓ 11 callersFunctiongetGraph
helper: fetch the workspace graph and return the parsed response
internal/server/handlers_graph_test.go:12
↓ 11 callersFunctiongetNotif
TASK-3939 part B2b: the real-enqueue mention leg and the enrichment endpoint GET /me/notifications/{id}. getNotif asks for notification id as the hold
internal/server/task3939b2b_notification_test.go:25
↓ 11 callersFunctionhasFlagPair
(args []string, flag, val string)
internal/mcp/task4105_schedule_test.go:222
↓ 11 callersMethodheaders
()
cmd/pad/bug3646_pad_toml_token_test.go:38
↓ 11 callersMethoditem
(t *testing.T, collectionID, title string)
internal/server/handlers_apps_delivery_test.go:70
↓ 11 callersMethodlastPid
(t *testing.T)
internal/materialize/supervisor_test.go:349
↓ 11 callersFunctionlinkGraph
(t *testing.T, edges []Edge)
internal/schedule/links_test.go:25
↓ 11 callersFunctionlistTitles
BUG-3686: an item list with a search term (listItemsFTS) ignored include_archived and sort. (Its dropped offset was BUG-3704's.) BUG-3706: the tag fil
internal/store/bug3686_list_search_test.go:16
↓ 11 callersFunctionlisten
BUG-2736's Redis half. The counter is shared ACROSS processes, so no single instance can compute which incarnation of it an ID belongs to — the way Me
internal/events/redis_idspace_test.go:28
↓ 11 callersFunctionmakeCollection
makeCollection creates a collection via the API so it goes through the same slug/prefix machinery production does.
internal/server/collection_resolve_test.go:26
↓ 11 callersFunctionmakeIntegrationPNG
makeIntegrationPNG returns a real PNG large enough that both thumb-sm (256px) and thumb-md (1024px) variants must scale down. Filled with a stripe pat
internal/server/handlers_attachments_thumbnails_test.go:44
↓ 11 callersFunctionmakeTestImage
makeTestImage returns a freshly-allocated NRGBA image filled with a distinguishable pattern so transformation tests can assert on specific pixels. Wid
internal/attachments/processor_test.go:23
↓ 11 callersFunctionmapItemCreate
mapItemCreate translates an `item create` MCP call into a POST to api/v1/workspaces/{ws}/collections/{coll}/items. The MCP tool schema (auto-generate
internal/mcp/dispatch_http.go:827
↓ 11 callersFunctionmapItemList
(BUG-2001) The dispatcher used to mirror the CLI's hardcoded active-status allowlist here. That wrongly hid open items in collections with custom stat
internal/mcp/dispatch_http_routes.go:1505
↓ 11 callersFunctionmatchBrace
(code: string, openIndex: number)
web/src/test/identityFenceSource.ts:177
↓ 11 callersFunctionmcpServer
(t *testing.T, cfg config.Config, env *bool)
internal/server/handlers_admin_mcp_test.go:28
↓ 11 callersFunctionmustExec
(t *testing.T, db *sql.DB, query string, args ...any)
internal/store/nulscan_test.go:321
← previousnext →1,301–1,400 of 28,840, ranked by callers