MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 2 callersFunctionlinksSection
()
web/src/lib/components/shareDialogOpenGen.svelte.test.ts:421
↓ 2 callersFunctionlistAll
(request: APIRequestContext, f: Fixture, n: number)
web/e2e/chat-thread-write.spec.ts:56
↓ 2 callersMethodlistAttachments
(wsSlug, endpoint string, params AttachmentListParams)
internal/cli/client.go:3543
↓ 2 callersFunctionlistCmdWithClient
(clientFor func() *cli.Client)
cmd/pad/cmd_item.go:470
↓ 2 callersMethodlistItemVersionsPageQ
(q Queryer, itemID string, limit int)
internal/store/items.go:7089
↓ 2 callersMethodlistItemsPage
listItemsPage runs the list one row past params.Limit (always set, by parseItemListParams) to learn whether more exist, trims that row, and sets the p
internal/server/handlers_items.go:4783
↓ 2 callersMethodlistItemsQ
(q Queryer, workspaceID string, params models.ItemListParams)
internal/store/items.go:1318
↓ 2 callersFunctionlistKeyNav
( order: readonly string[], focusedId: string | null, step: 1 | -1, )
web/src/lib/collections/listNav.ts:13
↓ 2 callersMethodlistPlaybookItems
listPlaybookItems gathers the workspace's playbook items, scoped to what the caller can see. Shared by handleListPlaybooks and handleMatchPlaybook (TA
internal/server/handlers_playbooks.go:107
↓ 2 callersMethodlistStarredItems
(userID, workspaceID string, includeTerminal, withBodies bool)
internal/store/item_stars.go:107
↓ 2 callersMethodlistTerminalItemsSince
listTerminalItemsSince fetches items that reached a *positive* terminal since cutoff. Terminal values are resolved per collection via models.Collectio
internal/server/handlers_project_intel.go:151
↓ 2 callersMethodlistVersionsQ
listVersionsQ is ListVersions against a caller-supplied executor, so the snapshot read (BUG-3833) lists the rows inside its own transaction.
internal/store/versions.go:97
↓ 2 callersFunctionlistenOnFreePort
Listens on 127.0.0.1:0 and resolves the port the OS assigned (no reserve-then-bind race).
web/e2e/lib/real-install.ts:91
↓ 2 callersFunctionliteral
(e ast.Expr)
scripts/ci-web-census/main.go:50
↓ 2 callersFunctionliveFlush
The tab's flush output: ItemDetail's normalize, then serialize.
web/src/lib/collab/materializer/materializerParity.svelte.test.ts:198
↓ 2 callersFunctionliveImport
liveImport sends headers and prefix, stalls, then sends rest, over a fresh connection.
internal/server/handlers_import_bundle_bug3184_test.go:263
↓ 2 callersFunctionliveOwned
(t *testing.T, s *Store, wsID string)
internal/store/bug3099_delete_account_lock_test.go:33
↓ 2 callersFunctionliveWorkspace
(t *testing.T, srv *Server, id string)
internal/server/bug3099_account_delete_owned_test.go:33
↓ 2 callersFunctionlivingChildPID
livingChildPID starts a process that outlives the test body (killed in cleanup) and returns its pid: a LIVE pid that is not an ancestor.
internal/cli/session_registry_test.go:35
↓ 2 callersFunctionload
(scope: WorkspaceScope)
web/src/lib/components/items/ItemDetail.workspaceScope.svelte.test.ts:151
↓ 2 callersMethodload
()
web/src/lib/stores/chatInbox.svelte.ts:282
↓ 2 callersFunctionloadAllow
loadAllow reads the allowlist; an absent file allows nothing, and a line without a reason is an error, so an exception always says why.
cmd/depages/main.go:299
↓ 2 callersFunctionloadCensusPackage
loadCensusPackage type-checks the one package in dir, once per test binary: the reader census and the handoff census ask different questions of the sa
internal/server/body_reader_census_test.go:33
↓ 2 callersFunctionloadDashboard
(client *cli.Client, ws string)
cmd/pad/query.go:352
↓ 2 callersFunctionloadItemDetail
()
web/src/lib/components/items/itemDetailLoader.ts:19
↓ 2 callersFunctionloadManifestBodySeed
(fsys fs.FS, raw json.RawMessage)
internal/collections/templates_manifest.go:658
↓ 2 callersMethodloadNewer
Fetch one page after the window's newest row.
web/src/lib/stores/chatThread.svelte.ts:324
↓ 2 callersMethodloadOlder
Fetch the page before the window's oldest row. A failure keeps the window.
web/src/lib/stores/chatThread.svelte.ts:303
↓ 2 callersMethodloadOwnSessionPresence
(userID string)
internal/server/handlers_role_queue.go:63
↓ 2 callersFunctionloadPushCollapseCases
(t *testing.T)
internal/server/push_message_collapse_test.go:19
↓ 2 callersMethodloadResolutionUndoQ
(q Queryer, sc *models.ItemSchedule)
internal/store/schedule_reopen.go:329
↓ 2 callersFunctionloadService
()
web/src/lib/services/sseLiveness.svelte.test.ts:91
↓ 2 callersFunctionloadService
()
web/src/lib/services/sseSyncSpread.svelte.test.ts:77
↓ 2 callersFunctionloadSuiteFixture
()
web/e2e/fixtures.ts:38
↓ 2 callersFunctionlocalArmStateString
localArmStateString maps the tri-state to the stable JSON token.
cmd/pad/cmd_session.go:707
↓ 2 callersMethodlockBindingsInOrderTx
lockBindingsInOrderTx locks the app_token_bindings rows a predicate selects, tombstones included, in request_id order, on Postgres (SQLite's single wr
internal/store/install_clients.go:690
↓ 2 callersMethodlockCommentForDeleteTx
lockCommentForDeleteTx reads the row DeleteComment acts on. On Postgres it first locks the row's whole ancestor chain, root first, then the row: reapT
internal/store/comments.go:605
↓ 2 callersMethodlockCommentsRootFirstTxCtx
(ctx context.Context, tx *sql.Tx, scopeCol string, scopeVals ...string)
internal/store/comments.go:675
↓ 2 callersMethodlockConnectionTx
lockConnectionTx takes the connection row's write lock inside tx (a no-op UPDATE: a row lock on Postgres, the database write lock on SQLite), so a gua
internal/store/oauth_connections.go:419
↓ 2 callersMethodlockNeedsHide
lockNeedsHide serializes the two hide-state writes (snooze and not-mine) for one (user, item) on Postgres, so each write's delete of the other sees a
internal/store/needs_not_mine.go:25
↓ 2 callersMethodlockOwnComment
lockOwnComment reads the comment the caller addresses through itemID, row locked on Postgres as the human edit locks it, and refuses unless it is on t
internal/store/fenced_comments.go:145
↓ 2 callersMethodlockUserRowTx
lockUserRowTx takes the account row lock (Postgres; SQLite's BEGIN IMMEDIATE already serializes writers). sql.ErrNoRows when it is gone.
internal/store/oauth_identities.go:48
↓ 2 callersFunctionlockWaiters
lockWaiters counts this test database's backends waiting on a lock.
internal/store/delete_account_writer_lockorder_test.go:342
↓ 2 callersFunctionlockedDir
lockedDir builds root/name the way mkdirOwned does, in its order: take the flock in a staging directory, then rename into place. The returned file hol
internal/testtmp/lock_unix_test.go:30
↓ 2 callersFunctionlockedGesture
(e: Event)
web/src/lib/collections/lockableDndzone.ts:52
↓ 2 callersMethodlogActivityWithMetaReturningID
(workspaceID, documentID, action string, r *http.Request, metadata string)
internal/server/handlers_documents.go:449
↓ 2 callersMethodlogExhaustion
logExhaustion is the ONE line a stuck item leaves: which item, how many failures, and the kind of the last one. WARN, because from here on the item's
internal/server/materialize_recovery.go:661
↓ 2 callersMethodlogSpend
logSpend writes the evaluation's spend line: counts and identifiers only, never a question, an answer, the item's text or an error message (a provider
internal/decision/runner.go:727
↓ 2 callersMethodlogStop
(c *child, reason string, delay time.Duration, extra ...any)
internal/materialize/supervisor.go:980
↓ 2 callersFunctionlooksLikeFieldKey
(field: string)
web/src/lib/utils/activityChanges.ts:92
↓ 2 callersFunctionlookupAll
(src Sources, deps []Dep, concurrency int)
cmd/depages/main.go:322
↓ 2 callersMethodlookupAssigneeID
lookupAssigneeID issues an in-handler GET against api/v1/workspaces/{ws}/members and returns the user_id whose name OR email matches `assign`. Case-in
internal/mcp/dispatch_http_advanced.go:218
↓ 2 callersMethodlookupRoleID
lookupRoleID issues an in-handler GET against api/v1/workspaces/{ws}/agent-roles/{slug} and returns the role's canonical id. The handler accepts eithe
internal/mcp/dispatch_http_advanced.go:165
↓ 2 callersFunctionloopBindings
The names a loop's own head declares (`for (let i …)`, `for (const x of …)`).
web/src/test/identityFenceAst.ts:773
↓ 2 callersFunctionlostLaneLabel
( target: { lostLane: string; lostField?: string }, labelFor: (fieldKey: string) => string, )
web/src/lib/collections/laneDrafts.ts:130
↓ 2 callersFunctionluminance
(hex: string)
web/src/routes/[username]/[workspace]/graph/graphTheme.ts:43
↓ 2 callersFunctionmakeCollection
(id: string, slug: string)
web/src/lib/components/common/QuickActionsMenu.svelte.test.ts:77
↓ 2 callersFunctionmakeDest
()
internal/models/testdata/decodeshapes/shapes.go:26
↓ 2 callersFunctionmakeFlusher
(overrides: Partial<CollabFlusherConfig> = {})
web/src/lib/collab/collabFlushStamp.test.ts:16
↓ 2 callersFunctionmakeTarGzWithExport
(t *testing.T, exportJSON []byte)
internal/server/task4839_export_limit_test.go:43
↓ 2 callersFunctionmakeTarget
A stand-in scroll container; `scrollTo` firing is the "restore proceeded" signal.
web/src/lib/scroll/restore.svelte.test.ts:58
↓ 2 callersFunctionmanifest
(origin: string)
web/e2e/task-3415-real-install.spec.ts:62
↓ 2 callersFunctionmanifestField
manifestField reads one top-level string from a stored manifest.
internal/store/app_item_actions.go:193
↓ 2 callersFunctionmap
(...rs: ChatRef[])
web/src/lib/components/chat/MessageBubble.svelte.test.ts:262
↓ 2 callersFunctionmapGrantRevoked
mapGrantRevoked turns a mint refused on a revoked grant into fosite.ErrInactiveToken, which fosite answers invalid_request rather than server_error (B
internal/oauth/storage.go:288
↓ 2 callersFunctionmapItemPatch
mapItemPatch is itemPatchRoute with its two numeric inputs validated here (BUG-4065, folded from BUG-4061, decision 63360424). They used to be forward
internal/mcp/dispatch_http_routes.go:922
↓ 2 callersFunctionmapPflagType
mapPflagType translates pflag Value.Type() strings to the cmdhelp v0.1 type vocabulary (spec §5.1) and reports whether the flag is repeatable. pflag
internal/cmdhelp/json.go:444
↓ 2 callersFunctionmapWorkspaceClaim
mapWorkspaceClaim dispatches `pad workspace claim <code> --workspace <slug>`. POST /api/v1/oauth/claim with body {workspace, code} — see internal/ser
internal/mcp/dispatch_http_routes.go:1550
↓ 2 callersMethodmarkConversationSeq
column is one of the two fixed marker columns above, never caller input (TASK-4038).
internal/store/conversations.go:675
↓ 2 callersFunctionmarkItemArchived
(itemId: string)
web/src/lib/attachments/archivedItemRegistry.ts:50
↓ 2 callersFunctionmarkItemListTruncation
markItemListTruncation trims a list result fetched with limit+1 back to limit and, when it had the extra row, sets has_more on the structured result a
internal/mcp/catalog_item.go:976
↓ 2 callersMethodmarkRaw
---- an offset update leaves the mark ---- markRaw writes the mark the cancel hook writes, on item i's outstanding occurrence, with an optional dragge
internal/store/commitment_cancel_test.go:295
↓ 2 callersMethodmarkUnconfirmedAdmission
markUnconfirmedAdmission records that Redis did not acknowledge a subscription within the bound, so its callers are being admitted without this instan
internal/events/redis_bus.go:2026
↓ 2 callersFunctionmarkWorkspaceDropped
* Record that a workspace's rows are gone. EVERY path that drops them calls * this — `reset()`, which deletes the whole state entry, and `bootstrap()
web/src/lib/stores/localIndex.svelte.ts:390
↓ 2 callersFunctionmarkdownShowBodies
IDEA-2937: `pad item show <ref> --format markdown` is the machine-facing read of an item body, and `pad item update <ref> --stdin` is the write. Toget
cmd/pad/item_show_markdown_roundtrip_test.go:31
↓ 2 callersFunctionmarkerRun
BUG-3215. Between the stop and the restart nothing serves the port, and a pad CLI call in that window used to auto-start a server of its own (the call
internal/buildtools/install_refresh_marker_test.go:23
↓ 2 callersFunctionmarketplaceEntries
(doc map[string]any)
internal/mcp/claude_plugin_manifest_test.go:93
↓ 2 callersFunctionmarketplaceSource
(t *testing.T, dir string)
internal/buildtools/pin_plugin_marketplace_test.go:92
↓ 2 callersFunctionmarshalPIDRecord
marshalPIDRecord is the file's bytes for rec.
internal/cli/pidfile.go:37
↓ 2 callersFunctionmarshalWithPersistedEntryIDs
marshalWithPersistedEntryIDs marshals an append helper's result and gives any sibling entry without a usable, unique id a persisted one (BUG-2788). Th
internal/models/item.go:1150
↓ 2 callersFunctionmaskEmailShapedNames
maskEmailShapedNames replaces email-shaped person names in place.
internal/mcp/chatgpt_project.go:509
↓ 2 callersFunctionmasterCol
The route column that holds the MASTER (route-owned `.item-page-host > * .item-page` direct child). The pane is a SEPARATE direct child * (`aside.
web/e2e/pane-full-page-capstone.spec.ts:81
↓ 2 callersFunctionmatchModeAlias
(options []modeOption, input string)
cmd/pad/configure.go:297
↓ 2 callersFunctionmatches
matches returns every start offset of sub in s, overlapping ones included: "aa" occurs twice in "aaa", and a uniqueness check that counted it once wou
internal/bodypatch/bodypatch.go:115
↓ 2 callersFunctionmaterialize
(jobJSON: string)
web/src/lib/collab/materializer/entry.ts:78
↓ 2 callersFunctionmaxScale
(g: Geometry)
web/src/lib/attachments/zoom.ts:248
↓ 2 callersMethodmaxTransitionSeqs
(q Queryer, ids []string)
internal/store/milestone.go:596
↓ 2 callersFunctionmaxWorkspaceSeq
(t *testing.T, s *Store, workspaceID string)
internal/store/items_create_tx_test.go:71
↓ 2 callersFunctionmayReadImportNote
mayReadImportNote: the workspace's owners, and instance admins who are MEMBERS of it. An admin admitted only through a guest grant reads the workspace
internal/server/handlers_workspaces.go:662
↓ 2 callersMethodmaybeWarnStorageQuota
maybeWarnStorageQuota emits a slog warning if the workspace's usage has crossed the owner-plan storage limit. Phase 1 is observational only — see DOC-
internal/server/handlers_attachments.go:1043
↓ 2 callersFunctionmcp
(tool, args)
plugin/hooks/register.js:97
↓ 2 callersMethodmcpAuditDroppedSnapshot
mcpAuditDroppedSnapshot returns the cumulative number of audit entries dropped due to buffer-full backpressure. Exported as a method on Server so admi
internal/server/middleware_mcp_audit.go:201
↓ 2 callersFunctionmcpAuditEntryToDTO
(e models.MCPAuditEntry)
internal/server/handlers_mcp_audit.go:65
↓ 2 callersMethodmcpBlockedReasonFor
(ep config.MCPEndpoints)
internal/server/handlers_admin_mcp.go:244
↓ 2 callersMethodmcpChallengeMetadataURL
mcpChallengeMetadataURL is the protected-resource metadata URL a challenge on r names: THIS mount's document (TASK-3321 U2b; the ChatGPT mount stamps
internal/server/middleware_mcp_auth.go:646
↓ 2 callersFunctionmcpConnectionStatsKey
mcpConnectionStatsKey is the canonical map key for the result of MCPConnectionStatsForUser. Exposed via a helper so callers constructing lookup keys d
internal/store/mcp_audit.go:269
↓ 2 callersFunctionmcpRequestUA
TASK-2307: pad_mcp_http_requests_total{mount, method, client} counts each authenticated request reaching an MCP mount, so a week of Cloud traffic says
internal/server/task2307_mcp_request_counter_test.go:17
↓ 2 callersFunctionmcpServeCmd
mcpServeCmd implements the stdio MCP server. The cobra command is a thin wrapper around internal/mcp.Server — all transport / handshake behaviour and
cmd/pad/mcp.go:259
↓ 2 callersFunctionmcpServedVersion
mcpServedVersion reports whether the transport behind a mount serves version. A transport that does not say (a test stub, a wrapper that does not forw
internal/server/mcp_stream_keepalive.go:212
↓ 2 callersMethodmcpStreamPrincipalStillValid
mcpStreamPrincipalStillValid reports whether the stream may continue: its credential is live, and its user still exists and is enabled.
internal/server/mcp_stream_credential.go:66
← previousnext →8,401–8,500 of 31,685, ranked by callers