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
↓ 3 callers
Function
isRequestTooLargeError
(err: unknown)
web/src/lib/chat/compose.ts:39
↓ 3 callers
Function
isReservedCollectionSlug
(slug string)
internal/store/collections.go:1613
↓ 3 callers
Function
isSnoozed
(entry: { snoozed_until?: string }, now = new Date(Date.now()))
web/src/lib/calendar/presentation.ts:214
↓ 3 callers
Function
isUngrouped
(value: unknown)
web/src/lib/collections/boardColumns.ts:63
↓ 3 callers
Function
isWatchHeartbeat
isWatchHeartbeat reports whether a payload is a liveness frame. VALIDATED BY SHAPE, NOT BY PREFIX ALONE. Accepting any "hb|…" would create a silently
internal/watchevents/heartbeat.go:97
↓ 3 callers
Function
item
(over: Record<string, unknown> = {})
web/src/mcp-app/ItemCard.svelte.test.ts:16
↓ 3 callers
Method
itemByRefQ
itemByRefQ resolves a live relation referent on the caller's executor. Exact refs, immutable aliases and move-log-proven refs share one statement. An
internal/store/relation_referents.go:1103
↓ 3 callers
Function
itemCmd
()
cmd/pad/groups.go:126
↓ 3 callers
Function
itemCopyPath
itemCopyPath builds the copy endpoint's path with each dynamic segment escaped exactly once. Most of this client concatenates slugs into paths bare,
internal/cli/client_items_copy.go:376
↓ 3 callers
Function
itemCopyReason
(table map[string]string, code string)
cmd/pad/cmd_item.go:2594
↓ 3 callers
Function
itemCopyRef
itemCopyRef prefers the issue ID and falls back to the slug, which is always present. `ref` is omitempty on the wire.
cmd/pad/cmd_item.go:3081
↓ 3 callers
Method
itemHasSchedule
itemHasSchedule reports whether the item has a schedule row in the workspace, whether or not the item is soft-deleted (the pin judges liveness).
internal/store/commitment_gates.go:303
↓ 3 callers
Function
itemJSONKeys
(t *testing.T, srv *Server, wsSlug, itemSlug string)
internal/server/handlers_decisions_test.go:73
↓ 3 callers
Function
itemNumber
itemNumber derefs models.Item.ItemNumber (*int), failing the test when the column came back NULL — which would itself be a parity break.
internal/store/items_create_tx_test.go:63
↓ 3 callers
Method
itemOf
(scheduleID string)
internal/store/commitment_links.go:195
↓ 3 callers
Function
itemOpenTestHandler
(ref string, item models.Item)
cmd/pad/item_open_test.go:35
↓ 3 callers
Function
itemOverdue
itemOverdue reports whether an item has a deadline in the past, and which field carried it. Reports at most ONE field per item — the first in overdueD
internal/server/overdue.go:52
↓ 3 callers
Function
itemPatchCmd
itemPatchCmd is `pad item patch` (PLAN-3578): content-anchored edits to an item's body, answered with the diff of exactly what changed.
cmd/pad/cmd_item_patch.go:18
↓ 3 callers
Method
itemSeq
(t *testing.T)
internal/server/handlers_item_versions_bug3031_test.go:59
↓ 3 callers
Function
itemStatusPriority
itemStatusPriority pulls the "status" and "priority" string values out of an item's fields JSON blob. Missing keys, non-string values, or malformed JS
internal/cli/format.go:220
↓ 3 callers
Function
itemUrl
(fixture: SuiteFixture, ref: string)
web/e2e/bug-3230-raw-save-pending-edits.spec.ts:29
↓ 3 callers
Method
itemVisibleForIncludingTrashed
itemVisibleForIncludingTrashed is itemVisibleFor with one difference: a soft-deleted item is judged by the same workspace and collection/grant rule as
internal/server/relation_hydration.go:121
↓ 3 callers
Function
joinCollabWorkspace
The collab WebSocket is the third member of this class and the one with WRITE access: a credential destroyed after upgrade leaves a connection whose p
internal/server/handlers_stream_session_liveness_test.go:320
↓ 3 callers
Function
jsonEqualString
jsonEqualString compares two JSON strings tolerantly of insignificant whitespace differences that emerge from JSONB ↔ TEXT round-trips.
internal/store/items_views_jsonb_test.go:248
↓ 3 callers
Method
jsonType
---------- SQLite ----------
internal/store/dialect_fieldvalue.go:77
↓ 3 callers
Function
keptWorkerID
keptWorkerID is the worker id in the record at path when that record belongs to the same process as owner (pid AND start token), else "". The start to
internal/cli/session_worker.go:82
↓ 3 callers
Function
key
(ref: string, workspace = 'w')
web/src/lib/stores/chatThread.svelte.test.ts:1633
↓ 3 callers
Function
keyOf
(call: number)
web/src/lib/components/items/PushToAgentDialog.svelte.test.ts:827
↓ 3 callers
Function
keys
()
web/src/lib/chat/chatRecords.ts:42
↓ 3 callers
Function
laSource
TASK-4104 D3 r3: the move catch-up and the exhausted verdict read the SOURCE schedule in the source recipient's zone. laSource assigns the source item
internal/store/schedule_copy_r3_test.go:20
↓ 3 callers
Function
labelValues
labelValues returns the distinct values of one label across a metric family.
internal/server/bug2817_metrics_label_bound_test.go:17
↓ 3 callers
Function
labelsMatch
(pairs []*dto.LabelPair, want map[string]string)
internal/metrics/watchevents_observer_test.go:115
↓ 3 callers
Method
landed
A save landed: the row is now at `seq`, holding `sent`.
web/src/lib/items/rawBase.ts:34
↓ 3 callers
Method
lapse
(ids ...string)
internal/server/task3939b_push_dispatch_test.go:266
↓ 3 callers
Function
lapseActivities
(t *testing.T, srv *Server, itemID string)
internal/server/reminder_tick_deadline_test.go:82
↓ 3 callers
Method
lapseOccurrenceTx
lapseOccurrenceTx closes a lapsing promise immediately after its miss is recorded. All callers hold the schedule pin and commit both writes together.
internal/store/schedule_deadline_eval.go:560
↓ 3 callers
Function
lapseTickFixture
lapseTickFixture is a one-off native deadline that lapses on the next tick, with its event subscription already open.
internal/server/reminder_tick_deadline_test.go:49
↓ 3 callers
Function
lastCollab
()
web/src/lib/components/items/itemDetailTouchEdit.svelte.test.ts:240
↓ 3 callers
Function
leaseOurs
leaseOurs is THE predicate for "this live lease is the caller's", shared by claim, release and ListForeignItemLeaseIDs so they cannot drift. Every col
internal/store/item_lease.go:332
↓ 3 callers
Function
leave
Release a mobile overlay that stopped being active (unmount / breakpoint / close).
web/src/lib/stores/paneOverlay.svelte.ts:43
↓ 3 callers
Function
legacyTokenRouteAllowed
legacyTokenRouteAllowed reports whether a user-less legacy workspace token may use r's route. Workspace-scoped routes are allowed, because RequireWork
internal/server/middleware_auth.go:475
↓ 3 callers
Function
line
(ref: string, title: string, what: string)
web/src/lib/components/activity/CatchUpCard.svelte.test.ts:52
↓ 3 callers
Function
link
(extra: Partial<CommitmentLink> = {})
web/src/lib/test/commitmentFixtures.ts:5
↓ 3 callers
Function
linkActor
(o models.LinkWriteOptions)
internal/store/commitment_links.go:646
↓ 3 callers
Function
linkChild
linkChild wires child -> parent via a `parent` link (the shape GetChildItems / GetChildItemsForParents walk).
internal/store/dashboard_batch_test.go:11
↓ 3 callers
Function
linkDTO
(l linkRow, parentItem, childItem string)
internal/store/commitment_links.go:696
↓ 3 callers
Method
linkEndsOf
linkEndsOf reads a link by id (unlocked) so a writer can name its root item.
internal/store/commitment_links.go:715
↓ 3 callers
Function
linkNoticeActor
linkNoticeActor is who a committed move's notice leaves out: the acting person, and nobody when an agent moved the date. actor is the journal's actor,
internal/store/commitment_links.go:656
↓ 3 callers
Function
linkRowsFor
(t *testing.T, s *Store, itemID string)
internal/store/relation_links_multi_test.go:26
↓ 3 callers
Function
linkVertexLess
(a, b linkVertex)
internal/schedule/links.go:583
↓ 3 callers
Method
linkWritePlanTx
linkWritePlanTx plans the move a link write makes: with l in the component in place of any stored version of itself, the child's date, and every date
internal/store/commitment_links.go:672
↓ 3 callers
Function
linkYearInRange
linkYearInRange reports whether t's UTC year is a year the package supports (minYear..maxYear). Civil results are checked in their own zone at the cal
internal/schedule/links.go:80
↓ 3 callers
Method
listAgendaSchedules
(workspaceID string, scope PendingReminderScope, audiences []string, from, to time.Time, limit int, includeTer
internal/store/schedule_agenda.go:66
↓ 3 callers
Function
listAllPages
listAllPages is the one pager behind every ListAll* method (BUG-3704, BUG-3793, BUG-4024). It reads from startOffset, follows the server's next-offset
internal/cli/client.go:416
↓ 3 callers
Function
listHas
(list WorkspaceTabList, wsID string)
internal/store/workspace_tabs_revision_test.go:22
↓ 3 callers
Method
listInstalls
TASK-3413 (SPEC-6 U9a): GET /workspaces/{ws}/apps, the owner's Apps list.
internal/server/task3413a_app_list_test.go:10
↓ 3 callers
Method
listItemLinks
listItemLinks issues an in-handler GET against api/v1/workspaces/{ws}/items/{slug}/links and decodes the response into models.ItemLink so the un-* dis
internal/mcp/dispatch_http_links.go:706
↓ 3 callers
Function
listManual
(t *testing.T, s *Store, wsID, colID string)
internal/store/items_new_item_top_test.go:26
↓ 3 callers
Function
listWorkspaceTabsQ
listWorkspaceTabsQ reads the revision and the rows in ONE statement, so they describe one instant even on Postgres READ COMMITTED, where two statement
internal/store/workspace_tabs.go:66
↓ 3 callers
Method
liveAppDeliveries
liveAppDeliveries counts installID's unexpired in-flight rows, in database time.
internal/store/app_delivery.go:348
↓ 3 callers
Function
liveBySlug
(t *testing.T, srv *Server, slug string)
internal/server/bug3479_remove_unusable_truth_test.go:27
↓ 3 callers
Function
liveHas
(t *testing.T, s *Store, userID, token string)
internal/store/push_devices_test.go:444
↓ 3 callers
Function
liveSibling
liveSibling starts a long-lived process this test owns, unrelated to the stub, and returns its pid.
internal/buildtools/bug4068_pidfile_test.go:33
↓ 3 callers
Function
loadConfig
loadConfig loads the config and applies --url, returning a load error instead of exiting, for callers that must not end the process, such as the displ
cmd/pad/main.go:320
↓ 3 callers
Function
loadFixture
(t *testing.T, name string)
internal/urlimport/generic_test.go:10
↓ 3 callers
Function
loadJSONConfig
loadJSONConfig reads path as a JSON object. A missing or whitespace-only file is treated as an empty config (so AddPadEntry can populate from scratch
internal/mcp/install.go:327
↓ 3 callers
Function
loadLinkFixture
(t *testing.T)
internal/server/materialize_recovery_links_test.go:36
↓ 3 callers
Function
loadMIMEFamilies
(t *testing.T)
internal/attachments/mime_families_test.go:25
↓ 3 callers
Method
loadRoleLaneCollectionsQ
(q Queryer, workspaceID string)
internal/store/role_park.go:616
↓ 3 callers
Function
loadSchemaForTest
loadSchemaForTest is a test-only wrapper around FindAndCompileSchema that fails the test on error and starts the walk from the test's CWD.
internal/cmdhelp/schema_test.go:14
↓ 3 callers
Function
loadStoreUnlocked
loadStoreUnlocked is loadStoreLocked for a caller that could not take the lock (BUG-3828). Save truncates in place before it writes, so an empty file
internal/cli/credentials.go:239
↓ 3 callers
Function
loadTOMLConfig
loadTOMLConfig reads path as a TOML document into a map. A missing or whitespace-only file is an empty config. Parse errors on a non-empty file propag
internal/mcp/install.go:509
↓ 3 callers
Function
loadTitleLimitCorpus
(t *testing.T)
internal/models/title_limit_parity_test.go:41
↓ 3 callers
Function
loadWithPushEnv
(t *testing.T, env map[string]string)
internal/config/push_dispatch_timings_test.go:9
↓ 3 callers
Function
localDate
(at: string, zone: string)
web/src/lib/calendar/presentation.ts:70
↓ 3 callers
Function
localHeadlessCfg
localHeadlessCfg points a Local-mode config at srv via env vars, so EnsureServer's serverResponds(host, port) check finds the fake server live and ski
cmd/pad/workspace_init_noninteractive_test.go:26
↓ 3 callers
Method
lockCommentRowTx
lockCommentRowTx reads one comment row, FOR UPDATE on Postgres. It returns nil when the row does not exist.
internal/store/comments.go:729
↓ 3 callers
Method
lockCommentsRootFirstTx
lockCommentsRootFirstTx is lockCommentsRootFirstTxCtx without a deadline.
internal/store/comments.go:723
↓ 3 callers
Method
lockReminderCommitment
lockReminderCommitment takes the strongest locks first, then checks both identities. A cached alarm ID cannot address a replacement commitment.
internal/store/reminder_commitment.go:85
↓ 3 callers
Function
lockRowsForShare
lockRowsForShare runs a FOR SHARE select and drains it: the locks are taken as the rows are read.
internal/store/app_provision.go:402
↓ 3 callers
Function
lockSessionsDir
lockSessionsDir serializes registry mutations (register's write + prune, and a standalone prune) across processes with an advisory flock on ~/.pad/ses
internal/cli/session_lock_unix.go:22
↓ 3 callers
Method
lockUserProvidersTx
lockUserProvidersTx locks the account row and returns its linked providers. Every write to an account's providers or bindings goes through it, so a li
internal/store/oauth_identities.go:25
↓ 3 callers
Function
loginViaForm
(page: Page, email: string)
web/e2e/lib/chat-users.ts:75
↓ 3 callers
Function
logoutCmd
()
cmd/pad/cmd_auth.go:890
↓ 3 callers
Method
lookupByName
lookupByName finds a workspace by its NAME rather than its slug. Name is what the request supplies verbatim; slug is derived, and the derivation diffe
internal/server/handlers_workspace_create_consent_test.go:162
↓ 3 callers
Function
makeItem
()
web/src/lib/components/common/QuickActionsMenu.svelte.test.ts:190
↓ 3 callers
Function
makeLegacy
TASK-3462 U4: items made before built-in origins were recorded get one by exact title (or a playbook's invocation_slug), with no seed version, so they
internal/server/task3462_u4_legacy_adoption_test.go:20
↓ 3 callers
Function
mapItemStarred
mapItemStarred dispatches `pad item starred [--all]`. GET /api/v1/workspaces/{ws}/starred?include_terminal=true when --all is set. Without --all the
internal/mcp/dispatch_http_routes.go:883
↓ 3 callers
Function
mapKeys
mapKeys returns the keys of m, in arbitrary order. Used only by test failure messages where order doesn't matter.
internal/mcp/meta_test.go:155
↓ 3 callers
Function
mapRoleCreate
mapRoleCreate dispatches `pad role create <name> [--description ...] [--icon ...] [--tools ...]`. POST /api/v1/workspaces/{ws}/agent-roles with body
internal/mcp/dispatch_http_routes.go:1220
↓ 3 callers
Function
mapScheduleResolve
mapScheduleResolve is `item remind done|skip|snooze|move|ack`: the state is the command's, the rest is the input actionItemScheduleResolve left. The o
internal/mcp/dispatch_http_schedule.go:162
↓ 3 callers
Function
mapWebhookCreate
mapWebhookCreate dispatches `pad webhook create <url> [--events ...] [--secret ...]`. POST /api/v1/workspaces/{ws}/webhooks with body matching models
internal/mcp/dispatch_http_routes.go:1351
↓ 3 callers
Function
mapWorkspaceAuditLog
mapWorkspaceAuditLog dispatches `pad workspace audit-log [--days N] [--actor X] [--action X] [--limit N]`. GET /api/v1/audit-log (NOT workspace-scope
internal/mcp/dispatch_http_routes.go:1458
↓ 3 callers
Function
mapWorkspaceCreate
mapWorkspaceCreate dispatches `pad workspace create <name> [--slug X] [--template X]`. POST /api/v1/workspaces with body {name, slug?, template?} — m
internal/mcp/dispatch_http_routes.go:1501
↓ 3 callers
Function
mapWorkspaceInvite
mapWorkspaceInvite dispatches `pad workspace invite <email> [--role X]`. POST /api/v1/workspaces/{ws}/members/invite with body {email, role?}. Defaul
internal/mcp/dispatch_http_routes.go:1573
↓ 3 callers
Function
markDeleted
()
web/src/lib/components/editor/attachment-chip.ts:347
↓ 3 callers
Function
markEventForUnmarkTest
markEventForUnmarkTest is a helper that POSTs stripe-event-processed and returns the processed_at token the response hands back. Keeps the setup of th
internal/server/cloud_admin_gate_test.go:273
↓ 3 callers
Method
markLocalSent
A local update is going out on the open socket (BUG-3523).
web/src/lib/collab/wsProvider.svelte.ts:1589
↓ 3 callers
Method
markStartFetched
(r *http.Request, item *models.Item)
internal/server/bootstrap_start.go:163
↓ 3 callers
Function
marshalledLen
marshalledLen is the number of bytes this string occupies as a JSON value — the bytes actually sent, which are what the token estimate is taken over.
internal/decision/typesafe.go:509
← previous
next →
5,801–5,900 of 31,685, ranked by callers