MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 3 callersFunctionreadBoundedBytes
(response: Response, max: number)
web/src/lib/attachments/boundedBytes.ts:50
↓ 3 callersFunctionreadLastLine
readLastLine returns the last non-empty line of path.
internal/buildtools/install_refresh_env_test.go:33
↓ 3 callersFunctionreadManifestBody
(fsys fs.FS, path string)
internal/collections/templates_manifest.go:674
↓ 3 callersFunctionreadOrSetConsentCSRF
readOrSetConsentCSRF reads the current __Host-pad_csrf cookie or mints a new one if absent. The cookie's value is what gets rendered into the consent
internal/server/handlers_oauth.go:2486
↓ 3 callersFunctionreadPadTomlMap
TASK-3612: WriteWorkspaceLink updates an existing .pad.toml instead of replacing it, so a relink keeps agent_name, the [push] consent table and any ke
internal/cli/workspace_link_write_test.go:15
↓ 3 callersFunctionreadRawWorkflow
readRawWorkflow decodes a workflow as a plain tree, and refuses a file with more than one YAML document, which a single decode would not see.
internal/buildtools/ci_release_branches_test.go:652
↓ 3 callersFunctionreadRegistryBytes
readRegistryBytes opens a registry entry WITHOUT following symlinks or blocking on a FIFO (where the platform allows), re-checks that what it opened i
internal/cli/session_registry.go:392
↓ 3 callersFunctionreadResponses
(t *testing.T, b []byte)
internal/materialize/worker_test.go:32
↓ 3 callersFunctionreadScheduleParams
(input map[string]any)
internal/mcp/dispatch_http_schedule.go:67
↓ 3 callersMethodreadSeqResult
readSeqResult reads the reply both id-assigning scripts return: the id as the key holds it, then a repair report (BUG-2744). A repair is logged and co
internal/events/redis_bus.go:1525
↓ 3 callersFunctionreadSessionRecord
readSessionRecord reads one file and judges it. Only a missing file is an error; unreadable or unparseable content is a Malformed record.
internal/cli/session_registry.go:354
↓ 3 callersFunctionreadSkill
(t *testing.T, project string)
cmd/pad/bug3466_skill_overwrite_test.go:45
↓ 3 callersFunctionreadStructuredEntryBody
()
cmd/pad/notes.go:272
↓ 3 callersFunctionreadUserColumns
(t *testing.T, srv *Server, query, id string)
internal/server/bug3372_attribution_test.go:96
↓ 3 callersFunctionreadVarUint
readVarUint decodes a lib0 variable-length unsigned integer at data[pos:], returning the value and the position after it. ok is false on truncation or
internal/store/yjs_content_bearing.go:56
↓ 3 callersFunctionreadyThread
(rows = 3)
web/src/lib/stores/chatThread.svelte.test.ts:699
↓ 3 callersFunctionrealPNGImage
realPNGImage builds a valid PNG of the given size with an alpha gradient, so re-encoding as PNG (not JPEG) is observable and alpha survival matters.
internal/server/handlers_share_attachments_derive_test.go:74
↓ 3 callersFunctionreceive
(msg: Relay)
web/src/lib/services/accessStream.svelte.ts:136
↓ 3 callersFunctionreceiveN
(t *testing.T, ch chan Event, n int)
internal/events/bug2744_seq_guard_test.go:37
↓ 3 callersMethodrecentDebounceCandidateQ
(q rowsQueryer, a models.Activity, cutoff, incomingAgent string)
internal/store/activities.go:415
↓ 3 callersFunctionreconcileTargetItems
(client *cli.Client, ws string, args []string)
cmd/pad/reconcile.go:143
↓ 3 callersMethodreconfigureEmail
reconfigureEmail reads email settings from the platform_settings table and updates (or creates) the email sender. Called after admin settings change.
internal/server/server.go:1695
↓ 3 callersFunctionreconnectDelayMs
(attempt: number, retryAfterMs: number | null, rand: () => number = Math.random)
web/src/lib/services/sseReconnect.ts:28
↓ 3 callersMethodrecordDeathLocked
recordDeathLocked bumps the death streak and sets the next spawn time. A child that lived HealthyStretch resets the streak first. Holds s.mu.
internal/materialize/supervisor.go:989
↓ 3 callersFunctionrecordInstallation
recordInstallation stores a skill install in the global registry (~/.pad/installations.json).
cmd/pad/cmd_agent.go:324
↓ 3 callersMethodrecordMCPPreAuthDenied
recordMCPPreAuthDenied counts a pre-auth /mcp refusal. The reason label is a closed set, so a caller-supplied code can never mint a series.
internal/server/middleware_ratelimit.go:1147
↓ 3 callersFunctionrecordingServer
recordingServer answers every request 404 and records its escaped path and raw query.
internal/cli/bug3645_request_path_test.go:53
↓ 3 callersFunctionrecoverCase
recoverCase inserts the case's op-log over a stale body and runs one recovery pass through the production path (index builder included).
internal/server/materialize_recovery_links_test.go:87
↓ 3 callersFunctionrecurringCloseHTTP
(t *testing.T)
internal/server/handlers_items_schedule_active_test.go:13
↓ 3 callersFunctionredactSnapshot
(t *testing.T, s *Store, id string)
internal/store/redact_test.go:271
↓ 3 callersFunctionredactValidation
(reason string)
internal/store/redact_match.go:24
↓ 3 callersFunctionredisSubscriberCount
(b *RedisBus)
internal/watchevents/subscribe_refused_test.go:35
↓ 3 callersFunctionrefWindow
refWindow is the oracle's answer: every occurrence in [q, q+w), settled, or for w == 0 the first one strictly after q (NextAfter's contract).
internal/schedule/oracle_test.go:74
↓ 3 callersFunctionrefetch
(gone?: AccessHint)
web/src/lib/services/accessStream.svelte.ts:248
↓ 3 callersFunctionrefreshHref
()
web/src/lib/components/editor/attachment-chip.ts:253
↓ 3 callersFunctionrefusals
(table: GateTable, code: string, opts: GateOptions = {})
web/src/test/identityFenceGate.ts:589
↓ 3 callersFunctionrefuseReferencesInFields
(fields map[string]any)
internal/appstore/items.go:293
↓ 3 callersFunctionrefusedByMovedOut
(state: WorkspaceState, row: ItemIndexRow | Item)
web/src/lib/stores/localIndex.svelte.ts:623
↓ 3 callersMethodregSeqInsertExpr
regSeqInsertExpr is the value an INSERT writes: the same as the UPDATE's on SQLite; on Postgres the column default is nextval, so an explicit call is
internal/store/push_devices.go:164
↓ 3 callersFunctionregSeqOf
(t *testing.T, s *Store, userID, token string)
internal/store/task4031_push_reg_seq_test.go:10
↓ 3 callersFunctionregisterAttachmentParentRestoredListener
( fn: (event: AttachmentParentRestoredEvent) => void )
web/src/lib/attachments/events.ts:106
↓ 3 callersFunctionregisterAttachmentRestoredListener
( fn: (event: AttachmentRestoredEvent) => void )
web/src/lib/attachments/events.ts:173
↓ 3 callersFunctionregisterAttachmentSurfaceListener
( fn: (event: AttachmentSurfaceOpenEvent) => void )
web/src/lib/attachments/events.ts:482
↓ 3 callersFunctionregistrationWellFormed
registrationWellFormed rejects files that parse as JSON but are not something this code wrote: `{}` would otherwise read as a dead legacy record (owne
internal/cli/session_registry.go:426
↓ 3 callersFunctionregistryKey
registryKey binds a session id to the user who presented it; "" when either is missing, which records and finds nothing.
internal/mcp/client_identity.go:89
↓ 3 callersFunctionrelationChipFor
(value: string, resolve: ResolveRow)
web/src/lib/collections/relationGroups.ts:77
↓ 3 callersFunctionrelationDefaultList
relationDefaultList reads a `multi_relation` value as a list of strings, and is STRICT about the elements. Reports (nil, false) for anything that is
internal/store/relation_referents.go:1603
↓ 3 callersFunctionrelationValuesOf
(type: string | undefined | null, value: unknown)
web/src/lib/items/relationFieldTypes.ts:79
↓ 3 callersFunctionrelease
()
web/src/lib/components/items/itemDetailTouchEdit.svelte.test.ts:439
↓ 3 callersFunctionreleaseB
()
web/src/lib/stores/workspaceMembershipKnown.svelte.test.ts:145
↓ 3 callersFunctionremindCmd
`pad remind` (alias `pad item remind`) and friends — the CLI half of IDEA-2641 / GitHub #1010. The verbs mirror the lifecycle rather than inventing a
cmd/pad/cmd_reminder.go:26
↓ 3 callersFunctionremindEditCmd
()
cmd/pad/cmd_schedule.go:603
↓ 3 callersFunctionremove
(id: string)
web/src/mcp-app/boardModel.ts:70
↓ 3 callersFunctionremoveGhost
()
web/src/lib/components/editor/block-drag-handle.ts:693
↓ 3 callersFunctionremovePadEntryTOML
removePadEntryTOML deletes mcp_servers.pad while leaving other servers and top-level keys intact. Returns (true, nil) when an entry was removed, (fals
internal/mcp/install.go:455
↓ 3 callersFunctionremovePending
(userId: string, n: number, opKey: string)
web/src/lib/chat/chatRecords.ts:78
↓ 3 callersFunctionrename
(value: string)
web/src/lib/components/collections/task2191EditDraftGuard.svelte.test.ts:77
↓ 3 callersFunctionrender
(component: unknown, props: P)
web/src/lib/items/staleBodyRenders.svelte.test.ts:39
↓ 3 callersFunctionrenderChatMarkdown
( body: string, refs: readonly ChatRef[], ctxWorkspace: string | undefined )
web/src/lib/chat/markdown.ts:88
↓ 3 callersFunctionrenderCommitmentGate
(w io.Writer, g models.ScheduleGate, state string)
cmd/pad/cmd_schedule_link.go:368
↓ 3 callersFunctionrenderDepsMarkdown
renderDepsMarkdown is the markdown counterpart of `pad item deps`. The terminal form is two coloured sections rather than a table, so markdown keeps t
cmd/pad/cmd_item.go:3931
↓ 3 callersFunctionrenderItemCopyPreflight
renderItemCopyPreflight writes the human-readable dry run. EVERY bucket header and EVERY warning line is printed unconditionally, including the empty
cmd/pad/cmd_item.go:2611
↓ 3 callersFunctionrenderNULTriggerMigration
renderNULTriggerMigration is the single definition of one trigger file's text: its header, then the triggers of every column assigned to it. It lives
internal/store/nulcolumns.go:1186
↓ 3 callersFunctionrenderPreview
()
web/src/lib/components/editor/extensions/htmlBlock.ts:314
↓ 3 callersFunctionrenderUnsubPage
renderUnsubPage writes the unsubscribe status page with a strict CSP. The CSP denies scripts, inline event handlers, iframes, and remote resources out
internal/server/handlers_unsubscribe.go:122
↓ 3 callersFunctionrenderedNULTriggers
renderedNULTriggers returns the exact CREATE statement each trigger in the named trigger files should have, keyed by name. It parses the SAME rendere
internal/store/nulcolumns.go:1102
↓ 3 callersMethodreopenDependencyQ
(q Queryer, sc *models.ItemSchedule)
internal/store/schedule_reopen.go:153
↓ 3 callersMethodreopenImageQ
(q Queryer, sc *models.ItemSchedule, u *resolutionUndo, lock bool)
internal/store/schedule_reopen.go:246
↓ 3 callersFunctionreorderedList
( ordered: Item[], itemId: string, dir: ReorderDirection )
web/src/lib/collections/reorder.ts:30
↓ 3 callersMethodreportReset
(reason string)
internal/events/observer.go:316
↓ 3 callersMethodreportSnapshotAsOf
reportSnapshotAsOf reconstructs the status-distribution and WIP snapshot as they stood at time t, from the status-transition history (PLAN-1628 / TASK
internal/store/reports.go:457
↓ 3 callersMethodrequireAppWorkspace
requireAppWorkspace is step 3 (RequireAppWorkspaceAccess). {ws} must be the token's workspace, by ID: a slug, another workspace, or a deleted one all
internal/server/app_api.go:441
↓ 3 callersMethodrequireCallerCanSetCollectionAccess
requireCallerCanSetCollectionAccess denies a restricted caller (their own collection_access is "specific") from using this endpoint to escalate beyond
internal/server/handlers_members.go:900
↓ 3 callersMethodrequireCommitmentWrite
requireCommitmentWrite answers a refused commitment write with the same bytes as the middleware token-scope gate and requireEditPermission.
internal/server/handlers_commitments.go:82
↓ 3 callersMethodrequireCreatedHere
(itemID string)
internal/store/fenced_items.go:199
↓ 3 callersFunctionrequireRealPostgres
requireRealPostgres fails the test unless s.db is talking to PostgreSQL.
internal/store/runtime_pool_test.go:54
↓ 3 callersFunctionresetFake
()
web/src/test/mocks/indexedPageStores.svelte.ts:32
↓ 3 callersMethodresetFloors
Discard the connection's floors, retaining delivery, retraction ownership, and time-based backoff for the same identity.
cmd/pad/cmd_watch_chat.go:334
↓ 3 callersFunctionresetMissing
()
web/src/lib/components/editor/attachment-image.ts:529
↓ 3 callersFunctionresetRelativeDataDirWarning
resetRelativeDataDirWarning lets each test see the once-per-process warning afresh, with the default (stderr) sink.
internal/config/bug4066_reset_test.go:5
↓ 3 callersFunctionresolve
()
web/src/lib/components/fields/FieldEditor.typedDebounce.svelte.test.ts:357
↓ 3 callersFunctionresolve
(id: string)
web/src/lib/utils/quickActionCategorical.test.ts:44
↓ 3 callersMethodresolve
The occurrence wall is the seed-equivalent; target displacement is not subtracted from the deadline displacement.
internal/store/schedule_deadline_eval.go:50
↓ 3 callersMethodresolve2
(t *testing.T, it *models.Item, sc *models.ItemSchedule, state string)
internal/store/commitment_gates_outcome_test.go:378
↓ 3 callersFunctionresolveActivityMeta
resolveActivityMeta is the names-only metadata of a resolution: the schedule's kind and the state chosen. No comment text, wall, instant or rule.
internal/server/handlers_schedules.go:716
↓ 3 callersMethodresolveItemRef
resolveItemRef does a GET /api/v1/workspaces/{ws}/items/{ref} and returns the resolved id+slug. Used by the link dispatchers to translate user-friendl
internal/mcp/dispatch_http_links.go:140
↓ 3 callersMethodresolveLimitQ
resolveLimitQ resolves the limit for a feature using the three-tier resolution: user overrides → DB-stored plan defaults → hardcoded fallback. It take
internal/store/limits.go:406
↓ 3 callersFunctionresolveMulti
(t *testing.T, s *Store, ws *models.Workspace, schema models.CollectionSchema, supplied any)
internal/store/relation_multi_test.go:27
↓ 3 callersMethodresolveOutboxDrainSettings
resolveOutboxDrainSettings fills every unset knob with its default and stores the result, so the resolved values are identical no matter which entry p
internal/server/outbox_drain.go:110
↓ 3 callersMethodresolveParentFilter
resolveParentFilter extracts a "parent" (or "plan") key from the field filters and converts it to a ParentLinkID filter (which uses item_links instead
internal/server/handlers_items.go:4322
↓ 3 callersMethodresolvePlaybook
resolvePlaybook finds a playbook by either its invocation_slug, its item slug, or its issue ref. invocation_slug takes precedence — that's the user-fa
internal/server/handlers_playbooks.go:651
↓ 3 callersFunctionresolveRefTx
resolveRefTx resolves a live exact, aliased or move-log-proven ref inside the caller's transaction and wiki scope (BUG-4119). Broken refs persist with
internal/store/wiki_links.go:404
↓ 3 callersMethodresolveReminderForWrite
resolveReminderForWrite resolves {reminderID} and enforces edit permission on the ITEM the reminder hangs off. PERMISSION IS THE ITEM'S, not the remi
internal/server/handlers_reminders.go:390
↓ 3 callersFunctionresolveRowWrite
( stored: ItemIndexRow | undefined, tombstone: Tombstone | undefined, incoming: ItemIndexRow, )
web/src/lib/stores/itemRowMerge.ts:109
↓ 3 callersFunctionresolveSQLiteDBPath
resolveSQLiteDBPath returns the SQLite database path using the SAME precedence the server uses (PAD_DB_PATH > PAD_DATA_DIR/pad.db > ~/.pad/pad.db), vi
cmd/pad/cmd_db.go:55
↓ 3 callersFunctionresolveShareWithPassword
resolveShareWithPassword issues an anonymous GET /api/v1/s/{token} from the given source IP with the password supplied via the X-Share-Password header
internal/server/handlers_share_links_bruteforce_test.go:16
↓ 3 callersFunctionresolver
(m: AttachmentMeta)
web/src/lib/markdown/attachmentEmbedDecision.test.ts:95
↓ 3 callersFunctionresourceCmdKey
resourceCmdKey identifies the pad command from the positional tokens of a resource-fetch arg vector. The resource handlers in resources.go are the onl
internal/mcp/resources_http.go:351
↓ 3 callersFunctionresourceHTTPError
resourceHTTPError renders a non-2xx in-process response as a Go error, trimming the body so an oversized error page can't blow up the message.
internal/mcp/resources_http.go:337
↓ 3 callersMethodresourceID
(kind string)
internal/server/commitment_graph_access_test.go:16
← previousnext →6,101–6,200 of 31,685, ranked by callers