MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 2 callersMethodresumeOutrunsLocalView
resumeOutrunsLocalView reports whether a resume from sinceID is asking about ids this instance cannot vouch for, by asking the one authority that know
internal/watchevents/redis_bus.go:935
↓ 2 callersMethodretargetSimpleReminderTx
retargetSimpleReminderTx requires the caller to pin and check the simple run-once shape. An ended commitment has no alarm, so rearming creates one.
internal/store/reminder_commitment.go:154
↓ 2 callersMethodretimeArmedReminderTx
retimeArmedReminderTx moves the managed row's instant only while it is still armed. It returns nil on 0 rows (fired or absent): a fired row's occurren
internal/store/schedules.go:1120
↓ 2 callersMethodretryPending
Put a failed or unconfirmed bubble back in flight. Returns it so the caller re-sends with its op_key.
web/src/lib/chat/model.ts:84
↓ 2 callersFunctionretypeConventionRole
retypeConventionRole replaces the conventions collection's DECLARED `role` field with def. `role` is chosen because it is on conventionFieldKeys: a ke
internal/server/handlers_artifact_import_relation_carry_test.go:225
↓ 2 callersMethodreusableEndedReminderCarrierQ
reusableEndedReminderCarrierQ ignores item-level gates: rearming preserves those gates, and the ordinary commitment firing path continues to honor the
internal/store/reminder_commitment.go:39
↓ 2 callersFunctionreusedByAnotherClient
reusedByAnotherClient reports whether a reused (invalidated or inactive) code or refresh token is being presented by a client other than the one it wa
internal/oauth/storage.go:225
↓ 2 callersMethodrevokeAppGrantOnce
revokeAppGrantOnce is one attempt at ending an installed app's grant by request id, whoever holds it: RevokeUserAppGrant after its ownership check, an
internal/store/app_grants.go:132
↓ 2 callersFunctionrewrite
Fulfil `route` with the real response, rewritten by `edit`.
web/e2e/bug-3050-stale-body-renders.spec.ts:43
↓ 2 callersFunctionrewriteBundle
rewriteBundle re-tars a real bundle, passing pad-export.json through edit and repeating the entry named dup (if any) once more.
internal/server/bug3357_bundle_ownership_test.go:17
↓ 2 callersFunctionrole
(name: string)
web/src/lib/commitment.ts:249
↓ 2 callersFunctionroleEdit
roleEdit gives the named schedules stored role data, with the dates and kind of schedule the case needs.
internal/store/schedule_link_import_test.go:849
↓ 2 callersFunctionroleOffsetsRaw
TASK-4610: every commitment view carries role_offsets, the schedule row's own stored offsets, so a client can edit the series losslessly.
internal/server/commitment_role_offsets_test.go:15
↓ 2 callersFunctionroleText
(value: string, zone: string)
web/src/lib/calendar/presentation.ts:274
↓ 2 callersMethodrootPastDeadline
rootPastDeadline reads either orientation of the root target/deadline violation.
internal/store/commitment_cascade.go:221
↓ 2 callersFunctionroots
()
web/src/lib/components/common/Lightbox.svelte.test.ts:211
↓ 2 callersMethodrotateAppWebhookSecretTx
rotateAppWebhookSecretTx mints a new signing secret for the install's hook, marks it delivered (the caller is handing it to the app now: redeem), and
internal/store/app_webhooks.go:136
↓ 2 callersFunctionroundTrip
PLAN-3578 step 3: an undo is the inverse patch anchored on each edit's context, and it refuses unless every anchor occurs exactly once.
internal/bodypatch/undo_test.go:12
↓ 2 callersFunctionroundTrips
roundTrips reports whether emitting `[[title]]` the way links.ReplaceTitle does — plain concatenation, no escaping — produces a bracket that reads bac
internal/models/document_title_test.go:35
↓ 2 callersFunctionroutingTestHandler
(items []models.Item)
cmd/pad/format_markdown_routing_test.go:86
↓ 2 callersFunctionroutingTestItems
()
cmd/pad/format_markdown_routing_test.go:70
↓ 2 callersFunctionrow
(id: string, seq: number | undefined, sort_order: number)
web/src/lib/stores/localIndexScopeStale.svelte.test.ts:15
↓ 2 callersFunctionrow
(id: string, seq: number, collection = 'kept')
web/src/lib/stores/localIndexMovedOutFloor.svelte.test.ts:57
↓ 2 callersFunctionrow
(id: string, seq: number, title: string)
web/src/lib/stores/localIndexReconcileDuplicate.svelte.test.ts:18
↓ 2 callersFunctionrow
(id: string, seq: number, collection = 'kept')
web/src/lib/stores/localIndexReconcileAuthDrop.svelte.test.ts:28
↓ 2 callersFunctionrow
(id: string, seq: number)
web/src/lib/stores/localIndexReconcileOneReadPerAsk.svelte.test.ts:19
↓ 2 callersFunctionrow
(id: string)
web/src/lib/api/bug3789ListWalks.test.ts:9
↓ 2 callersFunctionrowLabel
(row: HTMLElement)
web/src/lib/components/collections/statusPickerTestKit.ts:26
↓ 2 callersFunctionrowNewer
rowNewer orders two rows by created_at, then kind priority, then id.
internal/server/push_dispatch.go:474
↓ 2 callersMethodrowState
A schedule that is an end of a link is edited only where the edit cannot shift a date the link supplies (TASK-4353, 2a). Without the refusal a timing
internal/store/commitment_links_guard_test.go:14
↓ 2 callersFunctionrowTop
Viewport top of the row with this title.
web/e2e/bug-3165-list-scroll-after-expand.spec.ts:55
↓ 2 callersFunctionrows
()
web/src/lib/components/layout/WorkspaceSwitcher.notLoaded.svelte.test.ts:43
↓ 2 callersFunctionrows
(scroller: HTMLElement)
web/src/lib/collections/listScrollHandoff.ts:32
↓ 2 callersFunctionrows
(page: Page)
web/e2e/chat-thread-read.spec.ts:72
↓ 2 callersFunctionrun
(...args: string[])
web/e2e/lib/real-install.ts:63
↓ 2 callersMethodrun
run executes the pad subprocess. When limit > 0 it retains at most limit bytes of stdout (draining and discarding the rest so the child never blocks o
internal/mcp/resources.go:88
↓ 2 callersMethodrunAppPendingSweep
runAppPendingSweep is one pass.
internal/server/app_pending_sweep.go:69
↓ 2 callersFunctionrunAuthCodeFlowFor
runAuthCodeFlowFor is runAuthCodeFlow for a server whose OAuth audience is not testCanonicalAudience.
internal/server/handlers_oauth_test.go:2568
↓ 2 callersFunctionrunBackfillStatements
runBackfillStatements replays the migration's UPDATE statements. The migration itself is version-tracked and won't re-run, so the statements are read
internal/store/collection_traits_backfill_test.go:143
↓ 2 callersFunctionrunClientSession
runClientSession returns the initialized client as well as the handshake result so tests can inspect later protocol responses on the same session.
internal/mcp/server_test.go:199
↓ 2 callersFunctionrunCommentTombstonePopulation
(t *testing.T, s *Store)
internal/store/comments_tombstone_test.go:34
↓ 2 callersMethodrunDecisionTick
(ctx context.Context)
internal/server/decision_tick.go:201
↓ 2 callersMethodrunItemClosingGuards
runItemClosingGuards preserves open_children precedence while including every warning that a single force retry will override, using the same transact
internal/server/handlers_items_schedule_active.go:24
↓ 2 callersMethodrunJob
runJob calls one job function of the bundle (materialize or snapshot) with job's JSON, under ctx's interrupt.
internal/materialize/materialize.go:217
↓ 2 callersFunctionrunLimitedMintRace
(t *testing.T, s *Store, m limitedMint, competitorCounts bool)
internal/store/limits_mint_race_test.go:121
↓ 2 callersFunctionrunLimitedWorkspaceRace
(t *testing.T, s *Store, c limitedWorkspaceInsert, competitorCounts bool)
internal/store/limits_workspace_mint_race_test.go:156
↓ 2 callersFunctionrunLink
(t *testing.T, dir, url string, args ...string)
cmd/pad/task3612_link_repoint_test.go:82
↓ 2 callersFunctionrunLiveSetEpoch
(t *testing.T, restricted bool)
internal/server/bug3428_phase2_epoch_guard_test.go:109
↓ 2 callersFunctionrunMCPStatus
(cmd *cobra.Command, inst *mcpserver.Installer)
cmd/pad/mcp.go:187
↓ 2 callersMethodrunOutboxRetention
runOutboxRetention enforces both halves of the retention window. Both, on every tick, because they bound different things: dispatched rows are histor
internal/server/outbox_drain.go:474
↓ 2 callersFunctionrunPin
(t *testing.T, dir string, args ...string)
internal/buildtools/pin_plugin_marketplace_test.go:84
↓ 2 callersFunctionrunPublishScriptID
runPublishScriptID runs publishScript directly and returns the id it assigned (0 when the dedupe token declined it). Since BUG-2744 the reply is {id,
internal/events/redis_idspace_test.go:1395
↓ 2 callersFunctionrunRestoreRace
(t *testing.T, s *Store, competitorCounts bool)
internal/store/restore_plan_limit_test.go:36
↓ 2 callersFunctionrunSearchWithCollection
(t *testing.T, stub *searchCollectionStub, collection string)
cmd/pad/search_collection_gate_test.go:46
↓ 2 callersFunctionrunShowMarkdown
TASK-3451: `pad item show --format markdown` prints the BODY ONLY, verbatim, so `item update --stdin` round-trips it (IDEA-2937). Skills and playbooks
cmd/pad/task3451_markdown_load_test.go:20
↓ 2 callersFunctionrunShowMarkdownWith
(t *testing.T, content, contentState string)
cmd/pad/task3451_markdown_load_test.go:25
↓ 2 callersFunctionrunTestShard
runTestShard runs scripts/test-shard.sh from the repo root against the shardpkg fixture, with spread as its pin file ("" for none).
internal/buildtools/test_shard_spread_test.go:13
↓ 2 callersMethodrunTokenReaperTick
runTokenReaperTick runs one sweep. Each cleaner is independent — a failure in one is logged and does not skip the others. Quiet on success (operators
internal/server/token_reaper.go:98
↓ 2 callersFunctionruneBoundaryAtOrBefore
runeBoundaryAtOrBefore returns the largest index <= i that is not a UTF-8 continuation byte, so a cut there never SPLITS a rune: valid UTF-8 input yie
internal/decision/typesafe.go:523
↓ 2 callersFunctionsafeErrorText
safeErrorText is err.Error() that survives a nil receiver or a panicking method: a log call must never take the process down.
internal/logging/scrub.go:848
↓ 2 callersFunctionsafeJsonParse
(raw: string | undefined | null, fallback: T)
web/src/lib/stores/localSearch.svelte.ts:311
↓ 2 callersFunctionsafeLinkHref
(raw: string, origin: string)
web/src/lib/chat/urlPolicy.ts:24
↓ 2 callersFunctionsafeLocalFilenameFor
safeLocalFilenameFor is safeLocalFilename for a named OS, so the Windows branch is testable on any build host. ON WINDOWS ONLY, the name also goes th
cmd/pad/cmd_attachment.go:322
↓ 2 callersFunctionsafePath
(path: string)
web/src/lib/billing/upgradeResume.ts:27
↓ 2 callersFunctionsaid
(text: string, type: 'success' | 'error' = 'error')
web/src/routes/(console)/agenda/agenda.svelte.test.ts:41
↓ 2 callersFunctionsame
(w: Workspace, ref: Ref)
web/src/lib/stores/shellWorkspace.ts:10
↓ 2 callersFunctionsameFilePath
sameFilePath reports whether two paths name the same file.
cmd/pad/cmd_db_nul.go:353
↓ 2 callersFunctionsameIDs
(a, b []string)
internal/store/workspace_tabs_test.go:67
↓ 2 callersFunctionsameOffsets
(a, b *models.CommitmentRoleOffsets)
internal/store/commitment_role_offsets_test.go:50
↓ 2 callersFunctionsameServerURL
sameServerURL compares two .pad.toml url values. Empty means the local server. Scheme and host case, a default port and a trailing slash do not make a
cmd/pad/cmd_workspace.go:828
↓ 2 callersFunctionsameStringSet
(a, b []string)
internal/server/app_upgrade_diff.go:337
↓ 2 callersFunctionsanitiseStoredTextChanged
sanitiseStoredTextChanged is sanitiseStoredText plus the fact a caller needs when the value is an IDENTITY rather than free text: whether anything was
internal/server/middleware_request_text.go:945
↓ 2 callersFunctionsanitizeFTSQuery
sanitizeFTSQuery wraps each token in double quotes so FTS5 treats special characters (like hyphens) as literals rather than operators. The final token
internal/store/search.go:550
↓ 2 callersFunctionsanitizePGFTSQuery
sanitizePGFTSQuery returns a copy of q with hyphens replaced by spaces. Used as the second leg of the OR-combined PG FTS query: postgres' english pars
internal/store/search.go:611
↓ 2 callersMethodsaveLocked
saveLocked is Save for a caller that holds the credentials lock.
internal/cli/credentials.go:384
↓ 2 callersFunctionscan
scan marks the lines inside fenced code blocks (fence lines included) and lists the headings outside them, following CommonMark's rules for both: a fe
internal/acceptance/acceptance.go:56
↓ 2 callersFunctionscanAgendaItemEvents
(rows *sql.Rows)
internal/store/agenda_item_events.go:89
↓ 2 callersFunctionscanAttachmentsUses
scanAttachmentsUses counts the uses of the internal/attachments package in af and reports every one outside the audited pure helpers. The local name c
internal/store/task4278_store_network_io_guard_test.go:115
↓ 2 callersFunctionscanBoundHolds
(t *testing.T, laterHistory bool)
internal/server/handlers_agenda_test.go:508
↓ 2 callersMethodscanBucketCounts
scanBucketCounts runs a "SELECT <bucket>, COUNT(*) ... GROUP BY <bucket>" query and returns a label→count map.
internal/store/reports.go:892
↓ 2 callersFunctionscanDeadline
(row interface{ Scan(...any) error }, approximate bool)
internal/store/schedule_deadline_eval.go:133
↓ 2 callersFunctionscanItemSnapshot
scanItemSnapshot scans one itemSnapshotSelect row and hydrates it exactly as a single-item read does. sql.ErrNoRows is returned unwrapped.
internal/store/items.go:892
↓ 2 callersFunctionscanItemVersions
(rows *sql.Rows)
internal/store/items.go:6904
↓ 2 callersFunctionscanItemWorkspaceMove
scanner (api_tokens.go) is satisfied by both *sql.Row and *sql.Rows.
internal/store/item_workspace_moves.go:191
↓ 2 callersFunctionscanLink
(r interface{ Scan(...any) error })
internal/store/commitment_links.go:145
↓ 2 callersMethodscanNotification
(r rowScanner)
internal/store/push_dispatch.go:68
↓ 2 callersFunctionschedule
(view: EditorView)
web/src/lib/components/editor/attachment-upload.ts:372
↓ 2 callersFunctionschedule
()
web/src/lib/chat/viewport.ts:23
↓ 2 callersFunctionscheduleIDs
(s []*models.ItemSchedule)
internal/store/commitment_links_test.go:177
↓ 2 callersMethodscheduleSnapshotQ
(q Queryer, id string)
internal/store/schedule_journal.go:103
↓ 2 callersFunctionscheduleSpreadSync
* Answer a server `sync_required` after a random delay instead of at once * — see syncSpread.ts for why and for the window. `needsSync` is set NOW,
web/src/lib/services/sse.svelte.ts:317
↓ 2 callersFunctionscheduleUpdateBody
(p scheduleParams, currentStart string)
internal/mcp/dispatch_http_schedule.go:218
↓ 2 callersFunctionschemaSpec
()
web/src/lib/collab/materializer/entry.ts:171
↓ 2 callersFunctionschemaSpecOf
(editor: Editor)
web/src/lib/collab/materializer/schemaSpec.ts:17
↓ 2 callersFunctionschemaTagRules
(schema: Schema)
web/src/lib/components/editor/extensions/htmlProse.ts:82
↓ 2 callersFunctionscopeStale
An outstanding stale ask that no resync started after it has answered.
web/src/lib/stores/localIndex.svelte.ts:953
↓ 2 callersFunctionscopeTestArgs
(e mcpserver.ChatGPTTool)
cmd/pad/chatgpt_scope_test.go:92
↓ 2 callersFunctionscratchCollection
(fixture: SuiteFixture, request: APIRequestContext)
web/e2e/bug-3159-roles-children-touch-drag.spec.ts:51
↓ 2 callersFunctionscratchCollection
(fixture: SuiteFixture, request: APIRequestContext)
web/e2e/bug-3158-landscape-touch-drag.spec.ts:35
↓ 2 callersFunctionscreenDialAddr
screenDialAddr rejects a dial to a private/reserved IP. The dialer calls this with the resolved connection address (ip:port), so it validates the exac
internal/webhooks/dispatcher.go:379
← previousnext →8,401–8,500 of 28,840, ranked by callers