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
↓ 2 callers
Function
newFromTemplate
newFromTemplate builds (once) and copies the template DB, then opens the copy via store.New. Shared by NewSQLite and NewSQLiteUnmanaged; the only diff
internal/store/storetest/storetest.go:76
↓ 2 callers
Function
newGraphHTTPOn
(t *testing.T, srv *Server, roles ...models.CommitmentRolesInput)
internal/server/commitment_graph_entry_test.go:25
↓ 2 callers
Function
newHTTPServer
newHTTPServer builds the HTTP server Prepare serves, without listening, so a test can read the timeouts the request path actually runs under (TASK-427
internal/server/server.go:2975
↓ 2 callers
Method
newID
()
internal/materialize/supervisor.go:765
↓ 2 callers
Function
newImportOutcomeRegistry
()
internal/server/import_outcomes.go:69
↓ 2 callers
Function
newInstallClientSecret
()
internal/store/install_clients.go:184
↓ 2 callers
Function
newInvitationSecrets
newInvitationSecrets generates an invitation's join code and its mailbox-only proof, each a random 128-bit secret, with the hashes stored in their pla
internal/store/workspace_members.go:1261
↓ 2 callers
Function
newItemCopyDeps
newItemCopyDeps binds itemCopyDeps to a real client. Its own function so a test can check the binding, not just runItemCopy (CONVE-19, TASK-4131).
cmd/pad/cmd_item.go:2208
↓ 2 callers
Function
newLinkServer
(t *testing.T, slug string)
cmd/pad/task3612_link_repoint_test.go:32
↓ 2 callers
Function
newMCPStreamWriter
(stream *sseStream)
internal/server/mcp_stream_keepalive.go:66
↓ 2 callers
Function
newMaterializerFromEnv
newMaterializerFromEnv builds the op-log recovery worker's Materializer (TASK-2198 U4): a materialize.Supervisor configured from PAD_MATERIALIZE_TIMEO
cmd/pad/cmd_materialize.go:45
↓ 2 callers
Function
newNeedsCollInfo
newNeedsCollInfo parses one collection for the router. vals are the done field's waiting statuses as declared; a system collection has none and is nev
internal/server/handlers_me_needs.go:337
↓ 2 callers
Method
newNeedsMemo
(wsID string)
internal/server/needs_scorers.go:104
↓ 2 callers
Function
newObservedRoomManager
newObservedRoomManager builds the collab room manager with its metrics observer attached (TASK-3501). Extracted for the same reason as newObservedEven
cmd/pad/cmd_server.go:1518
↓ 2 callers
Function
newOpKey
()
web/src/lib/opKey.ts:10
↓ 2 callers
Function
newPostgres
(t *testing.T, limits store.RuntimeLimits)
internal/store/storetest/postgres.go:84
↓ 2 callers
Function
newProjectionFixture
(t *testing.T)
cmd/pad/chatgpt_projection_test.go:39
↓ 2 callers
Function
newPublishFailingRedisBus
(t *testing.T)
internal/events/redis_unpublished_id_test.go:109
↓ 2 callers
Function
newQuotaFixture
--- Quota (DR-16) ---------------------------------------------------------- quotaFixture wires a free-tier owner with an items_per_workspace override
internal/store/items_cross_workspace_copy_test.go:920
↓ 2 callers
Function
newRawServer
newRawServer is for the cases needing control of the raw response — here, a Content-Length that lies — which the shared fake cannot express.
internal/decision/review_test.go:401
↓ 2 callers
Function
newRelationTargetsFixture
(t *testing.T)
internal/mcp/dispatch_http_relation_targets_test.go:37
↓ 2 callers
Function
newRemindCmd
(alias bool)
cmd/pad/cmd_reminder.go:31
↓ 2 callers
Function
newRenameCascadeTooLargeError
(newTitle string, retained int64)
internal/store/documents.go:822
↓ 2 callers
Method
newRule
newRule builds the library's rule generator alone, budgeted at steps (TASK-4100). The elapsed path fast-forwards it to base so the distance from Start
internal/schedule/engine.go:122
↓ 2 callers
Function
newScopeFixture
(t *testing.T, s *store.Store)
internal/store/bug2631_scope_collection_test.go:23
↓ 2 callers
Function
newStatusError
(code int, kind, message string)
internal/server/handlers_collab.go:546
↓ 2 callers
Function
newStorageInfoCache
(ttl time.Duration)
internal/server/handlers_storage.go:46
↓ 2 callers
Function
newSubscribeProxy
newSubscribeProxy is the constructor behind both proxies. Every field the forward goroutine reads is set BEFORE the accept loop starts: a gate assigne
internal/events/redis_subscribe_confirm_test.go:60
↓ 2 callers
Function
newTCPCutter
(t *testing.T, backend string)
internal/events/redis_reconnect_test.go:31
↓ 2 callers
Function
newUnroutedFixture
(t *testing.T, srv *Server)
internal/server/unrouted_ask_warning_test.go:28
↓ 2 callers
Function
newestItemVersion
newestVersion is the newest item version row's stored form.
internal/store/bug3839_invalid_utf8_version_test.go:47
↓ 2 callers
Function
newestNeedsSecond
newestNeedsSecond is the newest normalised second among stamps ("" for none). The normalised form is fixed-width UTC, so it orders as text.
internal/store/needs_snooze.go:92
↓ 2 callers
Method
nextAfterResolve
nextAfterResolve is the occurrence a done or skip advances to, and the anchor_wall to store. A calendar schedule takes the first instance after both n
internal/store/schedule_resolve.go:975
↓ 2 callers
Function
nextCmd
--- next ---
cmd/pad/cmd_project.go:209
↓ 2 callers
Function
nextDashboardCall
(from: number)
web/src/routes/[username]/[workspace]/dashboardIdentityFence.svelte.test.ts:183
↓ 2 callers
Function
nextDay
(day string)
internal/server/handlers_calendar.go:436
↓ 2 callers
Function
nextGrid
nextGrid is the first n instants after q on a grid of d seconds anchored at the epoch: the independent answer for a rule that fires on every grid poin
internal/schedule/bounds_test.go:17
↓ 2 callers
Function
nextMe
* Spin the microtask/effect loop until a `/me` beyond `from` has been ISSUED, * and return its index. * * Indices are captured rather than assumed:
web/src/routes/workspaceDashboardOwnerDenial.svelte.test.ts:115
↓ 2 callers
Function
nextOccurrence
nextOccurrence is the first occurrence strictly after nowT-1s, so one that is due this very second still counts. A floating schedule is read in view.
internal/store/schedules.go:384
↓ 2 callers
Function
nextTick
nextTick returns the deadline for the pass after one that was scheduled for prev, given the configured interval and the current time. SEPARATED OUT S
internal/events/redis_heartbeat.go:697
↓ 2 callers
Function
nextViewerResourceGen
(key: string, lastKey: string, gen: number)
web/src/lib/attachments/viewerResource.ts:45
↓ 2 callers
Function
nextWatchTick
nextWatchTick returns the deadline for the pass after one scheduled for prev. Separated out so the arithmetic is testable without a clock — the only w
internal/watchevents/heartbeat.go:205
↓ 2 callers
Function
noChanges
(over: Record<string, unknown> = {})
web/src/mcp-app/Board.svelte.test.ts:36
↓ 2 callers
Function
noWorkspaceDispatcher
(t *testing.T, h http.Handler)
internal/mcp/dispatch_http_no_workspace_test.go:26
↓ 2 callers
Function
nodeForResult
* Build the node that should replace a placeholder for a given upload * result. Image MIMEs become `attachmentImage`; everything else becomes * `att
web/src/lib/components/editor/attachment-upload.ts:281
↓ 2 callers
Function
norm
(v: string)
web/src/lib/components/collections/field-editor-types.ts:489
↓ 2 callers
Function
normalizeArtifact
normalizeArtifact is the artifact importer's preprocess, shared by the human import (handleImportArtifact) and the app installer's preview and provisi
internal/server/artifact_normalize.go:37
↓ 2 callers
Function
normalizeBaseURL
(raw string)
cmd/pad/configure.go:340
↓ 2 callers
Function
normalizeCollectionSlug
normalizeCollectionSlug maps common singular/short forms to actual collection slugs. Thin wrapper around the shared collections.NormalizeSlug so the C
cmd/pad/cmd_collection.go:623
↓ 2 callers
Function
normalizeDispatcherBlockLines
normalizeDispatcherBlockLines returns the command lines of one fenced bash block body with trailing `#` comments removed, whitespace trimmed, and blan
cmd/pad/agent_dispatcher_commands_test.go:111
↓ 2 callers
Function
normalizeEmptyRelationLists
(fields map[string]any, schema models.CollectionSchema, partial bool)
internal/items/validate.go:275
↓ 2 callers
Function
normalizeGitRemoteSlug
(raw string)
internal/cli/workspace_context_detect.go:156
↓ 2 callers
Function
normalizeRecoveryCode
normalizeRecoveryCode prepares a user-entered recovery code for hashed comparison against stored codes: strip ASCII whitespace and dashes, then upperc
internal/server/handlers_2fa.go:533
↓ 2 callers
Function
normalizeTokenScopes
(w http.ResponseWriter, raw json.RawMessage)
internal/server/handlers_tokens.go:425
↓ 2 callers
Function
normalizeTokenScopesInput
normalizeTokenScopesInput checks a create request's scopes and rewrites them to their compact JSON form, writing a 400 validation_error and returning
internal/server/handlers_tokens.go:419
↓ 2 callers
Function
normalizeTriggerSQL
normalizeTriggerSQL makes two spellings of the same trigger comparable. SQLite stores the statement text as written, minus the trailing semicolon, an
internal/store/nulcolumns.go:1131
↓ 2 callers
Function
normalizeUserEmail
normalizeUserEmail is the normalisation every users.email write applies.
internal/store/activity_retention.go:133
↓ 2 callers
Method
normalized
()
internal/server/handlers_commitment_links.go:110
↓ 2 callers
Method
normalized
()
internal/schedule/links.go:640
↓ 2 callers
Function
notUniqueSummary
notUniqueSummary joins not_unique drops into the one line an activity row carries (BUG-2367). Always the holder-free sentence: the row is read by ever
internal/server/handlers_items.go:3791
↓ 2 callers
Method
noteEdit
An edit: sets the base only if none is held (raw entered without a seed).
web/src/lib/items/rawBase.ts:30
↓ 2 callers
Function
noteNeedsRefFailure
noteNeedsRefFailure names, on a call with several refs, the ref that failed and the ones already done, as the CLI does. A single-ref error is unchange
internal/mcp/dispatch_http_needs.go:169
↓ 2 callers
Method
noteSeedBoundary
noteSeedBoundary records the write's seq in the collab manager's in-memory fence, which Join reads before the durable column. Called inside PruneAndAp
internal/server/handlers_items_content_route.go:397
↓ 2 callers
Method
noteSent
A save is going out with this text.
web/src/lib/items/rawBase.ts:32
↓ 2 callers
Function
noteServerDate
(dateHeader: string | null | undefined, receivedAt = performance.now())
web/src/lib/api/serverClock.ts:37
↓ 2 callers
Function
noteViewerZone
A zone this machine's tzdata cannot load renders in UTC, and the notice names it.
cmd/pad/userzone.go:69
↓ 2 callers
Function
notesJSON
(entries ...string)
internal/server/bug2788_entry_id_stability_test.go:36
↓ 2 callers
Function
notificationExcerpt
notificationExcerpt collapses runs of whitespace and keeps the first notificationExcerptRunes runes.
internal/server/handlers_notifications.go:130
↓ 2 callers
Method
notificationSettingsUser
notificationSettingsUser admits the caller for the account-level settings routes: any authenticated person, a PAT included. An app principal is refuse
internal/server/handlers_push_devices.go:209
↓ 2 callers
Function
notifyAttachmentParentRestored
(workspaceSlug: string, itemId: string)
web/src/lib/attachments/events.ts:114
↓ 2 callers
Function
notifyAttachmentRestored
( workspaceSlug: string, attachmentId: string, itemId?: string | null )
web/src/lib/attachments/events.ts:181
↓ 2 callers
Function
notifyIdentityChange
()
web/src/lib/stores/auth.svelte.ts:128
↓ 2 callers
Function
notifyNetworkUnreachable
()
web/src/lib/api/client.ts:687
↓ 2 callers
Function
notifyUnconfirmed
(userId: string, n: number, opKey: string)
web/src/lib/chat/composerRegistry.ts:64
↓ 2 callers
Function
nulRepairExitError
nulRepairExitError turns a repair report into the command's exit status. A failure counts. An earlier version printed failures and then returned nil,
cmd/pad/cmd_db_nul.go:376
↓ 2 callers
Function
nulTriggerFileFor
nulTriggerFileFor names the trigger file a column's triggers are rendered into.
internal/store/nulcolumns.go:537
↓ 2 callers
Function
nullIntPtr
nullIntPtr turns a nullable integer column into *int: nil for NULL, which the version line counts use for "unknown" (PLAN-2348 U2).
internal/store/items.go:7491
↓ 2 callers
Function
nullLists
BUG-3417: every list in a JSON response the apps feature added is a list, never null. The contract (and the TS types) say arrays, and a Go nil slice s
internal/server/bug3417_null_lists_test.go:31
↓ 2 callers
Function
numericSecret
numericSecret reports a number or bool under a credential name: slog.Int("otp", 482913), {"password": 123456}, Secret bool. Two exceptions keep diagno
internal/logging/scrub.go:583
↓ 2 callers
Method
oauthAvailableWith
oauthAvailableWith is oauthAvailable for a setting value already read.
internal/server/handlers_admin_mcp.go:84
↓ 2 callers
Method
oauthLiveness
oauthLiveness re-introspects an MCP OAuth access token (BUG-3837). One fosite introspection answers all three ways the credential can end: a revoked t
internal/server/stream_credential_liveness.go:213
↓ 2 callers
Function
oauthScopesToJSON
oauthScopesToJSON serializes fosite's granted-scope slice to the JSON array form tokenScopeAllows expects. Crucial fail-closed: nil / empty granted s
internal/server/middleware_mcp_auth.go:552
↓ 2 callers
Method
oauthSweepCutoffs
oauthSweepCutoffs derives the per-table cutoffs from the running OAuth server's lifespans, or the package defaults when OAuth is not constructed (an i
internal/server/oauth_sweep.go:76
↓ 2 callers
Method
objectProperties
(n: Node, s: boolean, keyOf: (prop: string) => string)
web/src/test/identityFenceAst.ts:1093
↓ 2 callers
Method
observe
(target: Element)
web/src/lib/components/common/Lightbox.svelte.test.ts:1641
↓ 2 callers
Method
observe
()
web/src/test/setup-jsdom.ts:137
↓ 2 callers
Method
observeRevocation
observeRevocation looks up the oldest active-token issuance time for the family and fires the configured observer. Always called AFTER the family has
internal/oauth/storage.go:93
↓ 2 callers
Function
occTokenFor
(row: Pick<Item, 'seq' | 'updated_at'>)
web/src/lib/items/occToken.ts:33
↓ 2 callers
Method
occurrenceEpochSQL
occurrenceEpochSQL is the Unix epoch of alias.occurrence_at in the dialect.
internal/store/schedule_agenda.go:192
↓ 2 callers
Method
occurrenceNoLongerNeeded
occurrenceNoLongerNeeded reports whether some link marked this occurrence of the child schedule No longer needed.
internal/store/commitment_cancel.go:142
↓ 2 callers
Function
ok
(resp: Awaited<ReturnType<APIRequestContext['get']>>, what: string)
web/e2e/home-agents-pane.spec.ts:32
↓ 2 callers
Function
ok
(resp: Awaited<ReturnType<APIRequestContext['get']>>, what: string)
web/e2e/task-3615-catch-up-card.spec.ts:23
↓ 2 callers
Function
okResults
(w http.ResponseWriter, results string)
internal/notify/gateway_test.go:34
↓ 2 callers
Function
omittedRefs
(os []itemContextOmitted)
internal/server/plan3598_item_context_test.go:250
↓ 2 callers
Function
onClosed
* Chat is closed and the page underneath is current. With heals queued, the * parked continuation and the heals run first (a heal reads the live stat
web/src/lib/stores/chatSurface.svelte.ts:215
↓ 2 callers
Method
onRoomIdle
onRoomIdle is T3: the collab room for itemID was reclaimed. Runs on the grace timer's goroutine; one indexed read, then a non-blocking enqueue.
internal/server/materialize_recovery.go:264
↓ 2 callers
Function
onWorkspaceWrite
(listener: WorkspaceWriteListener)
web/src/lib/api/workspaceWrites.ts:19
↓ 2 callers
Method
once
(s: boolean)
web/src/test/identityFenceAst.ts:1247
↓ 2 callers
Function
oneShot
oneShot is a single occurrence on the 28th 09:00 UTC (30 minute lead).
internal/store/schedule_copy_test.go:1034
↓ 2 callers
Function
opKeyFrom
opKeyFrom is the agent's op_key, if any (TASK-3585).
internal/mcp/dispatch_http_project.go:829
← previous
next →
8,601–8,700 of 31,685, ranked by callers