MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 5 callersFunctioncommitmentSQL
(t *testing.T, pg bool)
internal/store/commitment_dates_migration_test.go:16
↓ 5 callersFunctioncontentOf
(t *testing.T, s *Store, itemID string)
internal/store/bug3744_snapshot_behind_content_test.go:42
↓ 5 callersFunctionconv
(n: number)
web/src/lib/stores/chatInbox.svelte.test.ts:44
↓ 5 callersMethodcount
()
internal/server/handlers_push_cross_instance_test.go:50
↓ 5 callersMethodcountPatchRefusal
countPatchRefusal counts a refused patch by reason, so the uncovered share is visible.
internal/server/handlers_items_patch.go:571
↓ 5 callersMethodcreateAttachmentOn
createAttachmentOn is the shared insert body, parameterized over the pool or a transaction so CreateAttachment and CreateAttachmentTx cannot drift.
internal/store/attachments.go:378
↓ 5 callersMethodcreateAuthSession
(w http.ResponseWriter, r *http.Request, user *models.User, ttl time.Duration)
internal/server/handlers_auth.go:422
↓ 5 callersFunctioncreateCollection
( fixture: SuiteFixture, request: APIRequestContext, name: string )
web/e2e/lib/attachment-viewer.ts:519
↓ 5 callersFunctionctxIndex
(xs []string, x string)
internal/server/plan3598_item_context_test.go:86
↓ 5 callersMethodcurrentSubGen
currentSubGen reports the generation of the workspace's live subscription, or 0 if it has none. Test seam: a real message carries its generation down
internal/events/redis_bus.go:2444
↓ 5 callersFunctioncursorAsNum
* Cursors are decimal-encoded `seq` values as opaque strings — but * "monotonic forward" needs a numeric compare, not lexicographic. * Treat empty /
web/src/lib/stores/localIndex.svelte.ts:508
↓ 5 callersMethoddashboard
(t *testing.T, tok string)
internal/server/bug3687_activity_visible_page_test.go:192
↓ 5 callersFunctiondbRestoreCmd
()
cmd/pad/cmd_db.go:254
↓ 5 callersFunctiondecodeAwarenessFrame
decodeAwarenessFrame parses a whole awareness WebSocket frame: the message type (1), then a length-prefixed update holding a count and, per entry, a c
internal/collab/awareness.go:95
↓ 5 callersFunctiondecodeBillingStats
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_admin_billing_test.go:101
↓ 5 callersFunctiondecodeJSONBytes
decodeJSONBytes is everything decodeJSONWithLimit does once the body has been read: the empty-body contract, the NUL gate, and the unmarshal. Extract
internal/server/server.go:3430
↓ 5 callersFunctiondecodeMap
decodeMap reads a response body as a generic map so a key's ABSENCE is distinguishable from its zero value.
internal/server/handlers_content_state_doors_test.go:39
↓ 5 callersMethoddeleteManagedReminderTx
(tx *sql.Tx, scheduleID string)
internal/store/schedules.go:694
↓ 5 callersFunctiondetachLoadListeners
()
web/src/lib/components/editor/attachment-image.ts:546
↓ 5 callersFunctiondiffBase
TASK-3397 (U8b2): the upgrade diff's classes and the additive-field rule.
internal/server/app_upgrade_diff_test.go:13
↓ 5 callersFunctiondiffFresh
(raw, norm string)
internal/server/app_upgrade_diff_test.go:44
↓ 5 callersMethoddigest
()
internal/server/handlers_apps_install.go:151
↓ 5 callersMethoddiscard
Give up on a failed send.
web/src/lib/stores/chatThread.svelte.ts:437
↓ 5 callersFunctiondispatchSyncRequired
()
web/src/lib/services/sse.svelte.ts:278
↓ 5 callersFunctiondisplayFilename
(filename: string | null | undefined)
web/src/lib/attachments/display.ts:41
↓ 5 callersMethoddone
(i int)
internal/store/commitment_gates_pg_test.go:23
↓ 5 callersMethoddoneFieldKeyQ
doneFieldKeyQ is doneFieldKey against a caller-supplied executor. The item update and move paths call it from INSIDE their transaction, where a read s
internal/store/status_transitions_backfill.go:78
↓ 5 callersFunctiondrive
* The collection route's shape, INCLUDING the two priority-gated pane * branches that sit between the foreign-modal guard and the stack dispatch.
web/src/lib/a11y/escapeGuardWiring.svelte.test.ts:273
↓ 5 callersMethoddropWorkspaceCoverage
dropWorkspaceCoverage ends this instance's coverage of one workspace, because something happened that its buffer cannot account for. The next resume f
internal/events/redis_bus.go:2333
↓ 5 callersFunctiondueLinkedFixture
(t *testing.T, n int, behavior string)
internal/store/schedule_lapse_test.go:746
↓ 5 callersFunctionedge
TASK-3959: the importance and simplicity scorers on GET /me/needs.
internal/server/needs_scorers_test.go:25
↓ 5 callersFunctioneditCmd
--- playbook ---
cmd/pad/cmd_item.go:4037
↓ 5 callersFunctioneffectiveAccessEpoch
effectiveAccessEpoch is the ONE definition of a caller's epoch, used by items-index, /items-changes and the SSE revalidation tick (BUG-3347). It hashe
internal/server/access_epoch.go:85
↓ 5 callersMethodemitBulkItemEventTx
emitBulkItemEventTx writes one item.bulk_updated event covering every member of a single-transaction bulk mutation. ONE EVENT, NOT N — this is TASK-1
internal/store/event_outbox.go:1281
↓ 5 callersMethodemitCommentEventTx
emitCommentEventTx writes one comment-subject event to the outbox on the caller's transaction. The subject is the COMMENT, not the item it hangs off.
internal/store/event_outbox.go:1115
↓ 5 callersFunctionencodeAwarenessRemoval
encodeAwarenessRemoval builds the frame that tells peers each client is gone: its state null, one clock past the last one seen, which is what y-protoc
internal/collab/awareness.go:143
↓ 5 callersMethodenforceUserLimitTx
enforceUserLimitTx is the authoritative user-scoped check. It runs inside the insert's transaction, and in this order: 1. Lock the owner's users row.
internal/store/limits.go:307
↓ 5 callersMethodenforceWorkspaceLimitTx
enforceWorkspaceLimitTx is the authoritative workspace-scoped check. The caller must already hold a lock that every limited insert of this feature tak
internal/store/limits.go:340
↓ 5 callersFunctionerrorResultf
errorResultf is errorResult with formatting.
internal/mcp/result.go:34
↓ 5 callersFunctionescapeHtml
(s: string)
web/src/lib/chat/markdown.ts:18
↓ 5 callersMethodetag
(t *testing.T, itemID string)
internal/server/task3401b_app_writes_test.go:45
↓ 5 callersMethodeventsSinceMarkLocked
eventsSinceMarkLocked is eventsSinceLocked bounded ABOVE by where the buffer stood when the caller registered, so its replay stops exactly where its o
internal/events/redis_bus.go:1309
↓ 5 callersMethodexchange
(code string)
internal/server/task3399_delegated_flow_test.go:141
↓ 5 callersFunctionexpectFsiPdi
(str: string | null | undefined, name: string)
web/src/lib/attachments/bidiIsolation.testutil.ts:33
↓ 5 callersFunctionexpectIsolated
(root: Node, name: string)
web/src/lib/attachments/bidiIsolation.testutil.ts:26
↓ 5 callersFunctionextractRefs
(content: string)
web/src/lib/chat/refs.ts:228
↓ 5 callersMethodfail
fail kills the child for reason and returns err. A kill already made for another reason (the watchdog, Close) wins: its classification is returned.
internal/materialize/supervisor.go:899
↓ 5 callersMethodfail
(err error)
internal/server/sse_stream.go:129
↓ 5 callersFunctionfailUserCount
failUserCount makes every userCount call fail, and counts them: a leg asserts its site was reached through the seam, so a site that stops calling user
internal/server/bug3334_fail_closed_test.go:48
↓ 5 callersFunctionfakeYjsRow
fakeYjsRow constructs a single row for the fakeOpLog seeding helpers. The store assigns ids in production; tests don't depend on them.
internal/collab/manager_test.go:1864
↓ 5 callersMethodfanout
fanout counts the distinct items the root blocks, directly or through other blocked items: breadth-first with a visited set (the root starts in it, so
internal/server/needs_scorers.go:476
↓ 5 callersMethodfetchAsResource
fetchAsResource is the shared shell-out + wrap path. padArgs is the leading argument list (without root flags); rootArgs are appended so --url etc. su
internal/mcp/resources.go:642
↓ 5 callersFunctionfilterWorkspacesByTokenAllowlist
filterWorkspacesByTokenAllowlist returns the subset of wss the request's OAuth consent allow-list permits, or wss unchanged when no per-slug gate appl
internal/server/handlers_workspaces.go:29
↓ 5 callersFunctionfindProp
(name: string)
web/src/routes/[username]/[workspace]/[collection]/collectionIdentityFence.svelte.test.ts:389
↓ 5 callersFunctionfinishBootstrap
()
web/src/test/reactiveBootstrapMock.svelte.ts:41
↓ 5 callersMethodfinishResolutionUndoTx
(tx *sql.Tx, sc *models.ItemSchedule, u *resolutionUndo)
internal/store/schedule_reopen.go:288
↓ 5 callersFunctionfirst
()
web/src/routes/(console)/agenda/agenda.svelte.test.ts:856
↓ 5 callersFunctionfirstWrites
(t *testing.T, m *metrics.Metrics, kind, client string)
internal/server/task3926_funnel_metrics_test.go:27
↓ 5 callersMethodforceAssign
forceAssign assigns an item to a user who is not a member (a guest): the store refuses that on write, but a person's membership can end after the assi
internal/server/handlers_me_needs_test.go:108
↓ 5 callersFunctionforecastOnlyBody
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_agenda_forecast_test.go:229
↓ 5 callersFunctionforecastOnlyGet
(t *testing.T, w *agendaWorld, user *models.User, path, query string, mods ...func(context.Context) context.Co
internal/server/handlers_agenda_forecast_test.go:216
↓ 5 callersFunctionformatBytes
formatBytes renders n in the EnvMemLimit syntax, exactly when it can.
internal/materialize/supervisor_config.go:228
↓ 5 callersFunctionformatBytes
(bytes: number)
web/src/lib/attachments/display.ts:62
↓ 5 callersFunctionformatItemRef
(item: Pick<Item, 'item_number' | 'collection_prefix'>)
web/src/lib/types/index.ts:3374
↓ 5 callersFunctionformatRef
formatRef rebuilds "PREFIX-NUMBER" from its parts. Kept inline rather than reaching for a models package helper to avoid an import cycle from store→mo
internal/store/wiki_links.go:1652
↓ 5 callersFunctionfromNativeShell
fromNativeShell reports whether r came from a Pad mobile app's web view. PLAN-3291 DR-1: the apps carry no purchase path, so a plan-limit refusal addr
internal/server/handlers_cloud.go:1799
↓ 5 callersFunctionftypBox
ftypBox builds an ftyp box with the given major and compatible brands. It is used ONLY for shapes no encoder here can produce (sequence brands, brand
internal/attachments/mime_isobmff_test.go:291
↓ 5 callersFunctiongateUnflushedEdits
gateUnflushedEdits decides whether a SQLite→PostgreSQL migration may proceed when some items' stored bodies are BEHIND their live collaborative docume
cmd/pad/cmd_db.go:938
↓ 5 callersFunctiongaugeValueOrZero
gaugeValueOrZero pulls the gauge value or returns 0 when the underlying metric hasn't been touched yet.
internal/server/middleware_mcp_metrics_test.go:222
↓ 5 callersFunctiongetDecisionSettings
(t *testing.T, srv *Server, token string)
internal/server/decision_settings_test.go:80
↓ 5 callersMethodgetDocumentQ
getDocumentQ is the one document-row read behind GetDocument and getDocumentTx, differing only in executor.
internal/store/documents.go:245
↓ 5 callersMethodgetInstall
(t *testing.T)
internal/server/handlers_apps_webhooks_test.go:37
↓ 5 callersMethodgetWithHeader
getWithHeader is get that also returns the response headers (nil when no response arrived).
internal/cli/client.go:3172
↓ 5 callersMethodgetWorkspaceBySlugQ
getWorkspaceBySlugQ is GetWorkspaceBySlug against a caller-supplied executor, for callers already inside a transaction (BUG-2778: a pool read from ins
internal/store/workspaces.go:277
↓ 5 callersFunctiongo
(delta: number, then: (() => void) | null = null)
web/src/lib/stores/chatSurface.svelte.ts:338
↓ 5 callersFunctiongraphRequired
(field string, value *string)
internal/server/handlers_commitment_links.go:91
↓ 5 callersFunctiongroupDecode
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_workspace_groups_test.go:51
↓ 5 callersFunctiongroupNoLeak
(t *testing.T, rr *httptest.ResponseRecorder, ws *models.Workspace)
internal/server/handlers_workspace_groups_test.go:84
↓ 5 callersFunctionguardSchemaAhead
guardSchemaAhead refuses to start when the database contains migrations this binary doesn't ship — i.e. the DB is AHEAD of the binary, the tell-tale o
internal/store/migration_guard.go:62
↓ 5 callersFunctiongzipBytes
(t *testing.T, raw []byte)
internal/server/bug3354_import_bundle_bomb_test.go:228
↓ 5 callersMethodhandleControlMessage
handleControlMessage dispatches a TextMessage frame received from a peer: applier_apply_start / applier_ack (the designated-applier bracket, TASK-1257
internal/collab/room.go:940
↓ 5 callersMethodhandleCopyItemPreflight
handleCopyItemPreflight answers "what would this cross-workspace copy do?" without doing any of it. See the file header for the full contract.
internal/server/handlers_items_copy_preflight.go:627
↓ 5 callersFunctionhasDroppedField
hasDroppedField reports whether the copy's own response warned that key was dropped.
internal/server/handlers_items_copy_relation_test.go:271
↓ 5 callersFunctionhasSessionCookie
(rr *httptest.ResponseRecorder)
internal/server/bug3680_cross_site_signin_doors_test.go:48
↓ 5 callersFunctionhashRecoveryCodes
hashRecoveryCodes returns SHA-256 hex hashes of the given plaintext codes.
internal/server/handlers_2fa.go:557
↓ 5 callersFunctionhead
(s string, lines int)
internal/cmdhelp/md_test.go:371
↓ 5 callersFunctionheaders
(f: Fixture, agent?: string)
web/e2e/chat-thread-refs.spec.ts:26
↓ 5 callersFunctionhideMenu
()
web/src/lib/components/editor/block-drag-handle.ts:493
↓ 5 callersFunctionhydrate
( userId: string | null, ws: string, )
web/src/lib/stores/localIndexPersistence.ts:401
↓ 5 callersFunctionidPlaceholders
idPlaceholders returns "?,?,?" for n ids, and the ids as args.
internal/store/push_dispatch.go:87
↓ 5 callersFunctionimage
* A member of the viewer's set. `mime_type` defaults to an ALLOWLISTED type, * because the gate fails closed: a record without one is not viewable, s
web/src/lib/components/common/Lightbox.svelte.test.ts:147
↓ 5 callersFunctionimageRect
(page: Page, selector = VIEWER_IMAGE)
web/e2e/lib/attachment-viewer.ts:267
↓ 5 callersFunctionimportJSON
(t *testing.T, srv *Server, path string, export *models.WorkspaceExport, sessionToken string)
internal/server/handlers_workspace_mint_parity_test.go:40
↓ 5 callersFunctionimportKeyed
(srv *Server, name, key string, body io.Reader, token string)
internal/server/handlers_import_bundle_bug3475_test.go:47
↓ 5 callersFunctionimportanceOf
(r *needs.Row, it store.NeedsScoringItem, blocked int, decs []models.ItemDecision, qh map[string]string, now t
internal/server/needs_scorers.go:304
↓ 5 callersFunctionintPtr
(n int)
internal/cli/item_summary_test.go:11
↓ 5 callersFunctioninvitationEmailMatches
invitationEmailMatches lowercases ASCII letters only and compares the stored address byte-exactly. Both EqualFold and strings.ToLower equate distinct
internal/server/handlers_members.go:442
↓ 5 callersFunctioninviteByEmail
inviteByEmail invites addr through the HTTP door as the admin and returns the response body, the join code and the proof from the captured email.
internal/server/task3352_invitation_proof_test.go:24
↓ 5 callersFunctioninvitedSignupServer
BUG-2715, the signup door. The membership write's error was discarded and the invitation was consumed on the very next line, so a failure burned the c
internal/server/workspace_owner_compensation_test.go:239
↓ 5 callersFunctionipInCIDRs
(ip net.IP, cidrs []*net.IPNet)
internal/server/middleware_realip.go:153
← previousnext →3,101–3,200 of 28,840, ranked by callers