Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
31,685 in github.com/PerpetualSoftware/pad
⨍
Functions
31,685
◇
Types & classes
3,533
↓ 8 callers
Function
openSecondConnection
( userId: string | null, ws: string, )
web/src/test/idbHarness.ts:62
↓ 8 callers
Function
outstandingKey
outstandingKey is the key of the schedule's outstanding occurrence, "" when it has none.
internal/store/commitment.go:112
↓ 8 callers
Function
ownerSink
TASK-3408 (U10c): per-endpoint delivery state, the owner no-duplicate ledger, the per-install rate cap and the 24 h drop. ownerSink is an owner webhoo
internal/server/handlers_apps_u10c_test.go:23
↓ 8 callers
Function
packInterchangeBundle
packInterchangeBundle writes the entries as a tar.gz in the exporter's order: pad-export.json, the manifest, then the blobs by name.
internal/server/interchange_golden_test.go:159
↓ 8 callers
Function
parse
(iso: string)
web/src/lib/chat/grouping.ts:27
↓ 8 callers
Function
parseFieldKVP
(raw any)
internal/mcp/dispatch_http.go:1077
↓ 8 callers
Function
parseSchema
(collection: Collection)
web/src/lib/types/index.ts:3328
↓ 8 callers
Function
patchContent
BUG-3080: one browser tab's content writes to an item are ordered by the `client_write` counter it stamps on them. A write whose counter is below one
internal/server/bug3080_client_write_test.go:17
↓ 8 callers
Function
patternNames
(p: Node, out: Set<string>)
web/src/test/identityFenceAst.ts:726
↓ 8 callers
Function
persistDelta
( userId: string | null, ws: string, rows: ItemIndexRow[], cursor: string, includesUnparentedMetadata: bo
web/src/lib/stores/localIndexPersistence.ts:724
↓ 8 callers
Function
pickTemplateInteractive
pickTemplateInteractive presents a numbered list of visible templates grouped by category and returns the chosen template's Name. Returns the default
cmd/pad/templates_picker.go:72
↓ 8 callers
Function
pl4745CookieCleared
(rr *httptest.ResponseRecorder)
internal/server/task4745_pending_link_test.go:180
↓ 8 callers
Function
printBootstrapMarkdown
printBootstrapMarkdown renders a human-friendly summary of the bootstrap blob. Intended for quick inspection from the terminal; the canonical machine
cmd/pad/cmd_bootstrap.go:75
↓ 8 callers
Function
publishN
BUG-2736: a restarted process used to reuse its ID space, so a cursor issued by a PREVIOUS incarnation could be answered from the CURRENT one's buffer
internal/events/idspace_test.go:26
↓ 8 callers
Function
readFenceSource
(url: URL)
web/src/test/identityFenceSource.ts:770
↓ 8 callers
Function
readInterchangeGolden
readInterchangeGolden loads the golden directory as bundle entries.
internal/server/interchange_golden_test.go:130
↓ 8 callers
Function
recordingServer
(t *testing.T)
cmd/pad/item_stdin_blank_test.go:51
↓ 8 callers
Method
recurring
recurring makes item i's schedule daily at 09:00 UTC from its first day.
internal/store/commitment_gates_outcome_test.go:21
↓ 8 callers
Function
redactAttr
redactAttr is a backstop for structured application logs, including With attributes and groups. Call sites handling external input should still use th
internal/logging/redaction.go:267
↓ 8 callers
Function
redactLinkError
redactLinkError replaces a pure-layer error by one that cannot name a node or show a count (LinkError.Path carries node ids; LimitError.Got is Limit+1
internal/store/commitment_links.go:91
↓ 8 callers
Method
redeem
redeem is §6's POST /api/app/v1/context/redeem: no workspace in the path, the token's own.
internal/server/task3414_item_actions_test.go:78
↓ 8 callers
Function
registerGuardedDrivers
registerGuardedDrivers registers the wrapping driver names once per process. The base driver is taken from a throwaway sql.DB rather than from a driv
internal/store/nulguard.go:508
↓ 8 callers
Method
relationVisibility
relationVisibility binds the request-scoped half of the visibility rule into a callback the store can run on ITS executor. This is what lets the copy
internal/server/relation_referents.go:430
↓ 8 callers
Method
released
released asserts the item is back in u's active view with no not-mine.
internal/server/handlers_needs_not_mine_test.go:74
↓ 8 callers
Function
renderMarkedWithAttachments
( content: string, ctx: { resolver: AttachmentResolver; workspaceSlug: string; imageVariant?: 'thumb-s
web/src/lib/utils/markdown.ts:598
↓ 8 callers
Method
replaceRelationLinks
The materialised reverse index for `relation` field values (PLAN-2857 U5 / TASK-2997). See migration 088 for why it is materialised and why it is its
internal/store/relation_links.go:46
↓ 8 callers
Function
request
( path: string, options?: RequestInit, // Internal: how many automatic re-invocations after a 429 this call
web/src/lib/api/client.ts:1063
↓ 8 callers
Function
requirePostgresForConcurrency
requirePostgresForConcurrency skips a test unless a real PostgreSQL backend is configured. The parent-link TOCTOU races (BUG-2073) are Postgres-only:
internal/store/parent_link_concurrency_test.go:19
↓ 8 callers
Method
resolveAssignName
resolveAssignName rewrites a `--assign <name|email>` input into `assigned_user_id <uuid>` by hitting the workspace-members endpoint and finding a matc
internal/mcp/dispatch_http_advanced.go:31
↓ 8 callers
Method
resolveDone
(t *testing.T)
internal/store/milestone_test.go:72
↓ 8 callers
Method
resolveItemCollectionSlug
resolveItemCollectionSlug resolves a user-supplied collection slug against the workspace's ACTUAL collections, so a regular singular/plural pair works
internal/server/collection_resolve.go:48
↓ 8 callers
Method
resourcePath
(kind, id string)
internal/server/commitment_graph_access_test.go:24
↓ 8 callers
Function
result
(c *models.Commitment)
internal/store/milestone_test.go:77
↓ 8 callers
Function
resultText
(out *CallToolResult)
internal/mcp/scope_population_test.go:203
↓ 8 callers
Method
rewriteOwnedJSON
Ownership is inherited through maps, arrays and serialized JSON. An explicit foreign item snapshot terminates that inheritance for its entire subtree.
internal/store/redact_match.go:134
↓ 8 callers
Function
roomFor
(t *testing.T, mgr *RoomManager, itemID string)
internal/collab/restore_coord_test.go:31
↓ 8 callers
Function
runAttachmentDelete
(t *testing.T, stub *attachDeleteStub, stdin string, args ...string)
cmd/pad/attachment_delete_test.go:59
↓ 8 callers
Function
runEdit
runEdit runs `pad item edit TASK-5 [extra...]` against the stub with a fake editor that announces itself on stderr and appends a line. It returns stdo
cmd/pad/bug3035_edit_guard_test.go:87
↓ 8 callers
Function
runGroupByTestCommand
(t *testing.T, cmd *cobra.Command, args ...string)
cmd/pad/cmd_item_group_by_test.go:37
↓ 8 callers
Method
runRowlessBlobSweep
runRowlessBlobSweep reclaims blobs that NO attachments row references — the leak class the row-driven sweep above cannot see (BUG-2406). Every write p
internal/server/orphan_gc.go:375
↓ 8 callers
Function
runTwoFactorDisable
runTwoFactorDisable asks for whichever proof the account takes: its password, or, for an account with none (#1879), a current code or a recovery code.
cmd/pad/cmd_auth_2fa.go:194
↓ 8 callers
Function
runTwoFactorSetup
(client *cli.Client, in *bufio.Reader, out io.Writer)
cmd/pad/cmd_auth_2fa.go:86
↓ 8 callers
Function
runUpdate
(t *testing.T, args ...string)
cmd/pad/item_update_outcome_test.go:63
↓ 8 callers
Function
safeText
(raw: unknown)
web/src/lib/fields/fieldShape.ts:69
↓ 8 callers
Function
scanAttachment
scanAttachment scans a single row into a models.Attachment, handling nullables via *string / *int.
internal/store/attachments.go:83
↓ 8 callers
Function
scopeClause
scopeClause is the visibility predicate on the item alias, as " AND ..." (empty when scope is unrestricted). The same three-way shape as models.ItemLi
internal/store/reminders.go:254
↓ 8 callers
Function
seedBackfillAccess
(t *testing.T, s *Store, requestID, clientID, subject string, ts time.Time, sessionData string)
internal/store/oauth_connections_backfill_test.go:81
↓ 8 callers
Function
seedClient
seedClient creates an oauth_clients row so chains have something to FK against. Returns the client ID.
internal/store/connected_apps_test.go:42
↓ 8 callers
Function
seedDormantLog
seedDormantLog appends n frames to a fresh item, ages them past an hour ago, flushes the watermark to the last, and returns the item and its max id.
internal/store/task3531_compaction_test.go:20
↓ 8 callers
Function
seedPermissionWalk
()
web/e2e/lib/permission-walk.ts:173
↓ 8 callers
Function
seedStoredRow
seedStoredRow writes body to the registry and creates a live attachment row with an arbitrary stored MIME + filename attached to itemID. The row shape
internal/server/handlers_attachments_download_mime_test.go:58
↓ 8 callers
Function
seedUser
seedUser creates a user that subsequent oauth tokens can use as their `subject`.
internal/store/connected_apps_test.go:61
↓ 8 callers
Method
send
(data: Uint8Array)
web/src/lib/collab/wsProvider.svelte.ts:1614
↓ 8 callers
Function
serveAttachment
serve issues a GET (method="GET") or HEAD against a seeded row and returns the recorder. variant, when non-empty, is appended as ?variant=.
internal/server/handlers_attachments_download_mime_test.go:99
↓ 8 callers
Method
setBlockerStatus
(t *testing.T, it *models.Item, status string)
internal/store/commitment_gates_outcome_test.go:292
↓ 8 callers
Method
setLimits
setLimits updates the bounds in place. In place rather than by replacing the gate, because a replacement silently OVER-GRANTS capacity: the new gate
internal/server/stream_admission.go:68
↓ 8 callers
Function
setSortOrder
(t *testing.T, s *Store, id string, v int)
internal/store/items_new_item_top_test.go:44
↓ 8 callers
Method
skipAs
(t *testing.T, i int, actor string)
internal/store/commitment_cancel_test.go:28
↓ 8 callers
Method
snapshotBeforeMigrate
snapshotBeforeMigrate writes a consistent snapshot of the live SQLite database to <db>.pre-<VERSION>-m<NNN> (see snapshotPathFor) before any pending m
internal/store/migration_guard.go:116
↓ 8 callers
Function
sniffISOBMFF
sniffISOBMFF returns the allowlisted MIME for an ISO-BMFF file this package recognises — a still image by any of its brands, or an audio/video contain
internal/attachments/mime_isobmff.go:124
↓ 8 callers
Method
softDelete
A link whose parent or child item is soft-deleted (TASK-4418). Deleting the link must work; changing it, and any cascade through it, must not reach th
internal/store/commitment_links_deleted_end_test.go:15
↓ 8 callers
Function
softDeleteWorkspaceAt
softDeleteWorkspaceAt stamps a workspace's deleted_at to a specific time so the sweep's age cutoff can be exercised deterministically — there's no API
internal/server/workspace_purge_test.go:36
↓ 8 callers
Method
specialRoutes
specialRoutes maps cmdKeys to the dispatcher methods that handle them in place of a routeTable mapper — commands whose HTTP path needs read-modify-wri
internal/mcp/dispatch_http.go:480
↓ 8 callers
Function
splitAfterManifest
BUG-3184, both halves. (1) ONE DOOR. `read tar entry` was the one importBundle error return that dropped the workspace it had already minted, so the
internal/server/handlers_import_bundle_bug3184_test.go:40
↓ 8 callers
Method
sseSubscriberStillHasAccess
sseSubscriberStillHasAccess re-runs the workspace access check for an already-subscribed SSE client. Returns false when the caller can no longer see t
internal/server/handlers_events.go:1060
↓ 8 callers
Function
stamped
(content, tab string, n int64)
internal/server/bug3080_client_write_test.go:25
↓ 8 callers
Function
statBlob
(t *testing.T, srv *Server, key string)
internal/server/orphan_gc_test.go:761
↓ 8 callers
Function
stepUpUser
(t *testing.T, s *store.Store, email string)
internal/store/step_up_test.go:29
↓ 8 callers
Method
stillPending
(t *testing.T, inv *models.WorkspaceInvitation)
internal/server/handlers_invitation_accept_limit_test.go:51
↓ 8 callers
Method
storedRelationKey
storedRelationKey is storedRelation for a key other than owner_ref. Same reason it reads the database rather than the response: a handler that echoed
internal/server/relation_referents_doors_test.go:160
↓ 8 callers
Method
target
()
internal/store/schedules.go:270
↓ 8 callers
Function
task4918Load
(t *testing.T, manifest string, bodies map[string]string)
internal/collections/task4918_template_refs_test.go:27
↓ 8 callers
Function
testServerPostgres
testServerPostgres returns a *Server backed by an ISOLATED PostgreSQL database (t.Skip unless PAD_TEST_POSTGRES_URL is set) with collab + an event bus
internal/server/handlers_item_versions_test.go:332
↓ 8 callers
Method
tick
(t *testing.T)
internal/decision/attention_test.go:265
↓ 8 callers
Method
timeout
timeout is opTimeout with the production default applied, so a zero-valued struct (a test that only set the fields it cared about) still bounds its ca
internal/server/session_presence_redis.go:301
↓ 8 callers
Function
tokenAllowedWorkspaceMatches
tokenAllowedWorkspaceMatches reports whether the OAuth token's workspace allow-list (set at consent time, TASK-952) permits the given workspace slug.
internal/server/middleware_auth.go:1335
↓ 8 callers
Function
tombstone
(t *testing.T, srv *Server, wsID, id string)
internal/server/handlers_storage_restore_authz_test.go:56
↓ 8 callers
Method
totpEnabled
(t *testing.T, id string)
cmd/pad/cmd_auth_2fa_test.go:86
↓ 8 callers
Function
transformAs
transformAs POSTs a rotate as a specific user + workspace role, bypassing the auth middleware the same way downloadAs does.
internal/server/handlers_attachments_transform_authz_test.go:95
↓ 8 callers
Function
triStateEnv
triStateEnv sets up a live socket-keyed session in an auto_arm=true repo: HOME + PAD_DATA_DIR point at temp dirs, CLAUDE_CODE_MESSAGING_SOCKET is a re
internal/cli/session_arm_tristate_test.go:14
↓ 8 callers
Function
twoMsgs
()
internal/notify/gateway_test.go:21
↓ 8 callers
Method
unusable
unusable reports whether f cannot run work: finished, or not made by BeginFenced.
internal/store/fenced_tx.go:91
↓ 8 callers
Function
updateFrame
updateFrame is a well-framed sync update carrying payload. The relay never decodes the payload, so its bytes need only be distinct per call site.
internal/store/bug3124_content_bearing_test.go:33
↓ 8 callers
Function
uploadItemFixture
uploadItemFixture creates a workspace + collection + item for the item_id-invariant tests, returning the workspace slug and the item.
internal/server/handlers_attachments_test.go:369
↓ 8 callers
Method
userCount
visibleCollectionIDs returns the set of collection IDs the current user can see in the given workspace. Returns nil if the user has "all" access (no f
internal/server/server.go:3620
↓ 8 callers
Function
variantRow
variantRow looks up a derived variant of parentID. GetAttachmentVariant is workspace-scoped (PLAN-2391 DR-16), so the scope is read back off the paren
internal/server/handlers_attachments_thumbnails_test.go:29
↓ 8 callers
Function
viewerDialog
(page: Page, name: string)
web/e2e/lib/attachment-viewer.ts:209
↓ 8 callers
Function
waitFor
waitFor polls until cond holds, so a test asserts an outcome rather than a sleep. Fails the test rather than hanging.
internal/events/redis_heartbeat_test.go:128
↓ 8 callers
Function
wantStatus
(t *testing.T, leg string, rr *httptest.ResponseRecorder, code int)
internal/server/bug3028_relation_blank_test.go:62
↓ 8 callers
Function
webFS
(files map[string]string)
internal/server/web_build_identity_test.go:9
↓ 8 callers
Function
withAppContextForTest
(r *http.Request, ac *appContext)
internal/server/task3401_app_api_test.go:668
↓ 8 callers
Function
withOwnerVerdict
BUG-2771: an arm-state file whose owner cannot be probed (the unknown verdict) used to be treated as dead: reaped on the next read, which handed the d
internal/cli/session_arm_unverifiable_bug2771_test.go:21
↓ 8 callers
Function
withStdin
BUG-3100 (public mirror: GitHub #1391). `--stdin` with a blank body used to succeed: `item create` minted a content-less item and `item update` REPLAC
cmd/pad/item_stdin_blank_test.go:25
↓ 8 callers
Function
write
(key: string, value: string | null)
web/src/lib/chat/chatRecords.ts:31
↓ 8 callers
Method
writeInstallLifecycleError
(w http.ResponseWriter, err error)
internal/server/handlers_apps_lifecycle.go:49
↓ 8 callers
Function
writeScheduleNotFound
writeScheduleNotFound is the 404 for an item with no schedule.
internal/server/handlers_schedules.go:136
↓ 7 callers
Method
#guard
A guard for one async step: false once the thread was reopened, disposed or re-fenced.
web/src/lib/stores/chatThread.svelte.ts:203
↓ 7 callers
Method
#publishAfterWrite
Publish after a pending change; the window beyond stays beyond.
web/src/lib/stores/chatThread.svelte.ts:403
↓ 7 callers
Method
AddCreatedWorkspaceIfPermitted
AddCreatedWorkspaceIfPermitted inserts a (request_id, workspace_id) row with added_by='agent-create', but ONLY while the connection still carries may_
internal/store/oauth_connections.go:566
↓ 7 callers
Function
AppItemETag
AppItemETag is the opaque concurrency token an app sees: HMAC-SHA256 over (install, item, seq) under a SERVER-ONLY key, truncated to 128 bits. The app
internal/store/fenced_items.go:105
← previous
next →
2,201–2,300 of 31,685, ranked by callers