MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 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 callersFunctionparseStrictBoundedIntQueryParam
parseStrictBoundedIntQueryParam parses an optional integer query parameter strictly: absent -> (def, true); single integer in [minVal, maxVal] -> (n,
internal/server/handlers_role_queue.go:21
↓ 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:650
↓ 2 callersFunctionparseWorkflow
parseWorkflow returns the (owner/repo, sha) pins a workflow uses; a sub-action shares its repository's commit.
cmd/depages/main.go:259
↓ 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:372
↓ 2 callersFunctionpart
(type: string)
web/src/lib/calendar/presentation.ts:81
↓ 2 callersFunctionpartitionRoleLane
(lane []store.RoleLaneEntry, visible func(collectionID, itemID string) bool)
internal/server/handlers_role_queue.go:88
↓ 2 callersFunctionpastDeadlineHint
Preserve the structured API refusal for MCP while giving CLI users its flag.
cmd/pad/cmd_schedule_link.go:473
↓ 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:390
↓ 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 callersFunctionpatchTab
PLAN-3578 step 2: a patch to an item open in a patch-capable editor goes to that tab, which applies it and reports the canonical before/after; a tab r
internal/server/plan3578_patch_room_test.go:25
↓ 2 callersMethodpatchTarget
patchTarget is the roles PATCH naming only the target, with an optional lead.
internal/store/schedule_target_arming_test.go:34
↓ 2 callersFunctionpatchTextValidUTF8
patchTextValidUTF8 reports whether every text line of a patch decodes to valid UTF-8. A line is escaped, so "%FF" is the byte 0xFF once parsed; this d
internal/diff/diff.go:74
↓ 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:243
↓ 2 callersFunctionpatternNamesInto
Every identifier bound by a declaration pattern (destructuring included).
web/src/lib/components/items/childIdentityFencePopulation.test.ts:585
↓ 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 callersFunctionpendingLinkCookie
pendingLinkCookie returns the browser's pending-link token, if any.
internal/server/oauth_pending_link.go:61
↓ 2 callersFunctionpendingLinkEligible
pendingLinkEligible: whether a not-linked refusal may hold the identity for a later link. Only an account that proved its address (an unverified one g
internal/server/oauth_pending_link.go:49
↓ 2 callersFunctionpendingLinkRows
(t *testing.T, s *store.Store, userID string)
internal/store/oauth_pending_links_test.go:24
↓ 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:1606
↓ 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:311
↓ 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:82
↓ 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:745
↓ 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:133
↓ 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 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:908
↓ 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 callersFunctionplanHrefClick
( e: HrefClickLike, href: string, ctx: HrefClickContext, )
web/src/lib/components/editor/editorHrefClick.ts:75
↓ 2 callersFunctionplanLaneOrder
( lane: readonly T[], canEdit: (card: T) => boolean, movedId?: string )
web/src/lib/collections/reorderPlan.ts:180
↓ 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:313
↓ 2 callersFunctionplanVersionChainRewrite
(workspaceID, itemID, itemContent string, chain []versionRow, rewrite func(string) string, recount bool)
internal/store/attachments_remap.go:620
↓ 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 callersFunctionpopstate
()
web/src/lib/stores/chatSurface.svelte.test.ts:245
↓ 2 callersFunctionpopstateEv
()
web/src/lib/stores/chatSurface.svelte.test.ts:667
↓ 2 callersFunctionpopulatedConfig
populatedConfig sets every persisted field, so the golden below covers the whole of config.toml, credentials included.
internal/config/save_golden_test.go:14
↓ 2 callersFunctionpositionHandle
(blockDOM: HTMLElement)
web/src/lib/components/editor/block-drag-handle.ts:398
↓ 2 callersMethodpost
(body, session, scopes string, headers ...http.Header)
cmd/pad/chatgpt_scope_test.go:51
↓ 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:3613
↓ 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:467
↓ 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:1374
↓ 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
↓ 2 callersFunctionprepareCarriedOccurrences
prepareCarriedOccurrences checks a schedule's history before anything is written, including the two unique indexes, so a duplicate cannot fail an inse
internal/store/schedule_carry.go:408
↓ 2 callersFunctionprepareCarriedOverrides
(in []models.ScheduleOverrideExport, floating bool)
internal/store/schedule_carry_v2.go:64
↓ 2 callersMethodprepareCreateFieldsQ
prepareCreateFieldsQ is prepareCreateFields with every read on q. The app installer runs it on the provisioning transaction (TASK-3397, U8b); every ot
internal/server/handlers_items.go:1248
↓ 2 callersFunctionprepareReminderMigrationTx
prepareReminderMigrationTx runs before the constraint SQL on the migration transaction. The version is rechecked after exclusion, never from a stale l
internal/store/reminder_migration.go:99
↓ 2 callersFunctionprepareUpgrade
prepareUpgrade builds a fully migrated SQLite DB at <dir>/pad.db, then un-applies one migration so the next New() is an upgrade that takes a snapshot.
internal/store/migration_guard_test.go:516
↓ 2 callersFunctionpreserveDBFileOwnership
(file *os.File, original os.FileInfo)
cmd/pad/db_restore_ownership_unix.go:11
↓ 2 callersFunctionpreservePaneItemParam
(params: URLSearchParams, currentUrl: UrlWithParams)
web/src/lib/collections/paneUrlParams.ts:47
↓ 2 callersFunctionpressed
()
web/src/lib/components/common/SegmentedControl.svelte.test.ts:16
↓ 2 callersFunctionprev
()
web/src/lib/components/common/Lightbox.svelte.test.ts:5677
↓ 2 callersFunctionpreviewFixture
()
web/src/lib/components/settings/apps/AppsTab.svelte.test.ts:64
← previousnext →8,801–8,900 of 31,685, ranked by callers