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
↓ 12 callers
Function
equalStrings
(a, b []string)
internal/mcp/catalog_test.go:407
↓ 12 callers
Function
exitedProcessPID
exitedProcessPID starts and reaps a trivial process, returning its pid, which is then dead. Skips on platforms without a shell.
internal/cli/session_arm_state_test.go:333
↓ 12 callers
Method
expect
(since int64, want ...string)
internal/server/workspace_access_notify_test.go:103
↓ 12 callers
Method
expr
Walks an expression in evaluation order; returns `safe` after it.
web/src/test/identityFenceAst.ts:1292
↓ 12 callers
Function
extractFieldValue
extractFieldValue pulls a named string field out of an item's fields JSON blob. Returns "" when the blob is empty, unparseable, or carries no string v
internal/store/status_transitions_backfill.go:17
↓ 12 callers
Function
extractFieldValue
extractFieldValue extracts a string value from a JSON fields string.
internal/server/handlers_dashboard.go:1644
↓ 12 callers
Function
fail
(kind: ImportTransportFailure)
web/src/lib/api/importUpload.ts:83
↓ 12 callers
Method
fanOutFromRedis
fanOutLocally appends to the replay buffer and sends to every live local subscriber, under the single mutex — see SubscribeAndReplaySince for why thos
internal/watchevents/redis_bus.go:1496
↓ 12 callers
Method
forcePast
forcePast moves the outstanding occurrence to the 28th at 09:00 UTC.
internal/store/schedule_copy_test.go:78
↓ 12 callers
Method
handleResponse
(resp *http.Response, result interface{})
internal/cli/client.go:3757
↓ 12 callers
Function
initialCursor
BUG-3240: the room elects ONE seeder, the only peer allowed to run the client's lazy seed. Two tabs deciding by awareness both seeded a fresh doc (mea
internal/collab/seed_grant_bug3240_test.go:16
↓ 12 callers
Function
isDateOnly
(value: string)
web/src/lib/calendar/presentation.ts:273
↓ 12 callers
Function
isSupported
()
web/src/lib/stores/localIndexPersistence.ts:181
↓ 12 callers
Function
itoa
itoa is strconv.Itoa renamed to keep test bodies readable when they're already heavy on ref-formatting.
internal/store/wiki_links_test.go:1745
↓ 12 callers
Method
job
(t *testing.T, schema string)
internal/materialize/materialize_test.go:62
↓ 12 callers
Function
linkWantError
(t *testing.T, err, sentinel error)
internal/schedule/links_test.go:61
↓ 12 callers
Function
listen
BUG-2736's Redis half. The counter is shared ACROSS processes, so no single instance can compute which incarnation of it an ID belongs to — the way Me
internal/events/redis_idspace_test.go:28
↓ 12 callers
Method
liveGen
liveGen reports the generation of the workspace's installed subscription, and whether there is one at all. Distinct from currentSubGen, which answers
internal/events/redis_heartbeat.go:388
↓ 12 callers
Function
mentionUser
TASK-3917 (IDEA-3906): comment_mentions is a derived index of which humans a live comment @-mentions. These tests pin the lifecycle, the population of
internal/store/task3917_comment_mentions_test.go:21
↓ 12 callers
Function
mintServiceToken
(t *testing.T, srv *Server, in testInstall)
internal/server/task3394_install_tokens_test.go:107
↓ 12 callers
Function
mount
(view: 'list' | 'table', sortMode: SortMode, sortReversed = false, preserveOrder = false)
web/src/lib/components/collections/renderedOrder.bug3492.svelte.test.ts:76
↓ 12 callers
Function
mount
(ref = 'i1')
web/src/lib/components/items/itemDetailIdentityLoad.svelte.test.ts:191
↓ 12 callers
Method
movedTo
movedTo parses the response and returns the moved_to block. It also asserts the disclosure rule's negative half: when the block is absent the KEY must
internal/server/item_moved_to_test.go:181
↓ 12 callers
Function
mustSave
(t *testing.T, cfg *Config)
internal/config/save_env_test.go:111
↓ 12 callers
Function
nativeRoles
()
internal/store/commitment_c1_test.go:21
↓ 12 callers
Function
newAppFixture
(t *testing.T, opts Options)
internal/appstore/items_test.go:42
↓ 12 callers
Function
newCloudEmailServer
newCloudEmailServer returns a cloud-mode server with a usable base URL and a capturing email sink, bootstrapped with one admin. This is the configurat
internal/server/handlers_verify_email_test.go:92
↓ 12 callers
Function
newDownloadAuthzFixture
(t *testing.T, srv *Server)
internal/server/handlers_attachments_download_authz_test.go:83
↓ 12 callers
Function
newHTTPResourceFetcher
newHTTPResourceFetcher wires an HTTPResourceFetcher over a test mux with a fixed authenticated user, mirroring the dispatch_http_*_test.go setup. The
internal/mcp/resources_http_test.go:24
↓ 12 callers
Method
newItem
(title string, assignee *string)
internal/server/task3939b_push_fixture_test.go:131
↓ 12 callers
Function
newRefResolverFixture
(t *testing.T)
internal/server/handlers_ref_resolver_test.go:51
↓ 12 callers
Function
newStorageFixture
(t *testing.T, plan string)
internal/store/task3619_storage_limit_test.go:23
↓ 12 callers
Function
newTestConfig
newTestConfig points DataDir at a fresh tmp dir and BrowserURL at the given test server. Most tests want both wired up together.
internal/cli/bootstrap_test.go:39
↓ 12 callers
Function
newTypesafe
(apiKey, model string)
internal/decision/typesafe.go:151
↓ 12 callers
Function
newUploadFixture
(t *testing.T)
internal/appstore/attachments_test.go:44
↓ 12 callers
Method
noLongerNeeded
(t *testing.T, i int)
internal/store/commitment_cancel_test.go:36
↓ 12 callers
Function
oauthIdentityRows
(t *testing.T, srv *Server, provider, subject string)
internal/server/task3351_social_claim_test.go:55
↓ 12 callers
Method
patch
(path string, body interface{}, result interface{})
internal/cli/client.go:3706
↓ 12 callers
Function
pgBounded
pgBounded is pgOnly followed by BoundRuntimePool(l).
internal/store/runtime_pool_test.go:44
↓ 12 callers
Function
pl4745WantLinked
(t *testing.T, got map[string]interface{}, provider string)
internal/server/task4745_pending_link_test.go:166
↓ 12 callers
Function
provisionCensus
(t *testing.T, e *appsEnv)
internal/server/handlers_apps_provision_test.go:55
↓ 12 callers
Method
publishWatchNotification
publishWatchNotification is the BEST-EFFORT publish path, and the one rule behind every non-push producer (BUG-2699). Bus.Publish reports acceptance
internal/server/handlers_watch_notify.go:156
↓ 12 callers
Function
readArmState
readArmState reads and unmarshals the current session's arm-state file. A missing file returns (nil, path, nil) — the common "not armed" case, not an
internal/cli/session_arm_state.go:336
↓ 12 callers
Function
readBinaryWithin
readBinaryWithin reads a single binary frame within d. Returns the payload bytes or fails the test on timeout.
internal/collab/manager_test.go:513
↓ 12 callers
Function
readBundle
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
↓ 12 callers
Function
recoveryRunner
(t *testing.T)
internal/server/materialize_recovery_test.go:62
↓ 12 callers
Function
resolveMintOptions
(opts []MintOption)
internal/store/limits.go:292
↓ 12 callers
Method
resolveVisibleItem
resolveVisibleItem resolves {itemSlug} and enforces read visibility, writing the error response itself. Returns nil when the caller should stop.
internal/server/handlers_reminders.go:355
↓ 12 callers
Method
restore
Focus the remembered element if it is still in the document, then forget it.
web/src/lib/a11y/focusReturn.ts:25
↓ 12 callers
Function
runHelp
runHelp invokes the help command with the given args and returns (stdout, stderr, error).
cmd/pad/help_cmdhelp_test.go:46
↓ 12 callers
Function
runTokenEditT
(client *cli.Client, id string, name, scopes *string, stdin string, interactive, asJSON bool)
cmd/pad/task4507_token_edit_test.go:82
↓ 12 callers
Function
sanitizeMarkdownHtml
(html: string, profile?: 'chat')
web/src/lib/utils/markdown.ts:216
↓ 12 callers
Method
sel
(t *testing.T, it *models.Item)
internal/store/milestone_test.go:56
↓ 12 callers
Method
serverCapabilities
serverCapabilities returns the cached definitive capability answer, probing once if there is none. definitive is false when the probe was indeterminat
internal/cli/client.go:617
↓ 12 callers
Function
set
(k, v)
plugin/hooks/register.js:822
↓ 12 callers
Method
setTxTimeoutsCtx
setTxTimeoutsCtx is setTxTimeouts with a context for the SET statements.
internal/store/tx_timeouts.go:51
↓ 12 callers
Function
snapshot
(s *Store, itemID, body string, cursor int64)
internal/store/bug3744_snapshot_behind_content_test.go:32
↓ 12 callers
Method
snooze
(t *testing.T, u *models.User, kind string, until time.Time, m *models.NeedsSnoozeMarker)
internal/store/needs_snooze_test.go:71
↓ 12 callers
Method
staleSession
staleSession is a session signed in 30 minutes ago, past the 10-minute window and after a totpUser's enrolment (dated an hour back).
cmd/pad/task4693_token_stepup_test.go:19
↓ 12 callers
Function
startToken
(t *testing.T, s *Server, u *models.User)
internal/server/bootstrap_start_test.go:43
↓ 12 callers
Function
stop
()
web/src/lib/api/importUpload.ts:78
↓ 12 callers
Function
strPtr
(s string)
cmd/pad/task4507_token_edit_test.go:75
↓ 12 callers
Method
targetOffset
(t *testing.T, i int)
internal/store/commitment_move_series_test.go:54
↓ 12 callers
Function
task3867EnableTOTP
(t *testing.T, e *tokenAuthEnv)
internal/server/task3867_token_access_test.go:60
↓ 12 callers
Method
tick
(t *testing.T)
internal/server/handlers_apps_delivery_test.go:65
↓ 12 callers
Function
tzCLI
(t *testing.T, handler http.HandlerFunc)
cmd/pad/task4101_timezone_test.go:24
↓ 12 callers
Function
wedge
wedge simulates the failure this unit exists to detect: the outbound probe keeps SUCCEEDING and nothing comes back. Simulated rather than produced, b
internal/watchevents/heartbeat_test.go:67
↓ 12 callers
Method
weeklyDeadline
weeklyDeadline is a native weekly row whose occurrence is Monday 09:00 UTC and whose deadline is two days later (Wednesday 09:00).
internal/store/commitment_move_deadline_test.go:27
↓ 11 callers
Method
AcceptWorkspaceInvitation
AcceptWorkspaceInvitation accepts an invitation in one transaction: the membership through addWorkspaceMemberTx, then the invitation's accepted_at. An
internal/store/workspace_members.go:180
↓ 11 callers
Method
Armed
Armed reports whether a tick would still consider this reminder.
internal/models/reminder.go:48
↓ 11 callers
Function
ConventionLibrary
ConventionLibrary returns all pre-defined convention categories with their conventions.
internal/collections/convention_library.go:27
↓ 11 callers
Function
CopyOutcomeUnknown
CopyOutcomeUnknown reports whether err leaves it genuinely unknown whether the copy committed. True for the server's 500 `copy_failed` and for any tra
internal/cli/client_items_copy.go:391
↓ 11 callers
Function
Decode
Decode parses an artifact's portable on-disk form back into an Artifact. It splits a leading "---\n ... \n---" frontmatter block from the body, unmar
internal/artifact/decode.go:21
↓ 11 callers
Method
EnsureAgentDM
EnsureAgentDM returns the owner's direct conversation with the agent, creating it (and its two member rows) on first use. created reports whether this
internal/store/conversations.go:98
↓ 11 callers
Function
EnvTokenFor
EnvTokenFor returns PAD_TOKEN when it may be sent to baseURL, and "" when baseURL is a server only .pad.toml chose (see NotePadTomlURLOverride). Every
internal/cli/env_token.go:69
↓ 11 callers
Method
Error
()
internal/server/handlers_items.go:961
↓ 11 callers
Method
ExpandAgenda
ExpandAgenda lists sc's occurrences with from <= At < to, plus its outstanding occurrence when a move placed it in the window. view is the zone a floa
internal/store/schedule_agenda.go:367
↓ 11 callers
Method
GetClient
===================================================================== fosite.ClientManager ===========================================================
internal/oauth/storage.go:145
↓ 11 callers
Method
GetInvitation
GetInvitation retrieves an invitation by ID.
internal/store/workspace_members.go:1500
↓ 11 callers
Method
GetUserByUsername
GetUserByUsername retrieves a user by username (case-insensitive).
internal/store/users.go:291
↓ 11 callers
Method
HasPassword
HasPassword returns true if the user has explicitly set a password that they can sign in with. OAuth-only users have a random placeholder hash stored
internal/models/user.go:174
↓ 11 callers
Method
InsertItemDecisions
InsertItemDecisions stores one evaluation's answers in one transaction. A row already present for the same (item, set, key, state) is kept, not replac
internal/store/decisions.go:597
↓ 11 callers
Method
Install
Install adds (or refreshes) the pad entry in the named agent's config. Returns the resolved path + whether the file was actually modified (false on a
internal/mcp/install.go:661
↓ 11 callers
Function
LineCounts
LineCounts returns how many lines a line-level diff of oldText → newText adds and removes (PLAN-2348 U2). It counts the way the web DiffView renders j
internal/diff/diff.go:170
↓ 11 callers
Method
ListPendingReminders
The window is BOUNDED because this list feeds a payload that is otherwise capped: every pending reminder became a suggestion prepended to a three-entr
internal/store/reminders.go:298
↓ 11 callers
Function
ListTemplates
ListTemplates returns all workspace templates that should be shown in pickers. Templates flagged Hidden are excluded.
internal/collections/templates.go:724
↓ 11 callers
Method
ListWorkspaceTabs
ListWorkspaceTabs returns the user's stored tab rows in bar order and their revision. It does not filter by visibility; see the note above.
internal/store/workspace_tabs.go:58
↓ 11 callers
Function
NormalizeAudience
RFC 8707 ("Resource Indicators for OAuth 2.0") audience-binding hook for pad's authorization server (PLAN-943 TASK-951 sub-PR B). fosite has no nativ
internal/oauth/audience.go:72
↓ 11 callers
Method
PIDFile
()
internal/config/config.go:1107
↓ 11 callers
Method
Plan
Plan computes a complete cascade without changing any input. Changes are ordered by hops, Schedule, Occurrence and Role; unchanged dates are omitted.
internal/schedule/links.go:344
↓ 11 callers
Method
Query
(string, ...any)
internal/models/schedule_links.go:8
↓ 11 callers
Function
RedactQuery
RedactQuery preserves diagnostic parameters and their order. Decode keys before checking them so percent-encoding cannot bypass credential redaction.
internal/logging/redaction.go:165
↓ 11 callers
Function
RenderItemMarkdown
RenderItemMarkdown is the writer-taking core of PrintItemMarkdown. Columns mirror the table renderer's — Ref · Title · Status · Priority · Collection
internal/cli/format_markdown.go:110
↓ 11 callers
Method
RepairNUL
RepairNUL rewrites every offending stored value, replacing each NUL with U+FFFD, and reports what it changed. PER-ROW TRANSACTIONS, not one big one.
internal/store/nulrepair.go:71
↓ 11 callers
Method
RestoreAttachment
RestoreAttachment clears the tombstone on an attachment and on its variants in the same workspace, and returns the live row. - No row with this id in
internal/store/attachments.go:1615
↓ 11 callers
Method
RestoreWorkspace
RestoreWorkspace un-soft-deletes a workspace: it clears deleted_at so the workspace (and every item/collection/member/attachment that was only transit
internal/store/workspaces.go:480
↓ 11 callers
Method
Serve
Serve accepts connections on ln until the server is shut down. Pair it with Listen, or with Prepare for a listener bound elsewhere; ListenAndServe is
internal/server/server.go:2995
↓ 11 callers
Method
SetAsideAndClearOpLog
(itemID string)
internal/collab/room.go:326
↓ 11 callers
Method
SetMCPConfig
SetMCPConfig installs the resolved MCP addressing and the PAD_MCP_ENABLED override. Called once at startup on every install, before the router is buil
internal/server/handlers_admin_mcp.go:30
↓ 11 callers
Method
SetMilestoneChild
SetMilestoneChild selects a child (kind "child") or waives it (kind "waiver", reason required) on the item's schedule. Selecting a selected child upda
internal/store/milestone.go:173
← previous
next →
1,401–1,500 of 31,685, ranked by callers