MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 3 callersFunctionstringifyFieldValue
stringifyFieldValue renders one `fields` value into the string form a `field: ["key=value"]` entry carries. Scalars only — nested structures and nulls
internal/mcp/catalog_item_fields.go:987
↓ 3 callersFunctionstripPointer
(target: Element, type: string, x: number, y = 100, time = 0, pointerType = 'touch', pointerId = 1)
web/src/test/weekStripGesture.ts:4
↓ 3 callersFunctionstripeCancelledBusyMessage
stripeCancelledBusyMessage words the 503 for an account deletion that hit a database bound AFTER Stripe was cancelled (TASK-4278). unknown is true whe
internal/server/handlers_account.go:788
↓ 3 callersMethodstructuralGraph
structuralGraph is every stored link, live or not: the footprint admission (CheckLink) must hold whatever is live when a move later runs.
internal/store/commitment_links.go:474
↓ 3 callersFunctionstructuredTimelineEntries
structuredTimelineEntries turns the item's implementation notes and decision-log entries into timeline entries, applying the same cursor predicate the
internal/server/handlers_timeline.go:331
↓ 3 callersFunctionstubLookup
(t *testing.T, answers map[string]string)
internal/urlimport/bug3358_address_policy_test.go:36
↓ 3 callersFunctionstubWebhookLookup
(t *testing.T, fn func(host string) ([]net.IP, error))
internal/webhooks/bug3661_delivery_classification_test.go:16
↓ 3 callersMethodsubscribeAndReplay
subscribeAndReplay is the single body behind all three Subscribe* entry points, so none of them can drift in how it establishes a subscription. IT SP
internal/events/redis_bus.go:1033
↓ 3 callersFunctionsummarizeKeys
summarizeKeys / summarizeMessages render at most a handful of caller-supplied strings, each truncated, for an error message. The request body is cappe
internal/server/handlers_items_copy_preflight.go:1621
↓ 3 callersFunctionsummarizeMessages
(msgs []string)
internal/server/handlers_items_copy_preflight.go:1623
↓ 3 callersFunctionsurfaceKey
()
web/src/lib/stores/chatSurface.svelte.ts:264
↓ 3 callersFunctionsweepSeed
BUG-3301: SweepExpiredOAuthRows deletes exactly the rows below each table's cutoff, on both dialects, in bounded batches.
internal/store/oauth_sweep_test.go:12
↓ 3 callersFunctionsweepSignatures
(t *testing.T, s *Store, table string)
internal/store/oauth_sweep_test.go:32
↓ 3 callersFunctionswipeStrip
(target: Element, dx = -80, dy = 0, duration = 300, start = 200, pointerType = 'touch')
web/src/test/weekStripGesture.ts:12
↓ 3 callersFunctionsymlinkedCredentials
(t *testing.T, targetDir string, seed bool, mode os.FileMode)
internal/cli/credentials_bug3648_test.go:339
↓ 3 callersFunctiont
(text: string, marks: string[] = [])
web/src/lib/components/editor/extensions/flankingMarks.svelte.test.ts:12
↓ 3 callersFunctiont4137NoSession
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/task4137_pkce_twofactor_test.go:99
↓ 3 callersFunctiontab
(page: Page, slug: string)
web/e2e/workspace-tabs.spec.ts:108
↓ 3 callersFunctiontabRow
(t *testing.T, s *Store, userID, wsID string)
internal/store/workspace_tabs_test.go:52
↓ 3 callersFunctiontabSlugs
(r workspaceTabsResponse)
internal/server/handlers_workspace_tabs_test.go:52
↓ 3 callersMethodtake
()
internal/server/task2308_mcp_scope_test.go:34
↓ 3 callersMethodtake
Take a ticket for a write about to be sent.
web/src/lib/items/fieldWriteOrder.ts:63
↓ 3 callersFunctiontask3392SetKind
task3392SetKind flips a row's kind by SQL. Credentials are minted for a human row and the row then becomes a bot, which is how a test gets a bot that
internal/store/task3392_bot_principal_test.go:61
↓ 3 callersFunctiontask3397Plan
(inst *InstallUpgradeState)
internal/store/task3397_upgrade_test.go:36
↓ 3 callersFunctiontask3408FixtureIn
(t *testing.T, f task3394Fix)
internal/store/task3408_delivery_test.go:31
↓ 3 callersFunctiontask3539Workspace
(t *testing.T, srv *Server, name string)
internal/server/task3539_schema_uniqueness_test.go:35
↓ 3 callersFunctiontask3867Send
(e *tokenAuthEnv)
internal/server/task3867_token_access_test.go:165
↓ 3 callersFunctiontask4509StoredSecret
(t *testing.T, e *tokenAuthEnv)
internal/server/task4509_totp_enrol_step_up_test.go:137
↓ 3 callersFunctiontestPIDNamespace
testPIDNamespace is this test process's PID namespace inode, for stamping hand-written registry rows as same-namespace rows (BUG-4090). Without the st
cmd/pad/pidns_linux_test.go:17
↓ 3 callersFunctiontestReminderMigrationLifecycle
(t *testing.T, state string)
internal/store/reminder_commitment_migration_test.go:62
↓ 3 callersFunctiontestStamp
testStamp is the marker line, computed independently of the code under test: sha256 over the body with CRLF made LF and trailing newlines dropped.
cmd/pad/bug3466_skill_overwrite_test.go:56
↓ 3 callersFunctiontimelineFixture
Regression coverage for BUG-1086. The timeline handler previously seeded `beforeID` with the literal byte "\xff" to act as a sentinel that "sorts aft
internal/store/timeline_pagination_test.go:27
↓ 3 callersFunctiontimelineRaw
BUG-2774. `before_id` went from the query string into the cursor predicate unchecked. Postgres refuses a text parameter that carries a NUL, and one th
internal/server/handlers_timeline_cursor_validation_test.go:32
↓ 3 callersFunctiontoAppAttachment
(a *models.Attachment)
internal/appstore/attachments.go:69
↓ 3 callersFunctiontoItemVersionSummaries
toItemVersionSummaries is the summary projection, which stdio MCP's pad_item.history returns as it stands.
cmd/pad/cmd_item.go:1680
↓ 3 callersFunctiontoPyWeekday
Python: MO-SU: 0 - 6 Golang: SU-SAT 0 - 6
internal/schedule/internal/rrule/util.go:28
↓ 3 callersMethodtoRouteMapper
toRouteMapper compiles spec into a RouteMapper closure.
internal/mcp/dispatch_http_routes.go:73
↓ 3 callersFunctiontokenLive
(srv *Server, tok string)
internal/server/task3397_lifecycle_test.go:32
↓ 3 callersFunctiontokenRevokeCmd
()
cmd/pad/cmd_token.go:215
↓ 3 callersFunctiontools
(scope: HTMLElement = root())
web/src/lib/components/common/Lightbox.svelte.test.ts:4199
↓ 3 callersMethodtrackSubscription
trackSubscription records the channel's workspace and bumps the gauges, so every successful subscribe path does the same bookkeeping.
internal/metrics/instrumented_bus.go:79
↓ 3 callersFunctiontranslateResourceToAudience
===================================================================== oauth/authorize — start auth-code flow =========================================
internal/server/handlers_oauth.go:597
↓ 3 callersMethodtryMarkRead
* Tell the server what was DISPLAYED: the newest confirmed seq in the window, * and only while the bottom sentinel is in view on a visible tab and t
web/src/lib/stores/chatThread.svelte.ts:593
↓ 3 callersMethodtryUpdate
tryUpdate applies a PATCH to the fixture's schedule and returns the store's answer.
internal/store/schedule_bounds_test.go:225
↓ 3 callersFunctiontutorialsResponse
(status int, ctype, body string)
internal/server/task3452_tutorials_test.go:24
↓ 3 callersFunctiontz4101Me
(t *testing.T, srv *Server, token string)
internal/server/task4101_timezone_test.go:32
↓ 3 callersFunctiontz4101StableDay
Retry the request once across midnight, then assert only a stable day's result.
internal/server/task4101_timezone_test.go:431
↓ 3 callersFunctionu11Prepare
u11Prepare adds to an app API fixture: the install's manifest (title and base_url), one item action on the companion collection, and a viewer who is a
internal/server/task3414_item_actions_test.go:35
↓ 3 callersFunctionuaBoundSession
uaBoundSession creates a user + a session bound to a fixed client IP and User-Agent, returning the raw session token. Tests drive requests through doG
internal/server/middleware_session_ua_test.go:15
↓ 3 callersFunctionuncategorizedWrite
(field: FieldDef | undefined | null)
web/src/lib/collections/laneDrafts.ts:58
↓ 3 callersFunctionunescapeWikiBody
(s: string)
web/src/lib/utils/markdown.ts:1176
↓ 3 callersFunctionunfillableOnlyPreflight
unfillableOnlyPreflight is a refusal whose ONLY unresolved field is a relation nobody can supply (IDEA-2899).
cmd/pad/item_copy_test.go:1885
↓ 3 callersFunctionuniq
(deps []Dep)
cmd/depages/main.go:265
↓ 3 callersFunctionuniqueBy
(list: readonly T[], key: (entry: T) => K)
web/src/lib/utils/unique.ts:9
↓ 3 callersFunctionuniqueNonEmpty
(values []string)
internal/cli/detect.go:367
↓ 3 callersMethoduniqueSlug
uniqueSlug generates a unique slug within a scope by appending -2, -3, etc.
internal/store/store.go:1986
↓ 3 callersFunctionuniqueStrings
(list: readonly string[])
web/src/lib/utils/unique.ts:22
↓ 3 callersMethoduniqueUsernameTx
uniqueUsernameTx returns the first of base, base-2, base-3, ... that passes the username rules (reserved names included) and that no OTHER account hol
internal/store/account_claim.go:202
↓ 3 callersFunctionunitLabel
(src: AstSource, u: Unit)
web/src/test/identityFenceGate.ts:271
↓ 3 callersFunctionunnamed
(file: string, open: RegExp, needsName: (attrs: string) => boolean)
web/src/lib/a11y/selectsHaveNames.test.ts:54
↓ 3 callersFunctionunreachableKey
(ws: string, userId: string | null)
web/src/lib/stores/localIndex.svelte.ts:301
↓ 3 callersFunctionunstampedReleaseTags
unstampedReleaseTags lists the release tags that wrote skill files without a stamp: every v* tag that has a skill but not internal/cli/skillstamp.go.
internal/cli/skill_legacy_hashes_gen_test.go:71
↓ 3 callersMethodunsubscribeLocked
unsubscribeLocked is Unsubscribe's body, split out so a caller that is already inside a critical section can deregister a subscriber without releasing
internal/events/redis_bus.go:1344
↓ 3 callersMethodunsubscribeSecret
unsubscribeSecret derives a stable HMAC key from the Maileroo API key. This avoids needing a separate secret config — if the API key changes, old unsu
internal/server/handlers_unsubscribe.go:18
↓ 3 callersFunctionuntil
* A BroadcastChannel message is delivered a few macrotasks later, and how many * is not fixed — so wait for a WITNESS of delivery rather than a tick
web/src/lib/services/sseSyncSpread.svelte.test.ts:106
↓ 3 callersMethoduntilSpent
untilSpent says the rule's UNTIL lies wholly before q, so the rule can add nothing at or after it (TASK-4100). The wall-clock test carries a wallMargi
internal/schedule/engine.go:84
↓ 3 callersMethodupdateAssignee
(t *testing.T, userID string)
internal/store/commitment_c1_test.go:447
↓ 3 callersMethodupdateAt
updateAt is update at a chosen clock.
internal/store/schedules_test.go:63
↓ 3 callersMethodupdateFields
()
internal/collections/builtin.go:77
↓ 3 callersMethodupdateItem
updateItem is handleUpdateItem, or a built-in update when b is set.
internal/server/handlers_items.go:1495
↓ 3 callersFunctionuploadAsGuestChannels
uploadAsGuestChannels is uploadAsGuest with independent control over the two item_id input channels: queryItemID rides the query string (the web clien
internal/server/handlers_attachments_test.go:143
↓ 3 callersMethodupsertScheduleOverrideStoredTx
(tx *sql.Tx, id string, o models.ScheduleOverrideExport)
internal/store/schedule_overrides.go:16
↓ 3 callersFunctionupstreamHTTPErrorResult
upstreamHTTPErrorResult is the canonical wrapper for "the dispatcher made an HTTP call that returned a non-2xx" cases outside the main executeRequest/
internal/mcp/errors.go:1897
↓ 3 callersMethodusage
(t *testing.T)
internal/server/task2188_field_usage_test.go:62
↓ 3 callersMethoduser
(t *testing.T, name, role string)
internal/server/task3615_catch_up_test.go:56
↓ 3 callersMethoduser
(t *testing.T, name string)
internal/server/bug3687_activity_visible_page_test.go:52
↓ 3 callersFunctionuserConfigPath
userConfigPath resolves the user's config.toml path with the SAME precedence Load() uses (PAD_DATA_DIR, then PAD_DB_PATH's directory, overriding), so
internal/config/config.go:306
↓ 3 callersMethoduserFeatureCountOn
userFeatureCountOn returns the current count for a user-scoped feature, read on the given executor.
internal/store/limits.go:438
↓ 3 callersMethoduserID
BUG-3835: the MCP transport's long-lived streams get a comment keepalive and take a slot in the shared stream admission gate. Built on BUG-3808's fixt
internal/server/bug3835_mcp_keepalive_test.go:22
↓ 3 callersFunctionuserIDForEmail
(t *testing.T, srv *Server, email string)
internal/server/task1809_lease_agent_default_test.go:269
↓ 3 callersMethoduserIDKeyPrefix
userIDKeyPrefix is sessionKey's prefix for one user — everything before the session id. Kept next to sessionKey so the two cannot drift. A METHOD, no
internal/server/session_presence_redis.go:357
↓ 3 callersMethoduserReachesWorkspace
userReachesWorkspace reports whether a user reaches a workspace as a member or through any live grant: the question a grant or member write asks befor
internal/server/workspace_access_notify.go:77
↓ 3 callersFunctionv0OldTitle
v0OldTitle reconstructs the old title that the code BEFORE BUG-2830 implicitly assumed when it decided whether a bracket was collection- qualified. V
internal/links/rewrite_brackets_diff_test.go:88
↓ 3 callersFunctionvalidADTSHeader
validADTSHeader recognises the ADTS framing raw .aac files use: the 12-bit syncword plus the two layer bits ADTS requires to be zero. THIS SIGNATURE
internal/attachments/mime_magic.go:347
↓ 3 callersFunctionvalidHash
validHash returns true if h looks like a hex-encoded sha256 — 64 lowercase hex characters. We only accept this canonical form so on-disk paths are sta
internal/attachments/fs_store.go:85
↓ 3 callersFunctionvalidManifest
()
internal/appmanifest/manifest_test.go:9
↓ 3 callersFunctionvalidateAgainstSchema
validateAgainstSchema runs the compiled schema against the given JSON document and returns the validation error (nil on success).
internal/cmdhelp/schema_test.go:29
↓ 3 callersFunctionvalidateAnchorRule
The completion anchor (TASK-4103 C2b, ruling Q6): "the next one is a recurrence interval after this one was DONE", not after it was due. That only ha
internal/store/schedule_completion.go:20
↓ 3 callersFunctionvalidateCloudMCPOAuth
validateCloudMCPOAuth refuses a cloud start that could not construct the OAuth server (TASK-1069). On cloud, MCP is always available, so without an ht
cmd/pad/cmd_server_mcp.go:50
↓ 3 callersFunctionvalidateConversationAgentKey
validateConversationAgentKey checks an agent key. "" (the human) is valid only when allowEmpty. The key is stored exactly as given.
internal/store/conversations.go:55
↓ 3 callersFunctionvalidateNoReservedFieldKeys
validateNoReservedFieldKeys rejects a schema that newly introduces a field keyed "parent" or "plan". prevSchema is nil on collection create (nothing t
internal/server/handlers_collections.go:57
↓ 3 callersFunctionvalidateUnparentedListRequest
validateUnparentedListRequest keeps the boolean structural filter distinct from every supported parent alias. Checking the raw query makes the rule co
internal/server/handlers_items.go:4532
↓ 3 callersMethodvalidateWorkspaceGroupMembers
validateWorkspaceGroupMembers refuses any id the caller is not admitted to and returns the admitted set (nil when ids is nil and nothing was read).
internal/server/handlers_workspace_groups.go:133
↓ 3 callersFunctionvalidateWorkspaceMintPayload
validateWorkspaceMintPayload enforces the preconditions whose subject is the payload, and NORMALIZES the settings in place when they are valid. name
internal/server/workspace_mint.go:118
↓ 3 callersFunctionvalidationFailedFromBuildErr
validationFailedFromBuildErr wraps a BuildCLIArgs error (typically "missing required argument %q" or "flag %q: <type-mismatch>") as a structured valid
internal/mcp/errors.go:887
↓ 3 callersFunctionveDoBearer
veDoBearer issues a request authenticated with a Bearer PAT (which skips CSRF). Mirrors the CLI / connector path through TokenAuth.
internal/server/middleware_verified_email_test.go:121
↓ 3 callersFunctionverified
(t *testing.T, srv *Server, addr string)
internal/server/task3352_invitation_proof_test.go:84
↓ 3 callersFunctionverifyPRLinked
verifyPRLinked checks the WRITE landed, from the server's own answer (BUG-2696). A server older than this CLI does not know the typed member, ignores
cmd/pad/reconcile.go:422
↓ 3 callersFunctionviewModeKey
(ws: string, coll: string)
web/src/lib/collections/viewPersistence.ts:31
↓ 3 callersFunctionviewerNext
(page: Page)
web/e2e/lib/attachment-viewer.ts:149
← previousnext →5,801–5,900 of 28,840, ranked by callers