MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 4 callersMethodoutboxClaimRows
()
internal/store/event_outbox.go:328
↓ 4 callersMethodoutboxClaimableRowCap
outboxClaimableRowCap is the claim-side per-row ceiling, kept at the same multiple of the write cap under the test seam as it is in production so a lo
internal/store/event_outbox.go:326
↓ 4 callersMethodoutstandingKeyOf
(t *testing.T, i int)
internal/store/commitment_gates_rekey_test.go:24
↓ 4 callersMethodowedJobs
(t *testing.T)
internal/server/effort_backfill_lifecycle_test.go:103
↓ 4 callersMethodownedWorkspaces
(t *testing.T)
internal/server/handlers_plan_limit_race_test.go:65
↓ 4 callersFunctionownerState
ownerState tests path's owner.lock. When it is free the caller now holds it, and must call release after removing the directory.
internal/testtmp/lock_unix.go:50
↓ 4 callersFunctionownsWriteDeadline
ownsWriteDeadline reports whether a request's route bounds its own writes, so the middleware must leave its connection alone. compressSkips exempts th
internal/server/middleware_write_deadline.go:61
↓ 4 callersFunctionpanicAfterMint
BUG-3191: a panic after a bundle import has minted its workspace used to skip the handler's keep arm, the only place a failed import's owner row is wr
internal/server/handlers_import_bundle_bug3191_test.go:19
↓ 4 callersMethodparentLink
(t *testing.T)
internal/mcp/dispatch_http_clear_parent_test.go:133
↓ 4 callersFunctionparseCollectionFieldsDSL
parseCollectionFieldsDSL parses the CLI's --fields DSL into a {fields: [...]} map ready for json.Marshal. Empty input returns an empty Fields slice (t
internal/mcp/dispatch_http_routes.go:770
↓ 4 callersFunctionparseItemListParams
parseItemListParams extracts item list parameters from the request query string.
internal/server/handlers_items.go:4416
↓ 4 callersFunctionparseMCPRequestBodyWithSource
parseMCPRequestBodyWithSource is parseMCPRequestBody plus the provenance of the tool name, decided at the branch that produced it (BUG-2819): every pl
internal/server/middleware_mcp_audit.go:515
↓ 4 callersFunctionparsePublicItem
(raw: unknown, index = 0)
web/src/lib/components/share/shareView.ts:153
↓ 4 callersFunctionparseWorkspaceSettingsMap
(raw string)
internal/models/workspace_settings.go:148
↓ 4 callersFunctionpartialImportCategory
partialImportCategory chooses a fixed category for a KEPT import from the error's own leading words. The keep-path errors are all minted in importBund
internal/server/handlers_import_bundle.go:1457
↓ 4 callersFunctionpath
(key, hotkey, label, note, onPress)
plugin/hooks/register.js:625
↓ 4 callersFunctionpermissionLevel
permissionLevel returns a numeric level for grant permission comparison.
internal/server/middleware_auth.go:1001
↓ 4 callersFunctionpersistUpserts
( userId: string | null, ws: string, rows: ItemIndexRow[], /** * The access epoch the WRITER believes de
web/src/lib/stores/localIndexPersistence.ts:572
↓ 4 callersFunctionplanLimitErr
(t *testing.T, err error)
internal/store/task3619_storage_limit_test.go:73
↓ 4 callersFunctionplantNULInWorkspaceName
plantNULInWorkspaceName writes the legacy state through a raw handle with the NUL triggers dropped — which is what a pre-enforcement binary was.
cmd/pad/cmd_db_nul_test.go:137
↓ 4 callersFunctionplaybookMatchCmd
()
cmd/pad/cmd_playbook.go:244
↓ 4 callersFunctionplaybooksColl
(t *testing.T, e *appsEnv)
internal/server/handlers_apps_provision_test.go:328
↓ 4 callersFunctionpollSubscriberCount
pollSubscriberCount READS the server's registration state rather than publishing a probe to infer it. The probe version worked and was a trap for the
internal/events/redis_namespace_test.go:261
↓ 4 callersFunctionpostMCPBody
(srv *Server, path, token, body string)
internal/server/task2308_mcp_scope_test.go:53
↓ 4 callersFunctionpostSetPlan
(t *testing.T, srv *Server, body map[string]string)
internal/server/handlers_plan_source_test.go:41
↓ 4 callersFunctionpostSignInDoor
(srv *Server, path, body, ct, origin, remoteAddr string)
internal/server/bug3680_cross_site_signin_doors_test.go:33
↓ 4 callersFunctionprStateColor
(state string)
cmd/pad/cmd_github.go:466
↓ 4 callersMethodpreflightAsAttacker
preflightAsAttacker runs the dry run as the restricted editor and returns both the parsed response and the RAW bytes, because one of the assertions be
internal/server/handlers_items_copy_attachment_authz_test.go:104
↓ 4 callersFunctionprepareCarriedSchedule
prepareCarriedSchedule is the validation half of insertCarriedScheduleTx: pure (no database), so the copy preflight asks the question the copy does (T
internal/store/schedule_carry.go:141
↓ 4 callersFunctionpresenceNow
(now func() time.Time)
internal/server/session_activity.go:47
↓ 4 callersFunctionpreserveProjectionMetadata
( existing: ItemIndexRow | undefined, next: ItemIndexRow, )
web/src/lib/stores/itemRowMerge.ts:46
↓ 4 callersFunctionpreserveRootFlagGlobals
preserveRootFlagGlobals restores workspaceFlag, formatFlag and urlFlag when the test ends. They are bound to the root command's persistent flags, so a
cmd/pad/root_flag_globals_test.go:10
↓ 4 callersFunctionprintImportScheduleDrops
printImportScheduleDrops prints each schedule the import refused (TASK-4104 D2); the item itself imported.
cmd/pad/import_summary.go:31
↓ 4 callersFunctionprocessIsGone
processIsGone reports whether pid has exited. Signal 0 delivers nothing and only performs the existence and permission checks; EPERM means it is alive
internal/cli/pidfile_unix.go:136
↓ 4 callersMethodpublishAttempts
()
internal/server/handlers_push_publish_result_test.go:44
↓ 4 callersMethodpublishCollectionEvent
publishCollectionEvent publishes a real-time collection-level change (BUG-2265). collectionID is the STABLE identity clients match on; Collection carr
internal/server/handlers_collections.go:658
↓ 4 callersMethodpublishWatchNotifications
publishWatchNotifications inspects updated.LastMutation (TASK-2533, models.ItemMutationSignal — set race-free inside the SAME transaction that writes
internal/server/handlers_watch_notify.go:63
↓ 4 callersFunctionpushOnce
(t *testing.T, srv *Server, slug, itemSlug, token, key string)
internal/server/task3585_push_key_test.go:50
↓ 4 callersFunctionq
(sel: string)
web/src/lib/components/attachments/AttachmentPdfPreview.svelte.test.ts:83
↓ 4 callersMethodqueryOAuthRequestRow
queryOAuthRequestRow reads a row by signature from the named table and returns (request, active, err). - For oauth_pkce_requests, active is always tr
internal/store/oauth.go:850
↓ 4 callersMethodqueueSnapshot
()
internal/server/materialize_recovery_test.go:169
↓ 4 callersFunctionquoteIdent
quoteIdent quotes a SQL identifier. The names come from this package's own list rather than from user input, but the trigger restoration learned that
internal/store/nulscan.go:440
↓ 4 callersFunctionrank
(t: string)
web/src/lib/dashboard/caps.ts:28
↓ 4 callersFunctionrawItem
( userId: string | null, ws: string, id: string, )
web/src/test/idbHarness.ts:163
↓ 4 callersFunctionrawWatchStreamStatus
rawWatchStreamStatus opens the watch stream and returns only the status code, closing immediately. Used for the refusal legs, where there is no stream
internal/server/stream_admission_test.go:26
↓ 4 callersFunctionreachabilityGrid
reachabilityGrid calls fn for every cell of the HOURLY/MINUTELY INTERVAL x BYHOUR x BYMINUTE x start grid that TestReachabilityCheckIsExact and TestBo
internal/schedule/reachability_test.go:43
↓ 4 callersFunctionread
()
web/src/lib/attachments/hostAddress.test.ts:26
↓ 4 callersFunctionreadBundle
readBundle decompresses + extracts a gzipped tar bundle into a map[name]bytes. Test helper kept here so both export and (later) import tests can read
internal/server/handlers_export_bundle_test.go:288
↓ 4 callersFunctionreadEpoch
()
web/src/test/identityEpochMock.svelte.ts:38
↓ 4 callersFunctionreadFrame
(r io.Reader)
internal/materialize/worker.go:129
↓ 4 callersFunctionreadJSON
(path string, v any)
scripts/decision-eval/attention/main.go:323
↓ 4 callersFunctionreadPluginFile
(t *testing.T, name string)
internal/mcp/chatgpt_plugin_package_test.go:72
↓ 4 callersFunctionreadStdinBody
readStdinBody reads an item body from stdin and REFUSES a blank one — empty or whitespace-only — with an error naming the cause (BUG-3100). A lost her
cmd/pad/cmd_item.go:4788
↓ 4 callersFunctionreadWorkspaceContextInput
(filePath string, useStdin bool)
cmd/pad/workspace_context.go:101
↓ 4 callersFunctionreadingOf
readingOf is the wall clock of an instant in loc, labelled UTC.
internal/schedule/engine.go:26
↓ 4 callersFunctionready
()
web/src/routes/(console)/settings/account/task4129SettleFences.svelte.test.ts:131
↓ 4 callersFunctionreapply095
reapply095 runs migration 095 again through the real runner (applySQLiteMigration: its own transaction, and the schema_migrations row), after forgetti
internal/store/migration_095_items_fts_test.go:50
↓ 4 callersFunctionreasonOf
BUG-2829: an HTTP 413 is a deliberate server cap, and both transports used to report it as server_error, which reads as transient and invites a retry
internal/mcp/too_large_test.go:27
↓ 4 callersMethodrebaseNewestVersionPatch
rebaseNewestVersionPatch keeps the newest version exact when an unversioned write replaces the row's body (BUG-3745). Versions are reverse patches res
internal/store/items.go:6545
↓ 4 callersFunctionrebind
rebind turns the single ? placeholder these tests use into Postgres's $1.
internal/store/bug3136_step2_twin_test.go:230
↓ 4 callersMethodreclaimRefusedBlob
(ctx context.Context, backend attachments.AttachmentStore, hash, storageKey string)
internal/server/orphan_gc.go:495
↓ 4 callersFunctionrecoveryFiles
(t *testing.T, dir string)
cmd/pad/bug3035_edit_guard_test.go:119
↓ 4 callersFunctionredirectToLogin
* The session-expiry redirect every 401 below takes. It runs the open items' * keepers first (BUG-3571 part 2): the redirect does not change the iden
web/src/lib/api/client.ts:892
↓ 4 callersFunctionrefLess
refLess orders refs by prefix, then by their number as a number ("CONVE-13" before "CONVE-1287").
internal/server/handlers_item_context.go:613
↓ 4 callersFunctionrefresh
()
web/src/lib/components/editor/attachment-image.ts:1161
↓ 4 callersFunctionrefreshAccessibleName
()
web/src/lib/components/editor/attachment-chip.ts:301
↓ 4 callersMethodrefuseInvisibleRelationOverrides
refuseInvisibleRelationOverrides is the visibility check the MIGRATE doors owe their SUPPLIED half. The four write doors go through resolveRelationRe
internal/server/relation_referents.go:328
↓ 4 callersFunctionrefuseRelationIssues
refuseRelationIssues writes the 400 a write door owes and reports whether it did. One function so the six refusing doors cannot phrase the same refusa
internal/server/relation_referents.go:287
↓ 4 callersFunctionrefuseSoftDelete
BUG-3479: removeUnusableWorkspace returned nil when its own soft-delete FAILED, and its contract says nil means "the workspace is gone". Every caller
internal/server/bug3479_remove_unusable_truth_test.go:19
↓ 4 callersFunctionrefusedBlobServer
BUG-3652: an upload refused at its row insert (the storage cap, TASK-3619) used to leave its blob on disk with no row, uncharged, until the rowless sw
internal/server/bug3652_refused_upload_blob_test.go:23
↓ 4 callersFunctionregisterNonAdmin
--- helpers --- registerNonAdmin inserts a member-role user directly into the store and mints a session token for them. Bypasses the admin-registratio
internal/server/handlers_admin_billing_test.go:351
↓ 4 callersFunctionregisterRemoteMCP
registerRemoteMCP registers everything the remote /mcp transport serves on mcpSrv: the catalog, prompts, meta and resources. Extracted from the cloud
cmd/pad/cmd_server.go:1480
↓ 4 callersMethodrelayAwareness
relayAwareness broadcasts an awareness frame unchanged, after noting which client IDs this connection owns (TASK-2206; see awareness.go). Every awaren
internal/collab/room.go:816
↓ 4 callersFunctionreleaseSlot
()
web/src/lib/services/sse.svelte.ts:192
↓ 4 callersFunctionremapAttachmentRefs
remapAttachmentRefs replaces "pad-attachment:OLD" with "pad-attachment:NEW" for every (old, new) pair in the map. Pure string operation — kept private
internal/store/attachments.go:1702
↓ 4 callersFunctionremapStore
--------------------------------------------------------------------------- Chunked remap (TASK-4278). Every test builds its fixture through the store
internal/store/attachments_remap_chunk_test.go:60
↓ 4 callersFunctionreminderConstraintFixture
IDEA-2883. item_reminders.workspace_id is denormalized from the item, and until migration 086 nothing but a repeated read-side predicate stopped the t
internal/store/reminder_workspace_constraint_test.go:22
↓ 4 callersMethodreminderQ
(q Queryer, workspaceID, id string)
internal/store/reminder_commitment.go:11
↓ 4 callersFunctionrender
(page, svgFile, size)
docs/brand/mark/export.mjs:46
↓ 4 callersFunctionrenderAttachmentChip
( meta: AttachmentMeta, displayText: string | undefined, workspaceSlug: string, urlBuilder?: AttachmentUrl
web/src/lib/markdown/attachments.ts:253
↓ 4 callersFunctionrenderAttachmentImage
( meta: AttachmentMeta, alt: string, workspaceSlug: string, variant: 'thumb-sm' | 'thumb-md' = 'thumb-md',
web/src/lib/markdown/attachments.ts:228
↓ 4 callersFunctionrenderCommentsMarkdown
renderCommentsMarkdown is the markdown counterpart of cli.PrintCommentTable. Comments are not tabular — the terminal form prints an attribution line t
cmd/pad/cmd_item.go:3445
↓ 4 callersFunctionrenderCommitmentLink
(w io.Writer, l displayCommitmentLink)
cmd/pad/cmd_schedule_link.go:335
↓ 4 callersFunctionrenderRect
()
web/src/lib/components/editor/attachment-crop-modal.ts:303
↓ 4 callersMethodreneg
(tok string, preview bool, revision string, ack bool)
internal/server/commitment_graph_entry_test.go:69
↓ 4 callersFunctionrenegotiateBody
()
internal/server/handlers_commitments_test.go:346
↓ 4 callersFunctionreply
(value: unknown)
web/src/lib/chat/chatRecords.ts:58
↓ 4 callersFunctionreportCollectionFor
reportCollectionFor resolves the done field and terminal values shared by reports and item-level completion feeds.
internal/store/reports.go:662
↓ 4 callersMethodreportOpFailed
(op string)
internal/server/session_presence_observer.go:58
↓ 4 callersMethodreportResumeGap
(workspaceID string)
internal/events/observer.go:310
↓ 4 callersMethodreq
(sig string)
internal/store/bug3678_refresh_after_revoke_test.go:44
↓ 4 callersFunctionrequestDeadline
* An abort signal that fires after `ms`, and also when the caller's own signal * does. Linked by hand rather than with `AbortSignal.any`, which needs
web/src/lib/api/client.ts:968
↓ 4 callersFunctionrequestIsLoopback
(r *http.Request)
internal/server/handlers_auth.go:278
↓ 4 callersFunctionrequestTimeoutError
(isIdempotent: boolean)
web/src/lib/api/client.ts:994
↓ 4 callersFunctionrequestVia
requestVia builds the client the way client commands do and sends one request.
cmd/pad/bug3646_pad_toml_token_test.go:59
↓ 4 callersFunctionrequireForecastOnly
(t *testing.T, body map[string]any, id string)
internal/server/handlers_agenda_forecast_test.go:241
↓ 4 callersMethodrequireUnrestrictedAccess
requireUnrestrictedAccess denies, with 403 and message, a caller whose workspace access is scoped to specific collections. It gates the capabilities t
internal/server/handlers_export_bundle.go:49
↓ 4 callersMethodreserve
A place in the order, taken before an outside fetch is sent.
web/src/lib/stores/pendingInvitations.svelte.ts:60
↓ 4 callersFunctionreservedFieldRemedy
reservedFieldRemedy names the write path that legitimately maintains a reserved metadata key, for the refusal message the field-patch gate emits (BUG-
internal/server/handlers_items_copy_preflight.go:1707
↓ 4 callersMethodreset
(reason string)
internal/watchevents/observer.go:180
← previousnext →4,101–4,200 of 28,840, ranked by callers