MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 4 callersMethodfinishWorkspaceMint
finishWorkspaceMint runs every side effect a mint owes AFTER the workspace exists: adding it to the calling OAuth connection's allow-list (maybeAutoAd
internal/server/workspace_mint.go:149
↓ 4 callersFunctionfire
()
web/src/lib/items/linksRetry.ts:80
↓ 4 callersFunctionfireEachReminder
fireEachReminder is the pass's isolation property, split out so a test can inject a failing fire for one id and observe that the ids after it still ru
internal/store/reminders.go:608
↓ 4 callersFunctionfirstControl
(t *testing.T, c *websocket.Conn)
internal/server/task3531_compaction_test.go:197
↓ 4 callersFunctionfirstErr
(err, fallback error)
internal/store/milestone.go:153
↓ 4 callersMethodflag
(n: Node, what: string, key?: string)
web/src/test/identityFenceAst.ts:1021
↓ 4 callersFunctionflush
()
web/src/lib/stores/chatThread.svelte.test.ts:147
↓ 4 callersFunctionflushPipeline
(rawMarkdown: string, index: readonly LinkEntry[])
web/src/lib/collab/materializer/headless.ts:120
↓ 4 callersFunctionforcePlainColor
forcePlainColor disables ANSI so width/content assertions are deterministic regardless of whether the test binary's stdout happens to be a TTY.
internal/cli/format_test.go:15
↓ 4 callersFunctionforecastOnlyPaths
(w *agendaWorld)
internal/server/handlers_agenda_forecast_test.go:212
↓ 4 callersFunctionformatChatLine
TASK-4041, DOC-4036: authority is decided from fetched authorship and fresh local consent. No field from the notification can confer it.
cmd/pad/cmd_watch_chat.go:91
↓ 4 callersFunctionformatTokenExpiry
formatTokenExpiry renders an expiry timestamp for display; a nil expiry means the token never expires.
cmd/pad/cmd_token.go:528
↓ 4 callersMethodfreshRows
freshRows gives bob n new single-row groups, each on its own clean item.
internal/server/task4032_push_record_failure_test.go:205
↓ 4 callersFunctionfrontRoot
()
web/src/lib/a11y/viewerBackdrop.ts:64
↓ 4 callersFunctionfullRolePatchValue
(v *T)
internal/store/commitment.go:475
↓ 4 callersFunctiongate
(extra: Partial<CommitmentGate> = {})
web/src/lib/test/commitmentFixtures.ts:8
↓ 4 callersFunctiongateLateStale
gateLateStale is the invariant check on a built bundle: no item the bundle carries may be marked as behind its live collaborative document (BUG-3032,
cmd/pad/cmd_db.go:959
↓ 4 callersMethodgateViews
gateViews reads the gate view of A from GET A/gates and GET A/commitment.
internal/server/handlers_commitment_gate_dependents_test.go:28
↓ 4 callersFunctiongaugeValue
(t *testing.T, m *metrics.Metrics)
internal/server/stream_admission_test.go:366
↓ 4 callersFunctiongenerateTwoFAChallengeAt
generateTwoFAChallengeAt creates a short-lived, HMAC-signed challenge token that proves the user already passed password verification. The token is bo
internal/server/twofactor_challenge.go:86
↓ 4 callersMethodgetAPITokenQ
getAPITokenQ is getAPIToken on a caller-supplied executor: the mint and the rotation read their row back on their OWN transaction, so the write and th
internal/store/api_tokens.go:406
↓ 4 callersFunctiongetAbandonedOptions
(collection: Collection)
web/src/lib/types/index.ts:3539
↓ 4 callersFunctiongetCSRFToken
()
web/src/lib/api/client.ts:888
↓ 4 callersMethodgetChildItems
(q childQueryer, parentItemID string, includeDeletedCollections bool)
internal/store/items.go:5917
↓ 4 callersFunctiongetDecisions
(t *testing.T, srv *Server, wsSlug, itemSlug string)
internal/server/handlers_decisions_test.go:59
↓ 4 callersFunctiongetDraft
(userId: string, n: number)
web/src/lib/chat/chatRecords.ts:60
↓ 4 callersFunctiongetEpoch
()
web/src/routes/[username]/[workspace]/settings/settingsLoadIdentityOrder.svelte.test.ts:120
↓ 4 callersFunctiongetEpoch
()
web/src/routes/[username]/[workspace]/settings/bug3260NameOnColdLoad.svelte.test.ts:105
↓ 4 callersFunctiongetItem
---- helpers ----
internal/server/handlers_artifact_test.go:566
↓ 4 callersFunctiongetItemFields
getItemFields re-reads the item over HTTP and returns its decoded fields blob. Deliberately a fresh GET rather than the PATCH response: the question t
internal/server/handlers_items_reserved_fieldpatch_test.go:40
↓ 4 callersMethodgetItemScanQ
(q Queryer, id string, includeDeleted bool)
internal/store/items.go:923
↓ 4 callersMethodgetMeta
(key: unknown)
web/src/lib/items/confirmedBase.ts:131
↓ 4 callersFunctiongetNaturalBoundsPx
()
web/src/lib/components/editor/attachment-crop-modal.ts:299
↓ 4 callersMethodgetTokenExpirySettings
getTokenExpirySettings reads platform settings for token expiry policy.
internal/server/handlers_tokens.go:25
↓ 4 callersFunctiongit
(*args, cwd=None)
scripts/ci-scope.py:34
↓ 4 callersFunctiongitHubPRUpdate
gitHubPRFieldPatch returns the one-key field patch that refreshes an item's stored PR metadata. BUG-3049: this replaces mergeGitHubPRIntoFields, whic
cmd/pad/reconcile.go:404
↓ 4 callersFunctiongrandfatherReservedKey
BUG-2685 — a collection schema that DECLARES a reserved metadata key. `validateNoReservedFieldKeys` (BUG-2674) stops a schema NEWLY declaring one, bu
internal/server/bug2685_grandfathered_reserved_key_test.go:28
↓ 4 callersFunctiongrant
(name: string, cb: (lock: unknown) => unknown)
web/src/lib/services/sseStreamBudget.svelte.test.ts:49
↓ 4 callersMethodgraphResource
(kind string)
internal/server/commitment_graph_access_test.go:27
↓ 4 callersFunctionguardLF
guardLF normalises CRLF to LF. Every extraction below splits on "\n" or "\n\n", so a CRLF checkout would otherwise turn a paragraph into the whole fil
internal/cli/agent_identity_test.go:450
↓ 4 callersMethodhandleCopyItem
handleCopyItem copies one item into another workspace, optionally archiving the source. See the file header for the full contract.
internal/server/handlers_items_copy.go:378
↓ 4 callersMethodhandler
()
cmd/pad/bug4026_history_backlinks_json_test.go:27
↓ 4 callersFunctionhasCanonicalStatus
(value: unknown)
web/src/lib/utils/fieldColors.ts:128
↓ 4 callersFunctionhasField
(err error, field, code string)
internal/store/milestone_test.go:84
↓ 4 callersMethodhasInFlight
True while a send awaits its answer; callers defer realtime refetches meanwhile.
web/src/lib/chat/model.ts:95
↓ 4 callersFunctionhashHex
(s string)
internal/server/handlers_agent_signup.go:241
↓ 4 callersFunctionheaders
(f: Fixture, agent?: string)
web/e2e/chat-thread-write.spec.ts:17
↓ 4 callersFunctionheaders
(f: Fixture, agent?: string)
web/e2e/chat-thread-read.spec.ts:23
↓ 4 callersFunctionhumanBytes
(n int64)
cmd/pad/cmd_server.go:1432
↓ 4 callersFunctionhumanSize
humanSize formats a byte count in a compact human-readable form (1.2 MB, 340 KB). Used by attachment list / show; not exported because the formatting
cmd/pad/cmd_attachment.go:987
↓ 4 callersMethodhydrateVersionsAppAttribution
(versions []models.Version)
internal/server/app_attribution.go:65
↓ 4 callersFunctioniconForAttachment
( mime: string | null | undefined, filename?: string | null, )
web/src/lib/attachments/display.ts:217
↓ 4 callersFunctionidsOf
(entries []models.TimelineEntry)
internal/server/handlers_timeline_collapse_test.go:38
↓ 4 callersFunctionimageEl
()
web/src/lib/components/common/Lightbox.svelte.test.ts:2762
↓ 4 callersFunctionimportFixture
BUG-3103, store half. ImportWorkspace with WithPlanLimit decides items_per_workspace inside its own transaction, and refuses a bundle that would land
internal/store/import_plan_limit_test.go:37
↓ 4 callersFunctionimportStatus
(t *testing.T, srv *Server, key, token string)
internal/server/handlers_import_bundle_bug3475_test.go:60
↓ 4 callersMethodimportSynthetic
(t *testing.T, m map[string]any)
internal/store/schedule_link_hostile_test.go:62
↓ 4 callersFunctionimportWithQuery
(t *testing.T, srv *Server, query string, body []byte)
internal/server/handlers_workspace_import_nul_test.go:53
↓ 4 callersFunctionimportanceOf
(r *needs.Row, it store.NeedsScoringItem, blocked int, now time.Time)
internal/server/needs_scorers.go:208
↓ 4 callersMethodinFlightFor
* The promise of the run currently in flight FOR THIS KEY, or null. * * A single slot tagged with its key, not a per-key map, and that is the *
web/src/lib/stores/singleFlight.ts:75
↓ 4 callersMethodindex
(t *testing.T)
internal/server/bug3428_phase2_epoch_guard_test.go:81
↓ 4 callersFunctioninsertActivityAt
BUG-2781: activity feeds page over rows that MOVE (a debounce merge restamps created_at) and, before this fix, ordered them by a column stored at whol
internal/store/activities_paging_test.go:16
↓ 4 callersMethodinsertOAuthRequestRow
============================================================ Helpers — shared by the three "request-row" tables ======================================
internal/store/oauth.go:698
↓ 4 callersMethodinsertScheduleTx
insertScheduleTx stores the initial kind/end and native role columns in the same statement. Legacy callers populate their roles immediately afterwards
internal/store/schedules.go:656
↓ 4 callersFunctioninsertTestInstall
insertTestInstall writes an app_installs row directly. No production writer exists before SPEC-6 U8.
internal/store/fenced_tx_test.go:21
↓ 4 callersMethodinstallLifecycleDone
(w http.ResponseWriter, r *http.Request, workspaceID, installID, action string, extra func(*appInstallStateRes
internal/server/handlers_apps_lifecycle.go:72
↓ 4 callersFunctioninstallList
()
cmd/pad/cmd_agent.go:165
↓ 4 callersFunctioninstallUpdate
(force bool)
cmd/pad/cmd_agent.go:254
↓ 4 callersFunctionintp
(v int)
internal/server/handlers_timeline_collapse_test.go:131
↓ 4 callersFunctionisBareDate
isBareDate reports whether raw is a bare YYYY-MM-DD and returns its wall.
internal/server/day_start_place.go:16
↓ 4 callersFunctionisExpectedCopyRejection
isExpectedCopyRejection reports whether err is a refusal the CALLER is meant to render — a 4xx — rather than an incident an operator should see. Kept
internal/store/items_cross_workspace_copy.go:1630
↓ 4 callersFunctionisJSONNull
(raw json.RawMessage)
internal/server/handlers_schedules.go:264
↓ 4 callersFunctionisMutatingMethod
isMutatingMethod reports whether an HTTP method can mutate server state. The verified-email gate only fires on these — reads (GET / HEAD / OPTIONS) st
internal/server/middleware_verified_email.go:58
↓ 4 callersFunctionisReferenceChild
(child: Item, collections: Collection[])
web/src/lib/collections/childProgress.ts:88
↓ 4 callersFunctionisRemapFailure
isRemapFailure reports whether err carries ANY failure of the attachment reference remap, first chunk or later (importRemapError).
internal/server/handlers_import_bundle.go:1525
↓ 4 callersFunctionisSupportedOAuthProvider
isSupportedOAuthProvider reports whether provider is one pad accepts.
internal/server/handlers_cloud.go:36
↓ 4 callersFunctionisUpdateConflictError
* Returns true when `err` is the optimistic-concurrency 409 (BUG-2265): * the resource was modified by another writer since the caller last read it.
web/src/lib/api/client.ts:371
↓ 4 callersFunctionisolateText
(s: string)
web/src/lib/attachments/display.ts:53
↓ 4 callersFunctionisolatedTestClientWithTimeout
(timeout time.Duration)
internal/server/bug3835_mcp_keepalive_test.go:664
↓ 4 callersFunctionitem
(fields: Record<string, unknown>)
web/src/lib/components/share/shareView.test.ts:12
↓ 4 callersMethoditem
(t *testing.T, coll *models.Collection, title, role string, column *string)
internal/store/convention_role_backfill_test.go:51
↓ 4 callersMethoditem
(ws, coll, title string, fields map[string]any)
internal/server/bug2367_migrate_doors_test.go:65
↓ 4 callersFunctionitemCopyList
itemCopyList renders a list of server-supplied strings. Every element is quoted, unconditionally — unlike itemCopyLine, which quotes only when it mus
cmd/pad/cmd_item.go:3130
↓ 4 callersFunctionitemCopyTally
(rows []cli.ItemCopyPreflightNeedsValue)
cmd/pad/cmd_item.go:2932
↓ 4 callersFunctionitemDisplayLabel
(item *models.Item)
cmd/pad/lineage.go:211
↓ 4 callersFunctionitemEntriesSQL
(t *testing.T, pg bool)
internal/store/item_entries_migration_test.go:17
↓ 4 callersFunctionitemExpectedSeqParam
itemExpectedSeqParam reads the BUG-3037 optimistic-concurrency token off an MCP input map, as an integer. It REFUSES a fractional value rather than t
internal/mcp/dispatch_http_advanced.go:856
↓ 4 callersFunctionitemFields
(t *testing.T, srv *Server, ws, slug string)
internal/server/handlers_items_bulk_test.go:31
↓ 4 callersFunctionitemGets
()
web/src/lib/components/items/itemDetailIdentityLoad.svelte.test.ts:202
↓ 4 callersMethoditemIn
BUG-3366 (TASK-3345 #4: HIDE). An item-grant guest sees the items they were granted, and nothing about the items those link to. Lineage (parent title/
internal/server/bug3366_lineage_guest_test.go:20
↓ 4 callersFunctionitemStatus
(item *models.Item)
internal/server/handlers_apps_provision.go:349
↓ 4 callersFunctionitemUrlId
(item: Item)
web/src/lib/types/index.ts:3569
↓ 4 callersMethoditemsPath
(coll string)
internal/server/unclaimed_accounts_test.go:29
↓ 4 callersMethoditemsWithRows
TASK-3939 part B2a: the summary push and the 30/h cap, the retry matrix, and the expire and retention sweeps. itemsWithRows gives bob n more items wit
internal/server/task3939b2a_push_test.go:19
↓ 4 callersFunctionjoinServer
joinServer is newCollabTestServer that also reports when each Join returns, so a test can bound how long a dead peer is held.
internal/collab/bug3771_ws_deadlines_test.go:29
↓ 4 callersMethodjournalResolutionTx
(tx *sql.Tx, u *resolutionUndo, id, change, key, role, before, after, actor, reason, source string)
internal/store/schedule_reopen.go:659
↓ 4 callersMethodjournalRows
(t *testing.T, i int)
internal/store/commitment_links_review_test.go:313
↓ 4 callersMethodjournalScheduleChangeReasonTx
(tx *sql.Tx, id, change, key, role, before, after, actor, reason, source string)
internal/store/schedule_journal.go:129
↓ 4 callersMethodjournalScheduleChangeTx
Journal population: schedule create/update/delete and resolves; native role writes; occurrence and series renegotiations (RenegotiateCommitment); dead
internal/store/schedule_journal.go:125
↓ 4 callersFunctionjsonHandler
()
internal/server/middleware_compress_test.go:19
← previousnext →4,301–4,400 of 31,685, ranked by callers