MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 3 callersFunctionofferSkillInstall
()
cmd/pad/cmd_workspace.go:888
↓ 3 callersFunctionok
(structuredContent: unknown)
web/src/mcp-app/Board.svelte.test.ts:34
↓ 3 callersFunctionokString
okString renders a barrier_ack's OK for a failure message.
internal/collab/barrier_bug3523_test.go:37
↓ 3 callersFunctionopen
(isReconnect: boolean)
web/src/lib/services/accessStream.svelte.ts:306
↓ 3 callersMethodopen
()
web/src/lib/components/chat/ChatThreadView.svelte.test.ts:26
↓ 3 callersFunctionopenAt
(path: string, state: Record<string, unknown> = { chatDepth: 1 })
web/src/lib/components/chat/ChatHost.svelte.test.ts:119
↓ 3 callersFunctionopenTabs
(page: Page, slugs: string[], n: number)
web/e2e/lib/workspace-tabs.ts:61
↓ 3 callersFunctionoracleConv
oracleConv maps a wall reading into the library's time space: a UTC-labelled wall on the wall-clock path, a real instant on the elapsed path.
internal/schedule/oracle_test.go:12
↓ 3 callersFunctionorigin
()
web/src/lib/chat/markdown.ts:23
↓ 3 callersFunctionoutFirstLine
(s string)
cmd/pad/item_update_outcome_test.go:72
↓ 3 callersMethodoutboxMemberSnapshotsTx
outboxMemberSnapshotsTx builds the MEMBER LIST FOR AN item.bulk_updated PAYLOAD. It is not a general "read these items" helper, and the name says so o
internal/store/event_outbox.go:1380
↓ 3 callersFunctionoverlongTitle
Item title validation at the store's two write doors (BUG-2833 empty, BUG-2831 length). EVERY test here is DIFFERENTIAL by construction: testStore re
internal/store/items_title_validation_test.go:30
↓ 3 callersMethodoverrideModes
Second-round review fixes on time links (TASK-4353).
internal/store/commitment_links_round2_test.go:12
↓ 3 callersFunctionownerIDOf
(t *testing.T, e *appsEnv)
internal/server/handlers_apps_provision_test.go:381
↓ 3 callersFunctionpad
(n: number)
web/src/lib/calendar/monthGrid.ts:9
↓ 3 callersFunctionpadInitCmd
()
cmd/pad/init.go:21
↓ 3 callersFunctionpadTomlURLFor
padTomlURLFor returns the URL to write into .pad.toml for the given client config. Local-mode workspaces get the empty string (the default loopback se
cmd/pad/init.go:387
↓ 3 callersFunctionpadddBackoff
padddBackoff computes the delay before the Nth reconnect attempt (attempt=1 is the first retry after an initial failed connection). Linear and capped
cmd/pad/cmd_watch.go:49
↓ 3 callersFunctionpaneHistoryGo
(delta: number, latch?: () => boolean)
web/src/lib/collections/paneHostController.ts:177
↓ 3 callersFunctionpanels
()
web/src/lib/components/items/itemDetailAddDate.svelte.test.ts:127
↓ 3 callersFunctionparityFixtureInput
parityFixtureInput satisfies every required positional across the catalog so each ActionFn reaches env.Dispatch instead of erroring on missing input.
internal/mcp/dispatch_http_parity_test.go:40
↓ 3 callersFunctionparse
(key: string)
web/src/lib/chat/chatRecords.ts:52
↓ 3 callersFunctionparseAgendaWindow
parseAgendaWindow reads from and to, writing the 400 itself on a refusal.
internal/server/handlers_agenda.go:146
↓ 3 callersFunctionparseAwaitsHumanFlag
parseAwaitsHumanFlag reads --awaits-human (IDEA-3906). A string flag with a bare-flag default of true, so `--awaits-human` sets it and `--awaits-human
cmd/pad/cmd_collection.go:666
↓ 3 callersFunctionparseCORSOrigins
parseCORSOrigins parses a comma-separated list of origins into a slice. Returns default localhost origins if the input is empty. The '*' wildcard is
internal/server/middleware_security.go:71
↓ 3 callersFunctionparseCrossWorkspaceBody
(body: string)
web/src/lib/utils/markdown.ts:749
↓ 3 callersFunctionparseExamples
parseExamples turns cobra's Example field (a single multiline string) into individual Example entries. Each non-empty, non-comment line is taken as on
internal/cmdhelp/json.go:483
↓ 3 callersFunctionparseFieldKVP
* Parse the catalog's `field` param (array of "key=value" strings for * schema-declared custom fields) into a key→value object. Throws on a * malfor
web/src/lib/webmcp/dispatch.ts:147
↓ 3 callersFunctionparseListWindow
parseListWindow reads ?limit= and ?offset= for a bounded list that is not an item list (BUG-3789, BUG-3790, BUG-3792), as parseItemListParams reads th
internal/server/handlers_items.go:4804
↓ 3 callersFunctionparseMCPAuditPaging
parseMCPAuditPaging extracts limit + offset from the query string, applying sane caps. Bound limit at 200 — large enough for a "scan the recent audit"
internal/server/handlers_mcp_audit.go:92
↓ 3 callersFunctionparseMeta
(meta: string | undefined)
web/src/lib/components/timeline/historyEvents.ts:88
↓ 3 callersFunctionparseStore
parseStore parses a non-empty credentials file, v1 or v2.
internal/cli/credentials.go:263
↓ 3 callersFunctionparseStoredSchema
(collection: Collection)
web/src/lib/types/index.ts:3337
↓ 3 callersFunctionparseTracksWorkFlag
parseTracksWorkFlag reads --tracks-work (PLAN-3535). A string flag rather than a bool so that false survives the MCP stdio transport, which emits a bo
cmd/pad/cmd_collection.go:650
↓ 3 callersFunctionparseWatchPredicate
parseWatchPredicate splits a `field=value` predicate string. DOC-2479 specs only this single-pair grammar — no boolean combinators.
internal/server/handlers_watch_events.go:988
↓ 3 callersFunctionpartSize
(v any)
internal/server/handlers_item_context.go:428
↓ 3 callersFunctionpatchRoomFixture
(t *testing.T, refuse string)
internal/server/plan3578_patch_room_test.go:78
↓ 3 callersMethodpatchSchema
(t *testing.T, schema string, migrations []models.FieldMigration)
internal/server/task2188_field_usage_test.go:73
↓ 3 callersMethodpath
(versionID, action string)
internal/server/bug3815_restore_unreconstructable_test.go:89
↓ 3 callersFunctionpayload
payload parses one skill command against the real tree and returns the subcommand path and the flags that were set.
cmd/pad/capture_skill_commitment_test.go:48
↓ 3 callersFunctionpaymentFailedAuditForUser
paymentFailedAuditForUser walks the audit log for a given user and returns every payment_failed_email_sent row's parsed metadata. Used by the send-pat
internal/server/cloud_admin_gate_test.go:729
↓ 3 callersFunctionpeerAddr
peerAddr extracts the IP from a RemoteAddr string, which may be either "host:port" (the stdlib default) or a bare "host" (what some middleware leaves
internal/server/middleware_realip.go:145
↓ 3 callersFunctionpendingFlushExistsSQLFor
pendingFlushExistsSQLFor is the BUG-3000 half of contentStateSQLFor on its own: unflushed content-bearing op-log rows. A door that must ask about the
internal/store/items.go:857
↓ 3 callersFunctionpendingLinkHash
(token string)
internal/store/oauth_pending_links.go:27
↓ 3 callersFunctionpendingLinkUser
TASK-4745: a provider identity the login refused as not linked, held for the account's next full sign-in.
internal/store/oauth_pending_links_test.go:14
↓ 3 callersFunctionperiodDensity
periodDensity bounds candidates buffered by one generator FREQ period, before COUNT, UNTIL or BYSETPOS can reduce them. RFC 5545 section 3.3.10 (https
internal/schedule/density.go:20
↓ 3 callersFunctionpersistRemovals
( userId: string | null, ws: string, ids: string[], )
web/src/lib/stores/localIndexPersistence.ts:1132
↓ 3 callersMethodpersistThumbnail
persistThumbnail encodes the resized image, hashes the bytes, writes through the content-addressed storage backend, and inserts the derived attachment
internal/server/handlers_attachments_thumbnails.go:300
↓ 3 callersFunctionpgDbnameFromURL
pgDbnameFromURL extracts just the database name from a PostgreSQL DSN for display purposes. Handles both the URI form (postgres://.../dbname) and the
cmd/pad/cmd_db.go:31
↓ 3 callersFunctionpgOAuthConnFixture
(t *testing.T)
internal/store/oauth_connections_autoadd_test.go:34
↓ 3 callersMethodpickApplier
pickApplier returns the longest-connected roomConn that hasn't already been tried, or nil if there are no candidates left. The stable ordering (sort b
internal/collab/applier.go:886
↓ 3 callersMethodpickApplierFor
pickApplierFor is pickApplier, restricted to patch-capable conns when the request is a patch (PLAN-3578 step 2).
internal/collab/applier.go:923
↓ 3 callersFunctionpidIsSelfOrAncestor
pidIsSelfOrAncestor reports whether pid is this process or one of its ancestors, walking /proc/<pid>/stat's ppid field (via procStatFields, the parser
internal/cli/proc_ancestry_linux.go:21
↓ 3 callersMethodpinCommitmentRoot
pinCommitmentRoot is the one implementation of the pin. With rootMayLackSchedule the root ITEM is pinned (item, then workspace) whether or not it has
internal/store/commitment_links.go:229
↓ 3 callersFunctionpinnedTo
(srv *httptest.Server)
internal/appfetch/appfetch_test.go:27
↓ 3 callersFunctionplacedShown
placedShown shows an instant the server placed from a bare date in the caller's account zone, marked " (start of your day)" (TASK-4699, TASK-4723).
cmd/pad/cmd_reminder.go:167
↓ 3 callersFunctionplaceholder
()
web/src/lib/components/editor/attachmentImageMissing.svelte.test.ts:136
↓ 3 callersFunctionplanIs
(t *testing.T, s *store.Store, id string)
cmd/pad/task3551_boot_plan_backfill_test.go:30
↓ 3 callersFunctionplanOf
TASK-3551: a non-cloud boot converts free users to self-hosted (unlimited), but never on a database a Pad Cloud instance owns. Runs on SQLite, and on
internal/store/task3551_instance_mode_test.go:12
↓ 3 callersFunctionplaybookStatus
playbookStatus reads the `status` value out of a playbook item's fields JSON. Status lives in the typed fields blob, not as a top-level Item column, s
internal/server/handlers_playbooks.go:598
↓ 3 callersFunctionpointerEvent
( type: string, x: number, y: number, opts: { buttons?: number; pointerType?: string; button?: numbe
web/src/lib/components/common/Lightbox.svelte.test.ts:2017
↓ 3 callersMethodpost
(body, session string, headers map[string]string)
internal/mcp/bug2772_remote_agent_identity_test.go:119
↓ 3 callersFunctionpostComment
( fixture: SuiteFixture, request: APIRequestContext, itemSlug: string, body: string )
web/e2e/lib/attachment-viewer.ts:491
↓ 3 callersFunctionpostMCPSized
BUG-3534: the MCP mounts refuse an authenticated POST body over mcpBodyLimit with 413 before the transport reads it, on both the declared-length and t
internal/server/bug3534_mcp_body_limit_test.go:21
↓ 3 callersMethodpostMessage
()
web/src/lib/services/sseStreamBudget.svelte.test.ts:165
↓ 3 callersFunctionpostgresClient
postgresClient passes an explicit conninfo to libpq: PGDATABASE alone does not expand a URI. Extract the database password so it stays off argv.
cmd/pad/postgres_client.go:13
↓ 3 callersFunctionpreserveReservedUnparentedViewFilter
preserveReservedUnparentedViewFilter applies a restricted caller's visible config replacement without letting that round-trip delete an unrestricted $
internal/server/handlers_views.go:372
↓ 3 callersFunctionprintBootstrapAgenda
printBootstrapAgenda renders rows, counts and incomplete sections. A complete empty agenda prints nothing.
cmd/pad/cmd_bootstrap.go:268
↓ 3 callersFunctionprintGroupedTemplates
printGroupedTemplates prints the visible templates to w, grouped by category in canonical order. Used by `--list-templates` and the "unknown template"
cmd/pad/templates_picker.go:23
↓ 3 callersFunctionprintItemsGroupedByCollection
(items []models.Item)
cmd/pad/cmd_item.go:844
↓ 3 callersFunctionprintNeedsJSON
(cmd *cobra.Command, v any)
cmd/pad/cmd_needs.go:223
↓ 3 callersFunctionprintPostSetupNextStepsHint
printPostSetupNextStepsHint walks the freshly-bootstrapped admin to the next step that actually does something useful: creating a workspace. The IDEA-
cmd/pad/cmd_auth.go:323
↓ 3 callersFunctionprintSetupRequiredHint
(cfg *config.Config)
cmd/pad/cmd_auth.go:831
↓ 3 callersFunctionpriorityColor
(priority: unknown)
web/src/lib/utils/fieldColors.ts:110
↓ 3 callersMethodprobeFailureCount
()
internal/events/observer_test.go:77
↓ 3 callersFunctionprobeRefusal
( url: string, fetchFn: typeof fetch = fetch, timeoutMs: number = PROBE_TIMEOUT_MS, )
web/src/lib/services/sseReconnect.ts:82
↓ 3 callersFunctionprocStatFields
procStatFields reads /proc/<pid>/stat and returns the space-separated fields AFTER the comm field — the one parser both the start-token and the ancest
internal/cli/proc_start_linux.go:61
↓ 3 callersFunctionprojectRoleParam
(input map[string]any, cmdKey string)
internal/mcp/dispatch_http_project.go:116
↓ 3 callersFunctionpromptAndBootstrap
promptAndBootstrap collects admin credentials from the terminal and creates the first admin account via /auth/bootstrap, retrying the password pair on
cmd/pad/cmd_auth.go:725
↓ 3 callersFunctionprotectedResourceMetadataURL
protectedResourceMetadataURL is where RFC 9728 §3.1 puts the metadata for resource: the well-known segment inserted between the host and the resource'
internal/server/handlers_well_known.go:243
↓ 3 callersFunctionprovePreServer
(cmd *exec.Cmd, probeHost string, port int, d time.Duration, cleanup func(func()))
internal/buildtools/install_refresh_test.go:360
↓ 3 callersFunctionproviderListHas
(list []string, v string)
internal/store/oauth_identities.go:57
↓ 3 callersFunctionpsRSS
psRSS reads a process's resident set size with `ps -o rss= -p <pid>`, the macOS watchdog's fallback when proc_info is unavailable. Built on Linux too
internal/materialize/memcap_ps.go:15
↓ 3 callersFunctionptr
(v T)
internal/server/bug3382_verify_claim_test.go:277
↓ 3 callersMethodpublishEvent
publishEvent publishes a real-time event if the event bus is available (best-effort).
internal/server/handlers_documents.go:320
↓ 3 callersMethodpublishLostIfUnreachable
publishLostIfUnreachable publishes "lost" for a user after a per-user loss write (member removal, grant revoke) when nothing is left that reaches the
internal/server/workspace_access_notify.go:107
↓ 3 callersMethodpublishReactionEvent
publishReactionEvent publishes a real-time event for reaction changes.
internal/server/handlers_comments.go:629
↓ 3 callersMethodpublished
()
internal/server/task3585_push_key_test.go:32
↓ 3 callersMethodpushAvailable
pushAvailable reports whether this server can send pushes.
internal/server/handlers_push_devices.go:47
↓ 3 callersMethodqueryValues
(t *testing.T)
cmd/pad/bug4026_history_backlinks_json_test.go:59
↓ 3 callersMethodquestionsFor
questionsFor is the set's questions for the item's workspace now: its fixed Questions, or what Resolve returns. Each resolved question is validated, s
internal/decision/runner.go:549
↓ 3 callersMethodqueueBehindMove
queueBehindMove runs fn once it is waiting on the move's lock, then commits the move.
internal/store/commitment_links_pg_test.go:336
↓ 3 callersFunctionquote
(s string)
internal/store/app_provision.go:74
↓ 3 callersFunctionrandomBracketContent
randomBracketContent builds a short body mixing prose, matching brackets, non-matching brackets, unclosed brackets and multibyte runes.
internal/links/rewrite_brackets_diff_test.go:455
↓ 3 callersFunctionrawItems
(userId: string | null, ws: string)
web/src/test/idbHarness.ts:153
↓ 3 callersFunctionread
(key: string)
web/src/lib/collections/viewPersistence.ts:50
↓ 3 callersMethodread
(p []byte)
internal/server/handlers_import_bundle.go:107
↓ 3 callersFunctionreadAll
readAll drives the scanner to its end, reporting whether it accepted the input as exactly one well-formed value.
internal/jsonscan/jsonscan_test.go:13
↓ 3 callersFunctionreadAll
readAll reads an already-open PID file from the start. Errors collapse to empty, which parsePIDRecord reports as unreadable — the same answer an absen
internal/cli/pidfile.go:71
↓ 3 callersFunctionreadBarrierAck
(t *testing.T, c *websocket.Conn)
internal/collab/barrier_bug3523_test.go:23
← previousnext →6,001–6,100 of 31,685, ranked by callers