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
↓ 7 callers
Function
scriptEnvHazard
scriptEnvHazard reports why env is unsafe for an install-refresh run: - no port the script would resolve without falling back to its default (PAD_PORT
internal/buildtools/bug4066_harness_guard_test.go:133
↓ 7 callers
Function
seedAccess
seedAccess inserts an access-token row in the chain identified by requestID. ts is the requested_at timestamp; sessionData + scopes land on the row. R
internal/store/connected_apps_test.go:77
↓ 7 callers
Function
seedDormantCorpusLog
TASK-3531 U3/U4: the op-log GC tick compacts a dormant, flushed op-log into one snapshot instead of letting the sweep delete it; the sweep keeps it; a
internal/server/task3531_compaction_test.go:27
↓ 7 callers
Method
seedGrantee
seedGrantee creates a throwaway user to be the recipient of a grant, for tests that need a real grant/link ID on a hidden or visible resource (BUG-192
internal/server/handlers_grant_visibility_test.go:128
↓ 7 callers
Function
seedSearchFiller
(t *testing.T, s *Store, wsID, colID string, n int, ts time.Time)
internal/store/search_rank_test.go:19
↓ 7 callers
Method
seedSetAside
BUG-3244 ruling 2: rows a schema rebuild set aside refuse EVERY content write, token or not, unless it sends overwrite_pending_edits, which discards t
internal/server/bug3244_set_aside_guard_test.go:20
↓ 7 callers
Function
selectSortCollection
BUG-4400: sorting on a select field ordered by the option TEXT, so `priority:desc` put every medium before every low before every high. Property: prio
internal/store/bug4400_select_sort_test.go:18
↓ 7 callers
Function
sendSync
(t *testing.T, c *websocket.Conn, payload byte)
internal/collab/manager_test.go:494
↓ 7 callers
Function
seqPtr
(v int64)
internal/store/item_workspace_moves_test.go:68
↓ 7 callers
Function
serve
(t *testing.T, h http.HandlerFunc)
internal/notify/gateway_test.go:27
↓ 7 callers
Method
serverHonorsKeys
serverHonorsKeys reports whether this server replays a keyed retry (TASK-3585). An older server ignores op_key, so retrying there could apply a write
internal/cli/client.go:1394
↓ 7 callers
Method
session
(t *testing.T, u *models.User)
internal/server/bug3687_activity_visible_page_test.go:61
↓ 7 callers
Function
setUmask022
(t *testing.T)
internal/config/perms_unix_test.go:12
↓ 7 callers
Function
settle
()
web/src/routes/(console)/needs/needsPage.svelte.test.ts:102
↓ 7 callers
Function
setupSkillTest
BUG-3466: pad init used to rewrite every installed skill file that differed from the running binary's, so a team's edit was lost and an older pad rewr
cmd/pad/bug3466_skill_overwrite_test.go:20
↓ 7 callers
Function
sha256Hex
sha256Hex returns the hex-encoded sha256 of b. The FS storage backend keys blobs by this exact form, so the value also serves as the storage_key suffi
internal/server/handlers_attachments_thumbnails.go:406
↓ 7 callers
Function
shiftDay
(dateISO: string, days: number)
web/src/lib/calendar/presentation.ts:20
↓ 7 callers
Function
show
(page: Page, username: string, slug: string, count: number)
web/e2e/lib/workspace-tabs.ts:84
↓ 7 callers
Method
since
since returns all buffered events with ID > sinceID, in chronological order. Returns nil when this buffer cannot vouch for completeness across the req
internal/events/bus.go:508
↓ 7 callers
Function
skipUnlessSQLite
(t *testing.T, s *Store)
internal/store/import_fts_test.go:53
↓ 7 callers
Function
sortOrderOf
(t *testing.T, s *Store, id string)
internal/store/items_new_item_top_test.go:35
↓ 7 callers
Function
stamp
* The server time to vouch for a full reload with. Take it BEFORE the reload * reads, and hand it to `markSynced` once they succeed (BUG-3207). *
web/src/lib/services/sync.svelte.ts:355
↓ 7 callers
Method
stamp
(t *testing.T, body map[string]any)
internal/server/bug3124_watermark_stamp_test.go:49
↓ 7 callers
Method
start
(ctx context.Context, agent string, ensure func(context.Context, string) error)
cmd/pad/cmd_watch_chat_ensure.go:37
↓ 7 callers
Function
stillThere
BUG-3336: account deletion is irreversible and soft-deletes every owned workspace. Confirm-only (no password) is for the one account that has no passw
internal/server/bug3336_account_delete_test.go:19
↓ 7 callers
Method
stop
stop ends the worker, cancelling a publish it is blocked in (a stalled transport otherwise kept its worker and queue alive after being replaced).
internal/server/access_kick.go:199
↓ 7 callers
Function
stripReservedUnparentedViewFilter
(config string)
internal/server/handlers_views.go:321
↓ 7 callers
Function
stripV2
(b *models.WorkspaceExport)
internal/store/commitment_bundle_v2_test.go:75
↓ 7 callers
Function
stubReaderNS
stubReaderNS pins the reader's PID namespace for one test.
internal/cli/session_owner_pidns_linux_test.go:213
↓ 7 callers
Function
stubs
()
web/src/lib/components/items/itemDetailIdentityLoad.svelte.test.ts:189
↓ 7 callers
Function
swapApplierTimeouts
(first, retry time.Duration)
internal/collab/applier_test.go:685
↓ 7 callers
Method
take
()
cmd/pad/chatgpt_catalog_test.go:90
↓ 7 callers
Function
task3389Block
(t *testing.T, ev pendingEvent)
internal/store/task3389_app_projection_test.go:45
↓ 7 callers
Function
task3392Member
(t *testing.T, s *Store, workspaceID, botID, role string)
internal/store/task3392_bot_principal_test.go:68
↓ 7 callers
Function
task3397Plan
(inst *InstallUpgradeState)
internal/store/task3397_upgrade_test.go:36
↓ 7 callers
Function
task3462Update
(srv *Server, ws, ref string, body any)
internal/server/task3462_builtin_update_test.go:66
↓ 7 callers
Function
task3617Path
(slug string, item models.Item)
internal/server/task3617_verifications_test.go:25
↓ 7 callers
Function
testTempScope
(t *testing.T)
internal/buildtools/bug4066_harness_guard_test.go:71
↓ 7 callers
Function
textResult
textResult is a successful result carrying plain text.
internal/mcp/result.go:17
↓ 7 callers
Method
titles
(t *testing.T, p models.ItemListParams)
internal/store/items_field_range_test.go:91
↓ 7 callers
Function
todayIn
(zone: string, now = new Date(Date.now()))
web/src/lib/calendar/presentation.ts:16
↓ 7 callers
Method
touch
touch inserts or refreshes an entry. No-op on empty id (defensive: callers pre-filter, but a missing header should never bump anything). Fires onChang
internal/server/middleware_mcp_session.go:137
↓ 7 callers
Method
trackMCPSession
(reqHeader, respHeader func(string) string, method string, httpStatus int, userID string)
internal/server/middleware_mcp_session.go:369
↓ 7 callers
Function
unescapeDocLinks
(markdown: string)
web/src/lib/utils/markdown.ts:725
↓ 7 callers
Function
updateFrame
(update: Uint8Array)
web/src/lib/collab/materializer/replay.ts:59
↓ 7 callers
Function
updatedRowsFor
updatedRowsFor returns the "updated" activity rows on the document, as ListDocumentActivity reports them — which means a default page of 20, ordered b
internal/store/activities_debounce_race_test.go:52
↓ 7 callers
Function
uploadDistinctPNGs
(t *testing.T, srv *Server, slug string, filenames []string)
internal/server/task4844_export_entry_limit_test.go:57
↓ 7 callers
Method
valid
()
internal/store/fenced_items.go:45
↓ 7 callers
Function
validSchedExport
validSchedExport is a schedule that imports, for the malformed cases to break one field of.
internal/store/schedule_carry_test.go:240
↓ 7 callers
Function
validateConversationID
TASK-4038 r6: malformed ids name no conversation; reject them before SQL.
internal/store/conversations.go:88
↓ 7 callers
Method
validateSessionCookie
validateSessionCookie validates a session cookie and returns the user if valid, nil otherwise. A User-Agent change is logged but NOT rejected — this m
internal/server/handlers_auth.go:313
↓ 7 callers
Function
verifyShareAsset
verifyShareAsset returns true iff sig is a currently-valid signature for (linkID, attachmentID, exp) — constant-time compared and not yet expired. Any
internal/server/handlers_share_attachments.go:103
↓ 7 callers
Function
walk
(cur, root *cobra.Command, doc *Document, depth, maxDepth int)
internal/cmdhelp/json.go:111
↓ 7 callers
Function
wallToInstant
(wall: string, zone: string)
web/src/lib/calendar/presentation.ts:27
↓ 7 callers
Function
withClosedStdin
withClosedStdin replaces os.Stdin with a pipe whose write end is already closed, so term.IsTerminal(stdin) is false and any read hits EOF immediately
cmd/pad/workspace_init_noninteractive_test.go:46
↓ 7 callers
Method
withTokenPin
withTokenPin confines ctx to the workspace a user-owned token is pinned to. It records the pin, and sets the one-slug allow-list [workspace slug] that
internal/server/pinned_token.go:40
↓ 7 callers
Function
withUndecodableManifest
BUG-2709 (the parent filing of the husk class): the bundle import's mid-stream KEEP path. When a plain, non-validation error fires after pad-export.js
internal/server/handlers_import_bundle_partial_test.go:46
↓ 7 callers
Function
wrapItemNotFound
wrapItemNotFound rewrites a bare "not_found" APIError from the item-by-ref endpoints into a message that echoes the failing ref and workspace, so `pad
internal/cli/client.go:727
↓ 7 callers
Function
writeAppNotFound
(w http.ResponseWriter, what string)
internal/server/app_api_read.go:135
↓ 7 callers
Function
writeAppUnauthorized
(w http.ResponseWriter)
internal/server/app_api.go:252
↓ 7 callers
Function
writeAttachmentNotFound
writeAttachmentNotFound is the single denial writer for the blob read path. Every authorization-dependent refusal — attachment missing, wrong workspac
internal/server/handlers_attachments.go:569
↓ 7 callers
Function
writeBusy
writeBusy answers a request the database was too busy for (a statement, lock or idle timeout, a deadlock: store.IsDBBusy; or a client-side interruptio
internal/server/server.go:3052
↓ 7 callers
Function
writeReminderManaged
writeReminderManaged answers 409 reminder_managed. scheduleID is "" when the caller only has the store's refusal (a caller that skipped the door).
internal/server/handlers_reminders.go:454
↓ 7 callers
Function
writeSkill
writeSkill writes a tool's /pad skill through cli.WriteSkill, the one door that keeps an edited skill and refuses to downgrade a newer one (BUG-3466),
cmd/pad/skill_write.go:17
↓ 7 callers
Function
writeWorkspaceGroupError
(w http.ResponseWriter, err error)
internal/server/handlers_workspace_groups.go:48
↓ 6 callers
Method
#cancelRetry
()
web/src/lib/stores/chat.svelte.ts:159
↓ 6 callers
Method
#enqueue
(current: () => boolean, run: () => Promise<void>)
web/src/lib/stores/chatThread.svelte.ts:297
↓ 6 callers
Method
#list
* Every list read goes through here. The page's refs are absorbed only while * `current` holds, so a page that resolves after a reopen, a dispose or
web/src/lib/stores/chatThread.svelte.ts:214
↓ 6 callers
Method
AdoptLegacyBuiltins
AdoptLegacyBuiltins gives items made before built-in origins were recorded (TASK-3462 U4) the origin their exact title names, with no seed version, so
internal/store/builtin_legacy.go:44
↓ 6 callers
Method
AllowedAudience
AllowedAudience returns the canonical resource URL the server is configured to accept. Sub-PR C's /authorize handler reads this to reject mismatched `
internal/oauth/server.go:327
↓ 6 callers
Method
AppPrincipalForInstall
AppPrincipalForInstall returns the install's bot: the kind='app' user at the address CreateAppUserTx gave it, or nil when there is none.
internal/store/install_clients.go:553
↓ 6 callers
Function
Apply
Apply runs edits in order against body, each against the result of the ones before it, and returns the new body. All or nothing: the first edit that c
internal/bodypatch/bodypatch.go:59
↓ 6 callers
Function
ApplyWithContext
ApplyWithContext is Apply, also returning each edit with its context. The context of edit i is read from the body as it stood right after edit i, whic
internal/bodypatch/bodypatch.go:151
↓ 6 callers
Method
AssertUnchanged
(t *testing.T, before string)
internal/store/storetest/ref_prefix.go:85
↓ 6 callers
Method
AttachAttachmentToItem
AttachAttachmentToItem binds an UNATTACHED attachment (item_id NULL, as `pad attachment upload -` leaves it) to a live item in the same workspace, and
internal/store/attachments.go:330
↓ 6 callers
Method
BackfillRelationLinks
BackfillRelationLinks derives `item_relation_links` for every live item. Called from server startup after migrations. ITS GUARD IS A COMPLETION MARKE
internal/store/relation_links_backfill.go:75
↓ 6 callers
Method
BaseURL
BaseURL returns the base URL for the API. If URL is set (via config, --url flag, or PAD_URL), it takes precedence. Otherwise, constructs from host and
internal/config/config.go:1047
↓ 6 callers
Function
BoundRuntimePool
BoundRuntimePool is boundRuntimePool as a package function. It is not a method on purpose: scripts/ci-web-census treats an exported *Store method that
internal/store/runtime_limits.go:79
↓ 6 callers
Function
BuildCommentState
BuildCommentState builds and serialises one comment's state.
internal/decision/comment_state.go:30
↓ 6 callers
Method
CancelCustomer
CancelCustomer asks pad-cloud to cancel every active Stripe subscription for customerID and then delete the Stripe customer object. Used by handleDele
internal/server/server.go:1052
↓ 6 callers
Method
ClaimSoftDeletedAttachment
ClaimSoftDeletedAttachment is the orphan GC's atomic claim for a soft-deleted row past its grace window (BUG-2415): the DELETE re-asserts deleted_at i
internal/store/attachments.go:1269
↓ 6 callers
Method
Close
Close stops every renewal goroutine and waits for them. It is NOT part of the SessionPresence interface — MemorySessionPresence has nothing to shut do
internal/server/session_presence_redis.go:815
↓ 6 callers
Function
CollectionAwaitsHumanJSON
IDEA-3906 / TASK-3919: an awaits_human collection holds ASKS of a person (a human-tasks or asks collection). The needs-you router treats an open, assi
internal/models/awaits_human.go:24
↓ 6 callers
Function
CollectionCompletedWorkValues
CollectionCompletedWorkValues unmarshals a collection's persisted schema and settings JSON (best-effort; parse failures fall back the same way Termina
internal/models/terminal.go:345
↓ 6 callers
Method
CompactItemOpLog
CompactItemOpLog replaces the op-log rows the snapshot was built from (ids, every row the job read, oldest first) with the single snapshot frame, in o
internal/store/yjs_compaction.go:61
↓ 6 callers
Function
ConvertGeneric
ConvertGeneric converts an HTML document into markdown by first running go-readability to strip chrome, navigation, and ads, then piping the cleaned H
internal/urlimport/generic.go:37
↓ 6 callers
Method
CountPendingContentRowsTx
CountPendingContentRowsTx counts the item's content-bearing op-log rows above its flush watermark, inside tx. Zero means content_state would read clea
internal/store/content_pending_guard.go:59
↓ 6 callers
Method
CreateInstallClientTx
CreateInstallClientTx creates the install's one confidential client and returns its id and secret. The secret is returned here only; its hash is store
internal/store/install_clients.go:201
↓ 6 callers
Method
CreatePKCERequest
============================================================ PKCE request sessions (handler/pkce/storage.go PKCERequestStorage) ======================
internal/store/oauth.go:645
↓ 6 callers
Function
DecideSkillWrite
DecideSkillWrite decides what to do with a tool's skill file. expected is FormatForTool's unstamped output for this pad; running is this pad's version
internal/cli/skillstamp.go:106
↓ 6 callers
Method
DeleteAccountAtomicReport
DeleteAccountAtomicReport is DeleteAccountAtomic that also reports the workspaces whose grants the user had ISSUED, read from the rows the transaction
internal/store/users.go:1575
↓ 6 callers
Method
DeleteAccountAtomicReportCtx
DeleteAccountAtomicReportCtx is DeleteAccountAtomicReport under ctx; see DeleteAccountAtomicCtx.
internal/store/users.go:1581
↓ 6 callers
Method
DeleteItemLink
(id string)
internal/store/items.go:4535
↓ 6 callers
Function
DetectTools
DetectTools returns the tools that appear to be in use, based on any of: a project-local directory, a home-directory install, or a binary on PATH.
internal/cli/agents.go:170
↓ 6 callers
Method
DrainInstallDeliveries
DrainInstallDeliveries is the wait between the phases: until the install has no unexpired in-flight webhook delivery row, in database time (DOC-3371 §
internal/store/app_lifecycle.go:149
↓ 6 callers
Method
DropOwedDelivery
DropOwedDelivery decides a delivery that is past the drop age. In ONE transaction that takes the install row first, as admission does, it runs admissi
internal/store/app_delivery.go:184
↓ 6 callers
Method
EmitBulkHeaderEvent
EmitBulkHeaderEvent writes the batch header for one handler-path bulk operation, in its own transaction after the member loop. WHY THIS IS NOT A TRAN
internal/store/event_outbox.go:2357
↓ 6 callers
Function
EmitJSON
EmitJSON walks the command tree below `target`, builds a cmdhelp v0.1 Document, and writes it to w as indented JSON terminated by a newline. `root` M
internal/cmdhelp/json.go:73
↓ 6 callers
Method
EncryptWebhookSecretsAtRest
EncryptWebhookSecretsAtRest encrypts plaintext webhook HMAC secrets (BUG-2057). Called on startup when an encryption key is configured. It handles two
internal/store/encryption.go:190
↓ 6 callers
Function
EnvConfig
EnvConfig reads the decision-provider settings from the environment. The variables follow the PAD_MAILEROO_API_KEY pattern in internal/config: PAD_DE
internal/decision/config.go:67
← previous
next →
2,601–2,700 of 31,685, ranked by callers