MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 3 callersFunctionnewRecordingPresenceObserver
()
internal/server/session_presence_observer_test.go:22
↓ 3 callersFunctionnewRejectedSubscribeBus
(t *testing.T, s *rejectingSubscribeServer)
internal/events/redis_subscribe_rejected_test.go:56
↓ 3 callersFunctionnewRejectingSubscribeServer
(t *testing.T, reply string, delay time.Duration)
internal/events/redis_subscribe_rejected_test.go:39
↓ 3 callersFunctionnewRequestWithTokenWorkspace
newRequestWithTokenWorkspace is a request as TokenAuth leaves a user-less legacy workspace token: a workspace and no user.
internal/server/bug3353_legacy_token_test.go:221
↓ 3 callersFunctionnewSafeTransport
newSafeTransport returns an *http.Transport whose DialContext resolves each hostname inside the dialer and validates every returned IP. Only IPs that
internal/urlimport/fetch.go:276
↓ 3 callersFunctionnewSeedID
newSeedID is a stable test-only ID derived from the email. Used as both the user.id AND the unique-per-row component of user.username, so collisions a
internal/server/handlers_admin_billing_test.go:77
↓ 3 callersFunctionnewSeqGuardBus
BUG-2744: the event sequence counter had no value guard, and the id was stringified through a Lua double. A corrupted counter (another type, a non-in
internal/events/bug2744_seq_guard_test.go:25
↓ 3 callersFunctionnewSessionCookie
newSessionCookie returns the session token the response set, failing the test if it set none.
internal/server/handlers_auth_replaced_session_test.go:48
↓ 3 callersFunctionnewSharedLeakEnv
BUG-1865: the cloud /mcp transport used to resolve the target workspace from a SINGLE process-global *mcp.WorkspaceState shared across every OAuth use
internal/mcp/bug1865_test.go:50
↓ 3 callersFunctionnewStubSessionServer
(t *testing.T, meAccept string, sessionStatus int)
cmd/pad/env_token_override_test.go:204
↓ 3 callersFunctionnewUnreadableFixture
newUnreadableFixture builds an item in the exact defect state: the entries array stored as a JSON-encoded STRING under both structured keys.
internal/mcp/dispatch_http_stored_state_test.go:33
↓ 3 callersFunctionnewUnreadablePresence
()
internal/server/handlers_push_presence_unreadable_test.go:36
↓ 3 callersMethodnext
()
cmd/pad/cmd_schedule.go:106
↓ 3 callersFunctionnoLeak
noLeak runs call n times and fails if the goroutine count moved: every expansion runs in the caller (TASK-4100). It asserts on counts and kinds, never
internal/schedule/budget_test.go:13
↓ 3 callersFunctionnormalizeSchemaForRender
(schema: CollectionSchema)
web/src/lib/types/index.ts:3191
↓ 3 callersFunctionnote
(m: Map<string, Node[]>, k: string, v: Node)
web/src/test/identityFenceAst.ts:432
↓ 3 callersMethodnoteAudienceOnly
noteAudienceOnly records an audience-only request at authorize or decide: the same log line shape and the same pad_oauth_resource_missing_total counte
internal/server/handlers_oauth.go:696
↓ 3 callersFunctionnoteEscapeConsumedByViewer
(event: Event)
web/src/lib/a11y/viewerBackdrop.ts:346
↓ 3 callersFunctionnotesWithItem
BUG-3156: `refuse_undeclared_fields` is a strict opt-in on item update. With it, a write that would store a key the collection does not declare is ref
internal/server/handlers_items_refuse_undeclared_test.go:18
↓ 3 callersMethodnotificationRecipientVisibleTx
notificationRecipientVisibleTx applies the same bearer visibility rule as mentions and dispatch: membership and grants, never a platform admin bypass.
internal/store/notifications.go:117
↓ 3 callersFunctionnotify
* Deliver a result to every consumer. * * Isolation is unchanged (one failing consumer must not break the others) and * so is TIMING: callbacks
web/src/lib/services/sync.svelte.ts:320
↓ 3 callersMethodnotifyChatMessage
TASK-4041, DOC-4036: publish after the store commits, with no full body; a bounded excerpt (at most 100 runes, first line) rides on the event.
internal/server/chat_notify.go:11
↓ 3 callersFunctionnulTriggerPrefix
nulTriggerPrefix is the name prefix of one trigger file's triggers: pad_nul_ for 084, and pad_nul<NNN>_ for a later file NNN. Separate namespaces are
internal/store/nulcolumns.go:1006
↓ 3 callersFunctionnumericArg
numericArg returns the SQLite comparison value for a numeric argument: an int64 when the number is integer-valued and in range, so a stored INTEGER is
internal/store/dialect_fieldvalue.go:48
↓ 3 callersMethodoccurrenceOutcomeQ
occurrenceOutcome reads the state of the occurrence a key names. decided is false when the occurrence is still open: pending, unless a miss under `lap
internal/store/commitment_gates.go:412
↓ 3 callersFunctionofferSkillInstall
()
cmd/pad/cmd_workspace.go:860
↓ 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:295
↓ 3 callersFunctionopenAt
(path: string, state: Record<string, unknown> = { chatDepth: 1 })
web/src/lib/components/chat/ChatHost.svelte.test.ts:107
↓ 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 callersFunctionp
(f: string)
web/e2e/lib/real-install.ts:62
↓ 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:169
↓ 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:140
↓ 3 callersFunctionparseAttachmentFilename
parseAttachmentFilename pulls the filename parameter out of a Content-Disposition header. Returns "" when the header is absent or unparseable so the c
cmd/pad/cmd_attachment.go:268
↓ 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 callersFunctionparseInstantFlag
(flag, s string, allowDuration bool, now time.Time)
cmd/pad/cmd_schedule.go:537
↓ 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:4641
↓ 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:261
↓ 3 callersFunctionparseStoredSchema
(collection: Collection)
web/src/lib/types/index.ts:3150
↓ 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:933
↓ 3 callersFunctionpartSize
(v any)
internal/server/handlers_item_context.go:428
↓ 3 callersMethodpatch
(t *testing.T, tok string, it models.Item, body map[string]any)
internal/server/task3615_catch_up_test.go:88
↓ 3 callersFunctionpatchRoomFixture
(t *testing.T, refuse string)
internal/server/plan3578_patch_room_test.go:74
↓ 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:851
↓ 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 callersFunctionpermissionDeniedPayload
permissionDeniedPayload is the one permission_denied envelope, for every door that produces one: the remote 403, the remote dispatcher's own scope gat
internal/mcp/errors.go:1567
↓ 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:231
↓ 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:30
↓ 3 callersFunctionpgOAuthConnFixture
(t *testing.T)
internal/store/oauth_connections_autoadd_test.go:34
↓ 3 callersFunctionpick
(i: number)
web/e2e/copy-dialog.spec.ts:656
↓ 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 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:596
↓ 3 callersFunctionpointerEvent
( type: string, x: number, y: number, opts: { buttons?: number; pointerType?: string; button?: numbe
web/src/lib/components/common/Lightbox.svelte.test.ts:2013
↓ 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:236
↓ 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 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:321
↓ 3 callersFunctionprintServerInfo
(report *serverInfoReport)
cmd/pad/server_info.go:296
↓ 3 callersFunctionprintSetupRequiredHint
(cfg *config.Config)
cmd/pad/cmd_auth.go:782
↓ 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
← previousnext →5,401–5,500 of 28,840, ranked by callers