Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
28,840 in github.com/PerpetualSoftware/pad
⨍
Functions
28,840
◇
Types & classes
3,245
↓ 1 callers
Function
whicheverEndsFirst
whicheverEndsFirst returns a context that ends when EITHER input does, and a cancel that must be called to release the registration on the second one.
internal/watchevents/redis_bus.go:875
↓ 1 callers
Function
whoamiFailure
whoamiFailure says what a failed identity check actually established (BUG-2706). Only a 401 or 403 means the credential was refused. Anything else, un
cmd/pad/cmd_auth.go:905
↓ 1 callers
Function
wholeInt64
wholeInt64 converts a float64 that is exactly an int64, and refuses any other: a fraction, or a value outside int64. 2^63 itself is out of range (MaxI
internal/mcp/dispatch_http_routes.go:2013
↓ 1 callers
Method
widenLibraryOptions
widenLibraryOptions adds to a system convention or playbook collection's select options any value this create carries that the LIBRARY itself uses for
internal/server/library_option_widen.go:50
↓ 1 callers
Function
widths
(page: Page)
web/e2e/task-3312-tabs-feel.spec.ts:27
↓ 1 callers
Function
wikiBodyIsTitle
wikiBodyIsTitle reports whether a bracket body is a whole-body link to title: no unescaped `|` (splitOnUnescapedPipe's rule, where `\` consumes the ne
internal/links/links.go:121
↓ 1 callers
Function
wikiDisplayText
(body: string, titleByRef: ReadonlyMap<string, string>)
web/src/lib/utils/markdown.ts:786
↓ 1 callers
Function
wikiTitleRoundTripFailure
wikiTitleRoundTripFailure reports why emitting `[[title]]` by plain concatenation, no escaping — the way links.ReplaceTitle did until BUG-2806 made it
internal/models/document.go:157
↓ 1 callers
Function
windowEscapeSpy
()
web/src/lib/components/items/ItemPicker.svelte.test.ts:853
↓ 1 callers
Function
windowSpec
windowSpec maps a window to its lookback duration and bucket granularity.
internal/store/reports.go:164
↓ 1 callers
Function
wipe
( userId: string | null, ws: string, )
web/src/lib/stores/localIndexPersistence.ts:1170
↓ 1 callers
Function
wire
()
web/src/lib/stores/chatThread.property.svelte.test.ts:314
↓ 1 callers
Function
wireChatGPTMCP
wireChatGPTMCP builds the ChatGPT catalog's server on the same dispatcher as /mcp and hands it to the server for /mcp/chatgpt (TASK-3321 U2b). It is s
cmd/pad/cmd_server_chatgpt.go:62
↓ 1 callers
Function
withAuthKindForTest
withAuthKindForTest records the credential kind as the auth middleware would, for a request driven straight at a handler helper.
internal/server/bug3350_session_kind_test.go:195
↓ 1 callers
Function
withBody
(body: string, over: Partial<ChatMessage> = {})
web/src/lib/components/chat/MessageBubble.svelte.test.ts:263
↓ 1 callers
Function
withBoth
(id: string)
web/src/lib/components/collections/BoardView.relationGroup.svelte.test.ts:895
↓ 1 callers
Function
withBoxSize
withBoxSize rewrites the ftyp box size field, for the malformed-input cases.
internal/attachments/mime_isobmff_test.go:309
↓ 1 callers
Function
withChiCtx
(r *http.Request, rctx *chi.Context)
internal/server/task3401_app_api_test.go:680
↓ 1 callers
Function
withCurrentHuman
withCurrentHuman is decs without the needs_human answer unless the flag path still holds it current (cur, from humanCurrent). It copies; decs is share
internal/server/needs_scorers.go:221
↓ 1 callers
Function
withDeadline
(origin: 'native' | 'legacy_backfill' = 'native', days = 1, secs = -28800)
web/src/lib/commitment.test.ts:154
↓ 1 callers
Function
withEndSchedule
withEndSchedule adds the boolean --end-schedule of done and skip (TASK-4537).
internal/mcp/catalog_readonly_test.go:1092
↓ 1 callers
Function
withExplicitWorkerID
(ctx context.Context, worker string)
internal/mcp/client_identity.go:241
↓ 1 callers
Function
withFSAttachments
(t *testing.T, srv *Server)
internal/server/bug3653_storage_cap_doors_test.go:32
↓ 1 callers
Function
withFieldNumberLiterals
withFieldNumberLiterals re-reads the `fields` argument from the raw request bytes with every number kept as its literal (json.Number), so a field writ
internal/mcp/catalog.go:561
↓ 1 callers
Function
withFlatSoftBreaks
(fn: () => T)
web/src/lib/components/editor/extensions/padHardBreak.ts:8
↓ 1 callers
Function
withMetaKey
(meta, key, value string)
internal/store/fenced_items.go:484
↓ 1 callers
Function
withNeedsMemo
(ctx context.Context, m *needsMemo)
internal/server/needs_scorers.go:132
↓ 1 callers
Function
withParent
(opts: { parent_ref?: string; parent_slug?: string; parent_collection_slug?: string; parent_title?: st
web/src/lib/collections/paneTarget.test.ts:356
↓ 1 callers
Function
withPendingRawDraft
Loaded, switched to raw mode, one edit typed and still debounced.
web/src/lib/components/items/itemDetailIdentityLoad.svelte.test.ts:213
↓ 1 callers
Function
withPendingStarsFirst
A load's order with any star made while it was in flight put first, as the * newest. Reads `pendingToggles` before `applyPendingToggles` clears it.
web/src/lib/stores/starred.svelte.ts:43
↓ 1 callers
Function
withRetiredBlocked
(t *testing.T)
internal/server/dashboard_attention_decisions_test.go:59
↓ 1 callers
Function
withRichDraft
* Mounts the rich editor: a provider that reports synced, and a fake * editor handed back through the Editor stub's `onEditor` — the seam the * re
web/src/lib/components/items/itemDetailIdentityLoad.svelte.test.ts:307
↓ 1 callers
Function
withSelectOptions
withSelectOptions returns a copy of schema with add appended to the first definition of each key, the in-memory twin of appendSelectOptionsJSON.
internal/server/library_option_widen.go:127
↓ 1 callers
Function
withStatus
(id: string, color: string)
web/src/lib/components/collections/BoardView.relationGroup.svelte.test.ts:223
↓ 1 callers
Function
withStatus
(id: string, color: string)
web/src/lib/components/collections/ListView.relationGroup.svelte.test.ts:332
↓ 1 callers
Function
withUA
(ua: string)
web/src/lib/stores/authCommerce.svelte.test.ts:17
↓ 1 callers
Function
withinThumbBound
* True when the image's OWN pixels already fit inside the thumbnail bound, so * the server would skip derivation and the download IS the original. On
web/src/lib/attachments/viewerLoading.ts:79
↓ 1 callers
Function
without
(list: { slug: string }[], gone: string)
web/src/lib/utils/tabLanding.test.ts:5
↓ 1 callers
Function
withoutFieldFlags
withoutFieldFlags drops the `--field key=value` pairs naming a key in keys, up to the `--` before the positionals.
internal/mcp/dispatch.go:454
↓ 1 callers
Function
withoutKey
(rec: Record<string, true>, key: string)
web/src/lib/stores/chatInbox.svelte.ts:300
↓ 1 callers
Function
withoutRandomUUID
()
web/src/lib/opKey.test.ts:8
↓ 1 callers
Function
withoutRandomUUID
()
web/src/lib/stores/chatThread.svelte.test.ts:706
↓ 1 callers
Function
withoutReferenceItems
withoutReferenceItems drops the items of REFERENCE collections (PLAN-3535) from an open-work list. If the collections cannot be read the list is retur
cmd/pad/cmd_project.go:360
↓ 1 callers
Function
withoutScopeTokens
(raw: string)
web/src/lib/stores/localSearch.svelte.ts:191
↓ 1 callers
Function
work
(extra: Partial<AgendaWorkEntry> = {})
web/src/lib/components/calendar/WeekSummary.svelte.test.ts:17
↓ 1 callers
Method
workLoop
()
internal/server/materialize_recovery.go:390
↓ 1 callers
Function
workState
(row: AgendaWorkEntry)
web/src/lib/calendar/presentation.ts:440
↓ 1 callers
Function
workflowFiles
workflowFiles lists the files whose `uses:` pins a change can add: every YAML file under .github (workflows, local actions), and any action.yml or act
cmd/depages/main.go:147
↓ 1 callers
Method
workspaceAttachmentsForExportQ
workspaceAttachmentsForExportQ returns every original (non-derived, non-deleted) attachment in the workspace so the export bundler can stream them int
internal/store/attachments.go:1730
↓ 1 callers
Function
workspaceClaimCmd
--- workspace claim --- `pad workspace claim <code> --workspace <slug>` redeems a 6-digit stateless HMAC claim code at POST /api/v1/oauth/claim, gran
cmd/pad/cmd_workspace.go:508
↓ 1 callers
Function
workspaceCmd
()
cmd/pad/groups.go:54
↓ 1 callers
Function
workspaceContextCmd
()
cmd/pad/workspace_context.go:17
↓ 1 callers
Function
workspaceContextSetCmd
()
cmd/pad/workspace_context.go:54
↓ 1 callers
Function
workspaceCreateCmd
--- workspace create (non-interactive) --- `pad workspace init` is the interactive entry point: it ensures auth, prompts when needed, and CWD-links t
cmd/pad/cmd_workspace.go:434
↓ 1 callers
Function
workspaceDeletedCmd
workspaceDeletedCmd lists the caller's soft-deleted workspaces that are still restorable — i.e. not yet past the purge window — along with the days re
cmd/pad/cmd_workspace.go:380
↓ 1 callers
Function
workspaceIsGone
(slug: string)
web/src/lib/services/accessStream.svelte.ts:77
↓ 1 callers
Function
workspaceMissingHint
workspaceMissingHint generates the route-aware suffix appended to the standard unknown_workspace envelope's available_workspaces line.
internal/mcp/errors.go:1448
↓ 1 callers
Function
workspaceRestoreCmd
workspaceRestoreCmd un-soft-deletes a workspace by slug, provided it is still inside the 30-day restore window (owner-only server-side).
cmd/pad/cmd_workspace.go:351
↓ 1 callers
Function
workspaceRestoreTarget
(ws: { slug: string; owner_username?: string })
web/src/lib/utils/workspace-route.ts:28
↓ 1 callers
Function
workspaceSlot
()
web/src/lib/components/layout/BottomNav.svelte.test.ts:55
↓ 1 callers
Method
workspaceSlug
workspaceSlug resolves a workspace id to its slug, memoised per stream (see slugs). A resolution failure degrades to the raw id, as the payload always
internal/server/handlers_watch_events.go:698
↓ 1 callers
Function
workspacesCmd
--- onboard --- The 'pad onboard' Cobra subcommand was retired in PLAN-1496 / TASK-1502. The pre-existing implementation scanned the project directory
cmd/pad/cmd_workspace.go:1068
↓ 1 callers
Function
wrapCollectionNotFound
wrapCollectionNotFound rewrites the server's context-free "Collection not found" into one that names the slug the user actually typed, so a failed `pa
internal/cli/collection_alias.go:111
↓ 1 callers
Function
wrapper
(opts: { text: string; model?: string; error?: boolean })
web/src/lib/components/editor/mermaidTheme.svelte.test.ts:59
↓ 1 callers
Method
write
write performs a single insert with a per-call timeout. DB errors log + drop the row — there's no retry path because the audit log is best-effort by d
internal/server/middleware_mcp_audit.go:162
↓ 1 callers
Function
writeAppAttachmentError
writeAppAttachmentError maps the attachment-specific store errors; the rest go to writeAppStoreError.
internal/server/app_api_attachments.go:267
↓ 1 callers
Function
writeArgsTable
writeArgsTable renders positional args. Args are emitted in source order (no sorting) so the table reflects invocation order.
internal/cmdhelp/md.go:251
↓ 1 callers
Function
writeArtifactParseError
writeArtifactParseError maps the typed errors from parseArtifactRequest to HTTP responses.
internal/server/handlers_artifact_import.go:371
↓ 1 callers
Function
writeCollabLimitExceeded
writeCollabLimitExceeded answers a collab WebSocket dial refused because the principal already holds PAD_COLLAB_MAX_PER_USER sockets (BUG-1308). Its o
internal/server/stream_admission.go:183
↓ 1 callers
Function
writeContentNotAppliedError
writeContentNotAppliedError emits the pad-structured-error/v1 envelope for the outcome the write-first-apply-second ordering creates (PLAN-2975 decisi
internal/server/handlers_items_open_children_guard.go:449
↓ 1 callers
Function
writeCopyActorRequired
writeCopyActorRequired is the shared refusal for an unattributable copy. Both endpoints emit it, byte for byte, so the preview and the mutation agree
internal/server/handlers_items_copy.go:1065
↓ 1 callers
Function
writeDCRError
writeDCRError emits the RFC 7591 §3.2.2 error response shape.
internal/server/handlers_oauth.go:484
↓ 1 callers
Function
writeDecisionProviderError
writeDecisionProviderError answers a genuine provider-side failure — a network error, a timeout, or the provider's own non-budget refusal — with a FIX
internal/server/handlers_playbooks.go:425
↓ 1 callers
Function
writeDirectionFileFields
(t *testing.T, path string, fields map[string]any)
internal/cli/chat_direction_generation_test.go:23
↓ 1 callers
Function
writeDoor
writeDoor names the door r arrived through. The ChatGPT surface is checked before remote MCP because it is one; the CLI before the generic token check
internal/server/content_write_guard.go:33
↓ 1 callers
Function
writeEvent
(line func(string) error, e Event, now time.Time)
internal/ics/ics.go:83
↓ 1 callers
Function
writeExitCodesTable
writeExitCodesTable renders an exit_codes map. Keys are numeric strings from the schema; sort them numerically (best-effort string sort works for sens
internal/cmdhelp/md.go:278
↓ 1 callers
Function
writeFields
writeFields reads the field values out of a create (fields: JSON string) or update (fields_patch: object) body.
cmd/pad/task3611_fields_json_test.go:130
↓ 1 callers
Function
writeInterchangeGolden
writeInterchangeGolden builds a workspace that holds every entity the format carries, exports it as a bundle and writes the bundle into the golden dir
internal/server/interchange_golden_test.go:346
↓ 1 callers
Function
writeItemCopyHeader
(w io.Writer, p *cli.ItemCopyPreflight)
cmd/pad/cmd_item.go:2925
↓ 1 callers
Function
writeItemCopyPartialRelationshipsAfter
writeItemCopyPartialRelationshipsAfter is the post-commit counterpart to the dry run's INCOMPLETE block: the same fact, in the past tense, for the use
cmd/pad/cmd_item.go:2912
↓ 1 callers
Method
writeItemStillOpen
writeItemStillOpen answers a done or skip refused because it would end the schedule of an open item: 409 item_still_open with what the caller needs to
internal/server/handlers_schedule_end.go:22
↓ 1 callers
Method
writeLinkedDateTx
writeLinkedDateTx stores one changed date as the outstanding occurrence's role override. A target also follows the move rules of unit 3: the occurrenc
internal/store/commitment_cascade.go:736
↓ 1 callers
Method
writeLoop
writeLoop drains the bus subscription channel and writes every non-self event to the connection. Self-events (those whose ClientID matches our own) ar
internal/collab/room.go:853
↓ 1 callers
Function
writeMCPBodyTooLarge
writeMCPBodyTooLarge writes limitMCPBody's 413: a JSON-RPC error with a null id, since the request was never parsed.
internal/server/middleware_mcp_body_limit.go:96
↓ 1 callers
Method
writeMCPInsufficientScope
writeMCPInsufficientScope writes the 403 MCPInsufficientScope answers. The challenge carries the same metadata document and scope set as the 401 (writ
internal/server/middleware_mcp_scope.go:129
↓ 1 callers
Function
writeNotificationNotFound
writeNotificationNotFound is the ONLY way the HANDLER of GET me/notifications/{id} says no. A missing id, another user's row and every denial of the s
internal/server/handlers_notifications.go:25
↓ 1 callers
Function
writeOpKeyHint
writeOpKeyHint prints the idempotency key a failed write sent (BUG-3999), so a retry after an unclear outcome can reuse it. It prints on any failure o
cmd/pad/main.go:157
↓ 1 callers
Method
writePatchOutcomeUnknown
writePatchOutcomeUnknown answers a retry of an unconfirmed patch whose connection is gone (TASK-3585): it is NOT re-planned (an insert-shaped edit kee
internal/server/handlers_items_patch.go:677
↓ 1 callers
Method
writePatchOutcomeUnknownFor
writePatchOutcomeUnknownFor is writePatchOutcomeUnknown for a resolved item (the room path), reading the item fresh for the current seq and body.
internal/server/handlers_items_patch.go:652
↓ 1 callers
Method
writePatchResponse
(w http.ResponseWriter, updated *models.Item, p *itemPatch, pendingFlush bool)
internal/server/handlers_items_patch.go:405
↓ 1 callers
Function
writePatchRoomOpen
(w http.ResponseWriter, ref string)
internal/server/handlers_items_patch.go:296
↓ 1 callers
Function
writePushPublishError
writePushPublishError maps a Bus.Publish failure onto the response, keeping the two outcomes Bus.Publish distinguishes distinguishable all the way to
internal/server/handlers_push.go:693
↓ 1 callers
Function
writeRemapGolden
(t *testing.T, d remapDump)
internal/store/attachments_remap_fixture_test.go:173
↓ 1 callers
Method
writeRemapUnit
writeRemapUnit writes one item's whole share in the chunk's transaction.
internal/store/attachments_remap.go:513
↓ 1 callers
Method
writeRenamedArraysTx
writeRenamedArraysTx rewrites each row's array under the whole rename map at once, bumping seq and updated_at like the scalar pass. It returns the ids
internal/store/field_option_rename.go:71
↓ 1 callers
Function
writeResolveError
writeResolveError maps the errors only a resolve raises, then the shared schedule vocabulary. A stale answer carries the CURRENT outstanding occurrenc
internal/server/handlers_schedules.go:412
↓ 1 callers
Function
writeRestorePendingFlushError
writeRestorePendingFlushError answers the BUG-3031 refusal: a version restore while the item's op-log holds unflushed collaborative edits. Same code a
internal/server/handlers_items_open_children_guard.go:544
↓ 1 callers
Function
writeScrollY
(target: HTMLElement | Window | null, y: number)
web/src/lib/scroll/restore.svelte.ts:111
↓ 1 callers
Function
writeSkipCommitmentChanged
(w http.ResponseWriter)
internal/server/handlers_commitments.go:381
← previous
next →
15,201–15,300 of 28,840, ranked by callers