MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions6,005 in github.com/PerpetualSoftware/pad

↓ 1 callersFunctionscanDocuments
(rows *sql.Rows)
internal/store/documents.go:429
↓ 1 callersFunctionscanItemsChanges
scanItemsChanges scans rows from ListItemsChangesSince (skinny projection + deleted_at so callers can distinguish tombstones).
internal/store/items.go:1281
↓ 1 callersFunctionscanItemsIndex
scanItemsIndex scans rows from ListItemsIndex (skinny projection — no i.content column).
internal/store/items.go:1515
↓ 1 callersFunctionscanTopLevelJSONKey
scanTopLevelJSONKey returns true if `key` appears as a top-level key in the JSON object encoded in body. It uses json.Decoder so it can terminate earl
internal/urlimport/detect.go:128
↓ 1 callersMethodschedule
Arm (or re-arm) the idle debounce to flush `markdown` for `ctx`. No-op * when recovering or `ctx` is null. Cancels any prior pending flush first,
web/src/lib/collab/collabFlush.svelte.ts:109
↓ 1 callersFunctionschemaDefaults
()
web/src/lib/types/index.ts:1605
↓ 1 callersFunctionschemaFieldKeys
(t *testing.T, schemaJSON string)
internal/store/store_test.go:271
↓ 1 callersFunctionscriptExists
(scripts map[string]string, key string)
internal/cli/detect.go:347
↓ 1 callersFunctionsearchCmd
--- search ---
cmd/pad/cmd_item.go:1830
↓ 1 callersMethodsearchFacets
searchFacets runs two GROUP BY queries against the full (unpaginated) search result set to produce collection and status breakdowns. Non-fatal — retur
internal/store/search.go:693
↓ 1 callersMethodsearchOrderClause
searchOrderClause returns the ORDER BY clause for search results. Includes i.id as a tie-breaker for deterministic pagination.
internal/store/search.go:672
↓ 1 callersFunctionseedBackfillRefresh
(t *testing.T, s *Store, requestID, clientID, subject string, ts time.Time, sessionData string)
internal/store/oauth_connections_backfill_test.go:96
↓ 1 callersFunctionseedBootstrapSizeFixture
seedBootstrapSizeFixture populates the workspace with the contributors the bootstrap size benchmark wants to exercise: always-on conventions with body
internal/server/handlers_bootstrap_test.go:659
↓ 1 callersFunctionseedConventionFromLibrary
seedConventionFromLibrary converts a LibraryConvention into a SeedConvention by marshaling its domain-specific fields (status, trigger, scope, priorit
internal/collections/templates.go:201
↓ 1 callersFunctionseedConventions
( fixture: SuiteFixture, request: APIRequestContext, conventions: ConventionInput[] )
web/e2e/lib/demo-seed.ts:123
↓ 1 callersFunctionseedDoc
( fixture: SuiteFixture, request: { post: (url: string, o: unknown) => Promise<{ ok(): boolean; status(): nu
web/e2e/collab-persistence.spec.ts:61
↓ 1 callersFunctionseedPlaybookFromLibrary
seedPlaybookFromLibrary converts a LibraryPlaybook into a SeedPlaybook. InvocationSlug and Arguments are forwarded into the seeded item's Fields JSON
internal/collections/templates.go:226
↓ 1 callersFunctionseedSourceWorkspace
( fixture: SuiteFixture, request: RequestCtx )
web/e2e/workspace-bundle-roundtrip.spec.ts:79
↓ 1 callersFunctionseedTaggedItem
seedTaggedItem POSTs an item with the given JSON tags array into a collection.
internal/server/handlers_tags_test.go:12
↓ 1 callersFunctionsendAwareness
(t *testing.T, c *websocket.Conn, payload byte)
internal/collab/manager_test.go:296
↓ 1 callersFunctionsendForceRefreshFrame
sendForceRefreshFrame writes a force_refresh control message on the conn. Used by the resume-cursor protocol when the client's announced `?since=<id>`
internal/collab/room.go:271
↓ 1 callersFunctionserveCmd
()
cmd/pad/cmd_server.go:44
↓ 1 callersFunctionserverCmd
()
cmd/pad/groups.go:37
↓ 1 callersFunctionserverHintFor
serverHintFor generates the actionable hint for ErrServerError. Catch-all — surface enough for an agent to file a bug report.
internal/mcp/errors.go:1165
↓ 1 callersMethodsessionStatePayload
(authenticated bool, user *models.User)
internal/server/handlers_auth.go:152
↓ 1 callersFunctionsessionWebMCPEnabled
sessionWebMCPEnabled extracts the webmcp_enabled bool from a session payload. The second return value reports whether the key was present.
internal/server/handlers_webmcp_setting_test.go:98
↓ 1 callersFunctionsetHiddenContentAcknowledged
(html: string)
web/src/lib/utils/hiddenContentDetector.ts:64
↓ 1 callersMethodsetParentLinkOnce
(workspaceID, itemID, parentID, createdBy string)
internal/store/items.go:2840
↓ 1 callersFunctionsetRateLimitHandler
(handler: RateLimitHandler | null)
web/src/lib/api/client.ts:273
↓ 1 callersFunctionsetSessionCookie
clearSessionCookie expires the session cookie on the client so a subsequent request doesn't keep presenting a now-revoked token. setSessionCookie (re)
internal/server/middleware_auth.go:1055
↓ 1 callersFunctionsetSysProcAttr
(cmd *exec.Cmd)
internal/cli/server_unix.go:11
↓ 1 callersMethodsetValue
Write a new value back to the bound state.
web/src/lib/utils/commentAttachments.ts:95
↓ 1 callersFunctionsettingsDefaults
()
web/src/lib/types/index.ts:1615
↓ 1 callersMethodsetupRouter
()
internal/server/server.go:961
↓ 1 callersMethodsetupStatePayload
(setupMethod string)
internal/server/handlers_auth.go:127
↓ 1 callersMethodshouldCreateItemVersion
shouldCreateItemVersion mirrors ShouldCreateVersion but queries item_versions.
internal/store/items.go:4169
↓ 1 callersFunctionshowCmd
--- show ---
cmd/pad/cmd_item.go:493
↓ 1 callersFunctionshowItemPRStatus
Helper functions for GitHub integration
cmd/pad/cmd_github.go:365
↓ 1 callersMethodshutdown
shutdown signals the sweeper to exit. Idempotent — safe to call from Server.Stop alongside other shutdown paths that may have already fired during a t
internal/server/middleware_mcp_session.go:195
↓ 1 callersFunctionskipJSONValue
skipJSONValue advances dec past one complete JSON value (object, array, or scalar). Used by scanTopLevelJSONKey to land on the next object key without
internal/urlimport/detect.go:160
↓ 1 callersFunctionsleep
(ms: number)
web/src/lib/api/client.ts:173
↓ 1 callersFunctionsliceEqual
sliceEqual reports whether a and b have the same elements in the same order. Local tiny helper avoids pulling reflect.DeepEqual into each assertion at
internal/server/handlers_mcp_test.go:1786
↓ 1 callersFunctionsnippetAround
snippetAround returns up to N bytes of body around the first occurrence of marker, or "(marker not found)". Used by the nonce test for diagnostic outp
internal/server/handlers_oauth_test.go:815
↓ 1 callersMethodspaHandler
()
internal/server/server.go:1665
↓ 1 callersFunctionsplitCSV
(s string)
internal/server/handlers_auth_bootstrap_token_test.go:354
↓ 1 callersFunctionsplitFromCmd
()
cmd/pad/lineage.go:18
↓ 1 callersFunctionsplitFrontmatter
splitFrontmatter separates a leading "---\n...\n---" block from the body. Returns ErrMalformed if the opening or closing fence is missing or the front
internal/artifact/decode.go:84
↓ 1 callersFunctionsplitLines
splitLines is a small dependency-free helper. We avoid bufio.Scanner here because the typical body is small (under 50KB) and allocating a scanner per
internal/collections/summary.go:35
↓ 1 callersFunctionsplitRef
splitRef parses "TASK-5" into ("TASK", 5). The trailing -<number> is required; everything before the last '-' is the prefix. Returns ok=false on shape
internal/store/wiki_links.go:828
↓ 1 callersFunctionsplitScopeString
splitScopeString parses RFC 6749 §3.3 space-delimited scope. Single space is the canonical separator; multi-spaces from hand-typed input are tolerated
internal/server/handlers_oauth.go:379
↓ 1 callersFunctionsplitSpaceSeparated
splitSpaceSeparated decodes the "a b c" form back to fosite.Arguments (a []string alias). Empty input → empty slice (non-nil) so range is safe.
internal/oauth/storage.go:573
↓ 1 callersFunctionstaleCmd
()
cmd/pad/query.go:75
↓ 1 callersFunctionstandupCmd
--- standup ---
cmd/pad/cmd_project.go:270
↓ 1 callersFunctionstarCmd
────────────────────────────────────────────────────────────────────────────── GitHub integration ────────────────────────────────────────────────────
cmd/pad/cmd_item.go:2172
↓ 1 callersFunctionstarredCmd
()
cmd/pad/cmd_item.go:2254
↓ 1 callersMethodstartMCPAuditWriter
startMCPAuditWriter constructs the audit writer + spawns its worker goroutine + spawns the periodic retention sweeper. Called once at startup from cmd
internal/server/middleware_mcp_audit.go:465
↓ 1 callersMethodstartWALCheckpointer
startWALCheckpointer runs PRAGMA wal_checkpoint(TRUNCATE) on a timer so the WAL file can't grow without bound. SQLite's automatic wal_autocheckpoint i
internal/store/store.go:192
↓ 1 callersFunctionstatusCmd
()
cmd/pad/cmd_project.go:26
↓ 1 callersFunctionstatusColor
(status: string)
web/src/lib/components/share/shareView.ts:236
↓ 1 callersFunctionstatusIconChar
statusIconChar returns just the icon character for a status (no text, no color).
internal/cli/format.go:73
↓ 1 callersFunctionstopCmd
--- stop ---
cmd/pad/cmd_server.go:944
↓ 1 callersMethodstopMCPAuditWriter
stopMCPAuditWriter signals the writer to drain + exit. Called from Server.Stop. Idempotent.
internal/server/middleware_mcp_audit.go:513
↓ 1 callersMethodstopOpLogGC
stopOpLogGC signals the loop to exit. Called from Server.Stop(). Safe to call when the loop never started.
internal/server/oplog_gc.go:107
↓ 1 callersMethodstopOrphanGC
stopOrphanGC signals the loop to exit. Called from Server.Stop(). Safe to call when the loop never started.
internal/server/orphan_gc.go:248
↓ 1 callersFunctionstopProcess
(p *os.Process)
internal/cli/server_unix.go:17
↓ 1 callersMethodstopRedisSubscription
stopRedisSubscription cancels and cleans up the Redis subscription for a workspace. Must be called with b.mu held.
internal/events/redis_bus.go:239
↓ 1 callersMethodstopWorkspacePurgeSweeper
stopWorkspacePurgeSweeper signals the loop to exit. Called from Server.Stop(). Safe to call when the loop never started.
internal/server/workspace_purge.go:151
↓ 1 callersFunctionstorageCmd
()
cmd/pad/cmd_workspace.go:25
↓ 1 callersFunctionstrPtr
(s string)
internal/cli/item_summary_test.go:12
↓ 1 callersFunctionstrconvUint
strconvUint is a tiny strconv.FormatUint replacement that avoids the import dance for a one-line helper.
internal/server/handlers_admin_billing_test.go:87
↓ 1 callersMethodstreamAttachmentToTar
streamAttachmentToTar resolves the storage backend for one attachment row, writes a tar header sized to size_bytes, and copies the blob from the backe
internal/server/handlers_export_bundle.go:239
↓ 1 callersFunctionstringInSlice
stringInSlice is a tiny test helper — `slices.Contains` would do but keeping the test free of stdlib generics ergonomics so it reads cleanly with the
internal/store/items_test.go:2623
↓ 1 callersFunctionstringifyDefault
(v: string | boolean | number)
web/src/lib/playbooks/arguments.ts:138
↓ 1 callersFunctionstripCommentIndex
stripCommentIndex returns the position of an unquoted `#` that begins a same-line comment in s, or -1 if no such comment exists. Comments preceded by
internal/cmdhelp/json.go:517
↓ 1 callersFunctionstripComments
stripComments removes JS/TS // line comments and /* ... */ block comments. Conservative — uses simple regex passes which won't correctly handle `//` i
internal/server/share_page_collab_isolation_test.go:151
↓ 1 callersFunctionstubWindow
(pathname: string, search = '')
web/src/lib/api/client.test.ts:10
↓ 1 callersFunctionsuiteFixture
()
web/e2e/fixtures.ts:44
↓ 1 callersFunctionsummarizeRelationRefs
(items []models.ItemRelationRef)
internal/server/item_lineage.go:223
↓ 1 callersFunctionsupersedesCmd
()
cmd/pad/lineage.go:37
↓ 1 callersFunctionswitchCmd
--- switch ---
cmd/pad/cmd_workspace.go:830
↓ 1 callersFunctiontagCmd
()
cmd/pad/cmd_tag.go:13
↓ 1 callersFunctiontagListCmd
()
cmd/pad/cmd_tag.go:24
↓ 1 callersFunctiontaskFields
* Build the on-the-wire `fields` object for a demo task. Filters out * undefined effort so we don't post `effort: undefined` JSON.
web/e2e/lib/demo-seed.ts:37
↓ 1 callersFunctiontestStoreSQLite
(t *testing.T)
internal/store/store_test.go:52
↓ 1 callersFunctionthrowawayIdentity
(tag: string)
web/e2e/account-delete.spec.ts:40
↓ 1 callersFunctionthumbnailFilename
thumbnailFilename builds the synthetic filename for a derived row — parent's basename + variant suffix + extension. Surfaces a sensible Content-Dispos
internal/server/handlers_attachments_thumbnails.go:213
↓ 1 callersFunctiontimeValue
(s: string | undefined)
web/src/lib/collections/itemSort.ts:41
↓ 1 callersFunctiontitleCaseLabel
titleCaseLabel converts a snake_case key into a Title Case label the same way the CLI does ("due_date" → "Due Date"). Duplicated from internal/mcp/dis
internal/server/handlers_bootstrap.go:196
↓ 1 callersFunctiontoBool
(v any)
internal/mcp/dispatch.go:566
↓ 1 callersFunctiontoByte
(v: number)
web/src/lib/collab/cursorColor.ts:58
↓ 1 callersMethodtoRouteMapper
toRouteMapper compiles spec into a RouteMapper closure.
internal/mcp/dispatch_http_routes.go:52
↓ 1 callersMethodtoShape
toShape converts the parsed extract into the (all_current, explicit) pair the seeder consumes. Three branches: - hasKey == false → all_current
internal/store/oauth_connections_backfill.go:378
↓ 1 callersFunctiontoString
toString coerces a scalar frontmatter value to string. Values originate as strings in practice; non-strings are rendered defensively.
internal/artifact/encode.go:94
↓ 1 callersFunctiontoStringMap
(v any)
internal/artifact/encode.go:132
↓ 1 callersFunctiontoStringSlice
(v any)
internal/mcp/dispatch.go:521
↓ 1 callersFunctiontransformedFilename
transformedFilename builds the synthetic filename for the derived row. We append the operation tag (e.g. ".rotated", ".cropped") before the extension
internal/server/handlers_attachments_transform.go:282
↓ 1 callersFunctiontriggerSync
* Trigger a sync immediately (e.g., when SSE sends sync_required * while the tab is still visible). This bypasses the visibility * change listener
web/src/lib/services/sync.svelte.ts:197
↓ 1 callersFunctiontrimLeadingSpaces
(s string)
internal/collections/summary.go:50
↓ 1 callersFunctiontrimSpace
trimSpace is strings.TrimSpace inlined to avoid pulling strings through this file just for one call. catalog_item.go already imports strings for joinS
internal/mcp/catalog_item.go:606
↓ 1 callersFunctiontrimSpaceASCII
(s string)
internal/server/handlers_auth_bootstrap_token_test.go:367
← previousnext →2,601–2,700 of 6,005, ranked by callers