MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 2 callersFunctionparseItemNumber
parseItemNumber parses a bare numeric string (e.g. "843") into a positive item number. Returns false for empty strings, non-digit input, zero, or valu
internal/store/items.go:1110
↓ 2 callersFunctionparseItemVersionsLimit
parseItemVersionsLimit turns the raw `?limit=` value into a row bound. Returns 0 — unbounded — for absent, unparseable, zero and negative input, so on
internal/server/handlers_item_versions.go:105
↓ 2 callersFunctionparseItems
(x: unknown)
web/src/mcp-app/boardModel.ts:106
↓ 2 callersFunctionparseMCPEnabledEnv
parseMCPEnabledEnv reads PAD_MCP_ENABLED: true/1/yes/on and false/0/no/off, case-insensitive. Anything else forces nothing (nil); the raw value is kep
internal/config/mcp.go:246
↓ 2 callersFunctionparseNet
(s string)
internal/appfetch/appfetch.go:122
↓ 2 callersFunctionparseOAuthForm
parseOAuthForm parses a token or introspection request as fosite does (ParseMultipartForm with a 1 MiB memory bound) and returns any failure. ParseFor
internal/server/handlers_oauth.go:202
↓ 2 callersFunctionparsePIDRecord
parsePIDRecord parses PID-file bytes in either form.
internal/cli/pidfile.go:74
↓ 2 callersFunctionparsePSRSS
parsePSRSS reads ps's rss column: KiB, one number, padded.
internal/materialize/memcap_ps.go:24
↓ 2 callersFunctionparsePackageLock
parsePackageLock returns the registry packages a lockfile v2/v3 installs.
cmd/depages/main.go:217
↓ 2 callersFunctionparseQuery
parseQuery is a thin wrapper around url.ParseQuery that returns the values directly. Convenience for the route tests where the function signature is t
internal/mcp/dispatch_http_routes_test.go:21
↓ 2 callersFunctionparseRefForRedirect
parseRefForRedirect splits a validated ref into its uppercase prefix and number. GetItemByRef accepts exact refs and move-log-proven former refs (BUG-
internal/server/handlers_ref_resolver.go:297
↓ 2 callersFunctionparseRemindAt
parseRemindAt normalizes a caller-supplied instant to RFC3339 UTC. THE PARSE IS STRICT AND THE NORMALIZATION HAPPENS HERE, once, at the edge. Everyth
internal/server/handlers_reminders.go:42
↓ 2 callersFunctionparseRetryAfter
parseRetryAfter reads a Retry-After header in delta-seconds form, bounded so a hostile or mistaken value cannot park a request indefinitely.
internal/decision/typesafe.go:662
↓ 2 callersFunctionparseRetryAfterMs
(value: string | null, now: number = Date.now())
web/src/lib/services/sseReconnect.ts:40
↓ 2 callersFunctionparseRetryAfterMs
(header: string | null | undefined)
web/src/lib/api/client.ts:298
↓ 2 callersFunctionparseRetryAfterRawMs
* `parseRetryAfterMs` WITHOUT the clamp: what the server actually asked for. * The retry decision needs it (BUG-3192): a 12 s `Retry-After` clamped t
web/src/lib/api/client.ts:308
↓ 2 callersFunctionparseRetryAfterSeconds
parseRetryAfterSeconds reads a Retry-After header in either of its two forms — delta-seconds or an HTTP-date — as whole seconds from now. Zero for an
internal/cli/client.go:3501
↓ 2 callersFunctionparseSearchQuery
(raw: string)
web/src/lib/stores/localSearch.svelte.ts:140
↓ 2 callersFunctionparseSessionPID
parseSessionPID parses the pid header, returning 0 for anything that isn't a plausible process id. 0 is the sentinel for "not stated" (LiveSession omi
internal/server/session_identity.go:156
↓ 2 callersFunctionparseSkillStamp
parseSkillStamp splits a file into its body and its marker. ok is false when the last line with any non-whitespace on it is not a well-formed marker.
internal/cli/skillstamp.go:61
↓ 2 callersFunctionparseStatVsize
parseStatVsize extracts vsize (field 23) from a /proc/<pid>/stat line. Platform-neutral so it is tested everywhere.
internal/materialize/memcap_statparse.go:11
↓ 2 callersFunctionparseTZID
(s string)
internal/schedule/internal/rrule/str.go:461
↓ 2 callersFunctionparseThreadNumber
(raw: string)
web/src/lib/stores/chatSurface.svelte.ts:28
↓ 2 callersFunctionparseTraits
(collection: Pick<Collection, 'traits'>)
web/src/lib/types/index.ts:629
↓ 2 callersFunctionparseWorkflow
parseWorkflow returns the (owner/repo, sha) pins a workflow uses; a sub-action shares its repository's commit.
cmd/depages/main.go:257
↓ 2 callersFunctionparseWorkspaceListJSON
parseWorkspaceListJSON decodes the JSON shape `pad workspace list --format json` emits into the WorkspaceHint slice. Lenient about optional fields — o
internal/mcp/dispatch.go:345
↓ 2 callersFunctionpart
(type: string)
web/src/lib/calendar/presentation.ts:81
↓ 2 callersFunctionpastDeadlineHint
Preserve the structured API refusal for MCP while giving CLI users its flag.
cmd/pad/cmd_schedule_link.go:459
↓ 2 callersMethodpatch
(item *models.Item, body map[string]any)
internal/server/bug3028_relation_blank_test.go:49
↓ 2 callersFunctionpatchCore
patchCore is a patch's answer without its intervening writes: what an idempotency key stores (TASK-3585); intervening is computed live.
internal/server/handlers_items_patch.go:388
↓ 2 callersFunctionpatchEditsFromFlags
patchEditsFromFlags builds the edit list from --old/--new pairs or --edits, refusing a mix, an unpaired flag, or an empty anchor before any request.
cmd/pad/cmd_item_patch.go:128
↓ 2 callersFunctionpatchServerCaps
patchServerCaps is patchServer with the idempotency_keys capability set to honorsKeys, so a test can stand in for a server that ignores op_key.
cmd/pad/task3585_patch_retry_test.go:21
↓ 2 callersFunctionpathAttrSites
pathAttrSites lists the "path", "reset_path" and "query" log attributes in f (sites) and those whose value is not a RedactPath/RedactQuery call or a s
internal/logging/redaction_followups_test.go:437
↓ 2 callersFunctionpathIsWorkspaceScoped
pathIsWorkspaceScoped reports whether a URL will run RequireWorkspaceAccess — i.e. whether chi will bind a {slug} param from it.
internal/mcp/dispatch_http_allowlist_guard_test.go:227
↓ 2 callersFunctionpatternNamesInto
Every identifier bound by a declaration pattern (destructuring included).
web/src/lib/components/items/childIdentityFencePopulation.test.ts:583
↓ 2 callersFunctionpaxRecord
(key, value string)
internal/server/bug3354_import_bundle_bomb_test.go:216
↓ 2 callersFunctionpdfBytes
(n = 64)
web/src/lib/components/attachments/AttachmentPdfPreview.svelte.test.ts:71
↓ 2 callersMethodpending
(install string)
internal/appstore/attachments.go:118
↓ 2 callersMethodpendingClaimCandidates
pendingClaimCandidates returns the ids a claim pass should attempt: the oldest claimable pending rows, plus as many claimable siblings of any batch th
internal/store/event_outbox.go:2088
↓ 2 callersMethodpendingCount
()
internal/events/redis_subscribe_cancel_test.go:39
↓ 2 callersFunctionpendingEditsReason
(err: unknown)
web/src/lib/items/contentWrite.ts:140
↓ 2 callersFunctionpendingKey
(user: string, n: number, op: string)
web/src/lib/chat/chatRecords.ts:20
↓ 2 callersFunctionpendingOf
()
web/src/lib/stores/chatThread.svelte.test.ts:697
↓ 2 callersFunctionpermissionReasonIn
permissionReasonIn reads details.reason from an upstream error's details.
internal/mcp/errors.go:1552
↓ 2 callersFunctionpersistAccessEpoch
( userId: string | null, ws: string, accessEpoch: string | null, expectedPrevious: string | null, )
web/src/lib/stores/localIndexPersistence.ts:1083
↓ 2 callersFunctionpersistCollections
( userId: string | null, ws: string, list: Collection[], before: DurableEpoch, )
web/src/lib/stores/localIndexPersistence.ts:965
↓ 2 callersFunctionpersistRetag
( userId: string | null, ws: string, collectionId: string, ids: string[], newSlug: string, )
web/src/lib/stores/localIndexPersistence.ts:676
↓ 2 callersMethodpersistSyncFrames
persistSyncFrames persists and publishes a run of frames read from one connection (BUG-3253): a sync frame and every sync or awareness frame already w
internal/collab/room.go:664
↓ 2 callersFunctionpgStoreFor3099
BUG-3099, the lock order on Postgres. DeleteAccountAtomic takes the users- row lock a limited workspace mint takes (enforceUserLimitTx) as its FIRST s
internal/store/bug3099_delete_account_lock_test.go:18
↓ 2 callersFunctionpgTemplateMarker
pgTemplateMarker is the sentinel stamped on the template and expected on every database handed out. See buildPostgresTemplate.
internal/store/store_test.go:310
↓ 2 callersFunctionphFor
phFor turns ? placeholders into $1..$n on the Postgres backend.
internal/store/bug3135_sync_frame_dedupe_test.go:27
↓ 2 callersFunctionpickCloseValue
pickCloseValue chooses the value --close-item closes the item with: the one given, else the only delivering close. Nothing has been written yet.
cmd/pad/cmd_schedule_end.go:81
↓ 2 callersFunctionpidAlive
pidAlive reports whether a process with the given pid is currently running. It is the pid probe behind OwnerLiveness (session_owner.go) — the headless
internal/cli/pid_alive.go:24
↓ 2 callersMethodpinCommitmentOpt
pinCommitmentOpt is pinCommitmentTx. With withDeleted the root item and the seed schedules are found whether or not their item is soft-deleted: the on
internal/store/commitment_links.go:220
↓ 2 callersFunctionpinDecisionBucket
TASK-3141: synchronous provider calls get their own bucket, charged in the handler immediately before the provider call. pinDecisionBucket replaces th
internal/server/handlers_playbook_match_ratelimit_test.go:20
↓ 2 callersMethodpinManagedReminderTx
Firing a schedule's managed reminder row (TASK-4102 PR1b, DOC-4098). fireOneReminder takes the row exactly as it takes any reminder: the arbiter UPDA
internal/store/schedule_fire.go:40
↓ 2 callersFunctionpinRepo
pinRepo is a throwaway git repo with the real script, a marketplace.json, and tags whose plugin.json does or does not pin a version.
internal/buildtools/pin_plugin_marketplace_test.go:37
↓ 2 callersFunctionpinTo
(t *testing.T, w *agendaWorld)
internal/server/handlers_me_agenda_counts_test.go:39
↓ 2 callersMethodpinnedReq
pinnedReq is a request as the owner carrying pin, with no allow-list, so a by-ID test reaches the resolved-ID compare and nothing else can refuse it.
internal/server/bug3982_pinned_token_test.go:731
↓ 2 callersFunctionpinnedTokenRouteAllowed
pinnedTokenRouteAllowed reports whether a workspace-pinned user token may use r's route (BUG-3982). A route is allowed when it is workspace-scoped (so
internal/server/pinned_token.go:122
↓ 2 callersFunctionpkceVerifierMatches
pkceVerifierMatches compares sha256(verifier) with the bound challenge on the decoded 32-byte digests, in constant time.
internal/server/twofactor_challenge.go:55
↓ 2 callersFunctionplacePopup
( caret: CaretRect, size: { width: number; height: number }, viewport: { width: number; height: number } )
web/src/lib/components/editor/caretPopup.ts:34
↓ 2 callersFunctionplaceholder
()
web/src/lib/components/editor/attachmentImageMissing.svelte.test.ts:125
↓ 2 callersFunctionplain
()
web/src/lib/components/items/ItemCommitmentEditDialog.svelte.test.ts:17
↓ 2 callersFunctionplainInterval
plainInterval parses a canonical rule and reports whether it is a plain interval. An empty rule is a one-shot and is plain.
internal/store/schedule_completion.go:35
↓ 2 callersFunctionplainTagsSnippet
plainTagsSnippet renders a tags snippet as a plain list, `<mark>x</mark>, y`, rather than the stored JSON array text it was cut from (`["<mark>x</mark
internal/store/search.go:689
↓ 2 callersMethodplanAttachmentCopyQ
planAttachmentCopyQ is PlanAttachmentCopy parameterized over its executor. The preflight plans through the pool (no locks held); the mutating copy pla
internal/store/attachments_copy_plan.go:383
↓ 2 callersFunctionplanLateralOpen
(paneOpen: boolean, current: ResolvedPaneState)
web/src/lib/collections/paneController.ts:213
↓ 2 callersFunctionplanLimitPromptModel
( message: string, details: PlanLimitDetails | undefined, ctx: { commerceAllowed: boolean; billingAvailable
web/src/lib/billing/planLimitPrompt.ts:37
↓ 2 callersFunctionplanLimitRefusal
planLimitRefusal decodes a 403 and checks it is the storage refusal.
internal/server/bug3653_storage_cap_doors_test.go:44
↓ 2 callersFunctionplanPaneClose
(current: ResolvedPaneState)
web/src/lib/collections/paneController.ts:235
↓ 2 callersFunctionplanPaneDrill
( currentRef: string | null, targetRef: string | null | undefined, current: ResolvedPaneState, softCap: nu
web/src/lib/collections/paneController.ts:121
↓ 2 callersFunctionplanPatch
( editor: Editor, edits: PatchEdit[], ctx: PatchContext, )
web/src/lib/collab/patchApply.ts:230
↓ 2 callersMethodplanScheduleCarry
planScheduleCarry reads the source schedule on q (FOR UPDATE when lock, on Postgres) and decides what the copy does with it, validating the destinatio
internal/store/schedule_carry_copy.go:221
↓ 2 callersMethodplant
What a squatter can plant before the claim: membership elsewhere with a grant, a watch and a tab there, and credentials of every kind.
internal/server/bug3382_verify_claim_test.go:68
↓ 2 callersFunctionplantPlatformSetting
plantPlatformSetting writes a settings row through a raw handle with the relevant triggers dropped.
cmd/pad/cmd_db_nul_test.go:438
↓ 2 callersFunctionplantWorkspaceSettings
plantWorkspaceSettings writes a settings blob through a raw handle with the relevant triggers dropped — the pre-enforcement binary again.
cmd/pad/cmd_db_nul_test.go:298
↓ 2 callersFunctionplaybookRunCmd
()
cmd/pad/cmd_playbook.go:153
↓ 2 callersFunctionplaybookShowCmd
()
cmd/pad/cmd_playbook.go:99
↓ 2 callersFunctionpluginHintEnv
TASK-3488: pad init points a Claude Code user at the pad plugin, which carries the /pad skill plus the panel and live notifications and updates itself
cmd/pad/task3488_plugin_hint_test.go:18
↓ 2 callersMethodplus
(names: Set<string>)
web/src/test/identityFenceAst.ts:1010
↓ 2 callersFunctionpngBytes
(t *testing.T, w, h int)
internal/appstore/attachments_test.go:68
↓ 2 callersFunctionpointer
(type: string, x: number)
web/src/lib/components/collections/PaneHost.svelte.test.ts:65
↓ 2 callersFunctionpollCLIAuth
(t *testing.T, srv *Server, code string)
internal/server/task2253_cli_auth_deny_test.go:35
↓ 2 callersFunctionpopstate
()
web/src/lib/stores/chatSurface.svelte.test.ts:245
↓ 2 callersFunctionpopstateEv
()
web/src/lib/stores/chatSurface.svelte.test.ts:667
↓ 2 callersFunctionpositionHandle
(blockDOM: HTMLElement)
web/src/lib/components/editor/block-drag-handle.ts:398
↓ 2 callersMethodpostComment
(body string)
internal/server/handlers_comments_atomic_test.go:93
↓ 2 callersMethodpostContext
(ctx context.Context, path string, body interface{}, result interface{})
internal/cli/client.go:3198
↓ 2 callersMethodpostCopyJSON
postCopyJSON posts body to path and returns the response's raw JSON. mutating selects the DR-13 posture: a mutating call gets a body net/http cannot
internal/cli/client_items_copy.go:461
↓ 2 callersFunctionpostJSONRPC
postJSONRPC drives one JSON-RPC request through a Streamable HTTP transport and returns the decoded envelope. Modern-era requests are identified by th
internal/mcp/transport_test.go:28
↓ 2 callersFunctionpostMCPBodyAs
postMCPBodyAs is postMCPBody with a Content-Type ("" means application/json).
internal/server/task2308_mcp_scope_test.go:59
↓ 2 callersFunctionpostMCPSizedCounting
postMCPSizedCounting also reports how many body bytes anything read.
internal/server/bug3534_mcp_body_limit_test.go:27
↓ 2 callersMethodpostPatch
postPatch sends a patch with its idempotency key (TASK-3585) and retries it ONCE, with the same key, when the outcome is unknown at the transport (no
internal/cli/client.go:1298
↓ 2 callersFunctionpostReply
postReply uses the dedicated reply route — the one the web UI calls — not the top-level route with a parent_id. The reply route wrote no `commented` a
internal/server/handlers_timeline_comment_agent_test.go:32
↓ 2 callersFunctionpostSetPlanAny
BUG-3356: /admin/plan carries the revision the sidecar derived the plan at, and a stale one is refused with a reason, still as a 200 so the Stripe web
internal/server/bug3356_set_plan_revision_test.go:15
↓ 2 callersFunctionpostSignupTarget
( redirectTarget: string, res: { workspace_path?: string; accepted_invitation?: unknown } | null | undefined
web/src/lib/auth/redirect.ts:165
↓ 2 callersFunctionpostWithCookies
(t *testing.T, srv *Server, path string, body interface{}, cookies []signInCookie, bearer string)
internal/server/handlers_auth_replaced_session_test.go:29
↓ 2 callersFunctionpostgresClientConninfo
(raw string)
cmd/pad/postgres_client.go:29
↓ 2 callersFunctionpreferredExtensions
preferredExtensions names the spelling to use where a type has several. Every key MUST be a value that extMIMEMap actually uses, or the entry is a li
internal/attachments/mime.go:534
← previousnext →8,001–8,100 of 28,840, ranked by callers