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
isEventStream
(contentType string)
internal/server/mcp_stream_keepalive.go:142
↓ 7 callers
Function
isFnNode
(n: Node | undefined | null)
web/src/lib/components/items/childIdentityFencePopulation.test.ts:382
↓ 7 callers
Function
isOpenState
(state: string | null | undefined)
web/src/lib/calendar/presentation.ts:145
↓ 7 callers
Function
isPublicAPIPath
isPublicAPIPath reports whether the given request path is an API endpoint that bypasses authentication entirely. These handlers must work even when th
internal/server/middleware_auth.go:418
↓ 7 callers
Function
isStale
(err error)
internal/store/schedule_resolve_test.go:99
↓ 7 callers
Function
isUUID
(s string)
internal/server/handlers_items.go:4504
↓ 7 callers
Function
itemClaimCmd
`pad item claim` / `pad item release` (#1221): the execution lease. A claim answers "may I be the one executing this right now" atomically — two polle
cmd/pad/cmd_item_lease.go:18
↓ 7 callers
Function
itemPrefetchHandler
itemPrefetchHandler routes /api/v1/workspaces/{ws}/items/{ref} GETs to a static map keyed by ref so each link-test can declare just the items it needs
internal/mcp/dispatch_http_links_test.go:18
↓ 7 callers
Method
journalScheduleAfterTx
(tx *sql.Tx, id, change, key, role, before, actor string)
internal/store/schedule_journal.go:157
↓ 7 callers
Function
jsonRecord
(pid int, exe string)
internal/buildtools/bug4068_pidfile_test.go:27
↓ 7 callers
Function
jsonUnmarshalString
(s string, v any)
internal/server/bug3331_search_scope_test.go:309
↓ 7 callers
Function
keepPathMessage
keepPathMessage is the client-facing text of a keep-path error. Only text this handler authored reaches it: a store.ValidationError's Reason (the stor
internal/server/handlers_import_bundle.go:1467
↓ 7 callers
Method
kid
(title string)
internal/server/handlers_milestone_test.go:16
↓ 7 callers
Method
lateDoneForReopenTest
(t *testing.T, sc *models.ItemSchedule, in ResolveInput, now string)
internal/store/schedule_reopen_test.go:694
↓ 7 callers
Method
link
(t *testing.T, parent, child int)
internal/store/commitment_links_pg_test.go:59
↓ 7 callers
Function
linkInvalid
(detail string)
internal/schedule/links.go:548
↓ 7 callers
Method
liveTokens
(t *testing.T, userID string)
internal/server/task4745_pending_link_test.go:189
↓ 7 callers
Method
merge
Merge a fetched page (see mergeBySeq).
web/src/lib/chat/model.ts:55
↓ 7 callers
Method
misses
(t *testing.T, i int)
internal/store/commitment_cancel_test.go:45
↓ 7 callers
Function
mkUnverifiedUser
(t *testing.T, srv *Server, email string)
internal/server/my_invitations_test.go:58
↓ 7 callers
Function
mount
(html: string)
web/src/lib/collections/paneFocus.svelte.test.ts:18
↓ 7 callers
Function
mustCollectionID
(t *testing.T, srv *Server, wsID, slug string)
internal/server/bug3334_fail_closed_test.go:169
↓ 7 callers
Method
mustNotExist
mustNotExist is the counterfactual half of every refusal leg: the thing a 403-after-the-write would have left behind.
internal/server/handlers_workspace_create_consent_test.go:178
↓ 7 callers
Function
newBUG3687Fixture
(t *testing.T, srv *Server)
internal/server/bug3687_activity_visible_page_test.go:33
↓ 7 callers
Function
newCutterBus
newCutterBus builds a bus whose Redis connection can be severed, plus the miniredis behind it, so a test can publish directly to the channel while the
internal/watchevents/redis_reconnect_test.go:94
↓ 7 callers
Function
newMailSink
newMailSink stands up a fake Maileroo v2 endpoint that records every outgoing email onto a channel, and returns a Sender wired to it. Mirrors the http
internal/server/handlers_verify_email_test.go:35
↓ 7 callers
Function
newMonitorEnsureDM
(stderr io.Writer)
cmd/pad/cmd_watch_chat_ensure.go:33
↓ 7 callers
Function
newReplayBuffer
(size int)
internal/events/bus.go:453
↓ 7 callers
Function
newReplayBuffer
(size int)
internal/watchevents/watchevents.go:381
↓ 7 callers
Function
newRestoreAuthzFixture
newRestoreAuthzFixture is the delete fixture with both attachments tombstoned.
internal/server/handlers_storage_restore_authz_test.go:48
↓ 7 callers
Function
newSeededFlippedBus
(t *testing.T)
internal/events/redis_generation_guard_test.go:35
↓ 7 callers
Function
newSquatFixture
(t *testing.T)
internal/server/bug3382_verify_claim_test.go:30
↓ 7 callers
Function
newWatchHarness
newWatchHarness posts size bytes to srv. statuses are what import-status answers, in order; the last repeats.
cmd/pad/bug3476_import_watch_test.go:57
↓ 7 callers
Function
newWebhookTestWorkspace
newWebhookTestWorkspace creates a user + workspace so webhook FK constraints are satisfied, and returns the workspace ID.
internal/store/webhooks_test.go:16
↓ 7 callers
Function
normalizeAgentName
(raw: string)
web/src/lib/chat/presence.ts:38
↓ 7 callers
Function
notFoundCollErr
notFoundCollErr is the create/list wire shape for a missing collection.
internal/cli/collection_alias_test.go:10
↓ 7 callers
Method
notifications
TASK-4103 C2b-1 and C2b-2: the frozen instant of an overridden floating fire, and the fire stamp that keys the notification.
internal/store/schedule_fire_stamp_test.go:14
↓ 7 callers
Method
now
()
internal/materialize/supervisor_test.go:280
↓ 7 callers
Function
numericInput
numericInput pulls an int64 out of a JSON-typed input value. JSON decoders deliver numbers as float64 (or json.Number when UseNumber()); we accept bot
internal/mcp/dispatch_http_routes.go:2003
↓ 7 callers
Method
oauthUser
(t *testing.T, email string)
cmd/pad/cmd_auth_2fa_test.go:74
↓ 7 callers
Function
on
(day: string)
web/src/lib/calendar/presentation.ts:490
↓ 7 callers
Function
opLogIDs
(t *testing.T, s *store.Store, itemID string)
internal/store/task3531_compaction_test.go:62
↓ 7 callers
Method
openGatesForBlockerTx
openGatesForBlockerTx observes success on the writer connection before it can disappear. The caller holds the blocker's row, by its UPDATE or its pin,
internal/store/commitment_gates.go:838
↓ 7 callers
Function
outcomeServer
TASK-3132 (carved from IDEA-3131): `pad item update`'s success line said nothing about the body — "Updated REF" was identical for a one-character edit
cmd/pad/item_update_outcome_test.go:23
↓ 7 callers
Function
outputJSON
(v interface{})
cmd/pad/main.go:405
↓ 7 callers
Method
owned
(method, path string, body any)
internal/server/handlers_milestone_test.go:25
↓ 7 callers
Function
packageHTTPResponse
packageHTTPResponse turns the recorded handler response into an MCP CallToolResult, mirroring ExecDispatcher's "JSON → structured + text fallback" beh
internal/mcp/dispatch_http.go:802
↓ 7 callers
Function
paneFocusables
( container: HTMLElement, isVisible: (el: HTMLElement) => boolean = isFocusableVisible, )
web/src/lib/collections/paneFocus.ts:37
↓ 7 callers
Function
parseAttachmentFilename
parseAttachmentFilename extracts the filename from a Content-Disposition header. Mirrors the CLI's helper of the same name (cmd/pad/main.go parseAttac
internal/mcp/dispatch_http_attachments.go:308
↓ 7 callers
Function
parseFieldFlag
parseFieldFlag parses a --field key=value flag value according to the field's declared schema type. JSON-typed and multi_select fields receive parsed
cmd/pad/cmd_item.go:138
↓ 7 callers
Function
parsePadURI
parsePadURI extracts (workspace, kind, arg) from a pad:// URI. arg is empty for list-style resources (no trailing segment). Forms accepted: pad://w
internal/mcp/resources.go:654
↓ 7 callers
Function
parsesAsCompleteExport
parsesAsCompleteExport reports whether body is a JSON export that claims to be whole: valid JSON whose workspaces array is present.
internal/server/bug3626_account_export_test.go:77
↓ 7 callers
Function
pgOnly
pgOnly returns a store on the startup (unbounded) pool of an isolated cloned Postgres database, skipping when no Postgres is configured.
internal/store/runtime_pool_test.go:32
↓ 7 callers
Function
pidAttr
pidAttr is the whole-token form of a pid attribute for find: "pid=704" alone also matches a record carrying pid=7044.
internal/materialize/supervisor_test.go:237
↓ 7 callers
Method
pinCommitmentTx
pinCommitmentTx takes the locks in the order the file comment names and returns the component of the root schedule plus the schedules of any extra ite
internal/store/commitment_links.go:210
↓ 7 callers
Function
planLimitDetails
planLimitDetails is the structured half of a plan-limit refusal, shared by the 403 and by the bulk envelope's per-item failure. It takes the request s
internal/server/handlers_cloud.go:1856
↓ 7 callers
Method
planLimitMintOpts
planLimitMintOpts returns the store option that makes a user-scoped mint enforce the owner's plan limit inside its own transaction (BUG-2808). Cloud m
internal/server/handlers_cloud.go:1709
↓ 7 callers
Function
pollAndSaveCLIAuth
pollAndSaveCLIAuth polls a pending CLI auth session until it is approved, then persists the issued token as credentials for cfg.BaseURL(). It is the s
cmd/pad/cmd_auth.go:528
↓ 7 callers
Function
postTokenBasic
(srv *Server, form url.Values, clientID, secret string)
internal/server/task3394_install_tokens_test.go:88
↓ 7 callers
Function
prepareProvision
prepareProvision is the confirm handler's first half, as the owner.
internal/server/handlers_apps_provision_test.go:355
↓ 7 callers
Function
presenceRows
(t *testing.T, srv *Server, token string)
internal/server/task4040_presence_test.go:39
↓ 7 callers
Function
printChatResponse
(cmd *cobra.Command, action string, raw json.RawMessage)
cmd/pad/cmd_chat.go:257
↓ 7 callers
Method
publishCommentEvent
publishCommentEvent publishes a real-time event for comment changes.
internal/server/handlers_comments.go:613
↓ 7 callers
Method
publishCommitmentGraphWrite
publishCommitmentGraphWrite publishes item_updated, as every schedule write does, for each item an applied graph write touched: its ends and every ite
internal/server/handlers_commitment_links.go:225
↓ 7 callers
Method
publishHeartbeats
publishHeartbeats emits one liveness frame per workspace this instance is currently subscribed to. No-op until phase 2 (see config.EventsHeartbeat).
internal/events/redis_heartbeat.go:333
↓ 7 callers
Function
purgeAll
()
web/src/lib/chat/chatRecords.ts:94
↓ 7 callers
Function
pushCmd
pushCmd is `pad push <ref> -m "message"` (IDEA-2544 Phase 1) — the "push this to my agent" verb: an explicit, user-authored instruction bound to an it
cmd/pad/cmd_push.go:33
↓ 7 callers
Function
putRowlessBlob
--- Rowless-blob sweep (BUG-2406) ------------------------------------- putRowlessBlob writes bytes straight into the fs backend with no attachments r
internal/server/orphan_gc_test.go:747
↓ 7 callers
Method
queryValues
(t *testing.T)
cmd/pad/bug4024_item_list_json_autopage_test.go:96
↓ 7 callers
Method
readAttachment
readAttachment handles pad://workspace/{ws}/attachments/{id}. It requests the existing thumb-md path so authorization, workspace isolation, image proc
internal/mcp/resources.go:531
↓ 7 callers
Function
readChatSeen
(t *testing.T, path string)
internal/cli/chat_seen_test.go:20
↓ 7 callers
Function
readReopenID
(t *testing.T, f *schedHTTP)
internal/server/schedule_reopen_privacy_test.go:13
↓ 7 callers
Function
readWorkflow
(t *testing.T, name string)
internal/buildtools/ci_release_branches_test.go:69
↓ 7 callers
Function
realDir
(t *testing.T, d string)
internal/buildtools/install_refresh_test.go:1688
↓ 7 callers
Function
rebind2
rebind2 turns this file's single ? (or two) into Postgres placeholders.
internal/store/task3531_compaction_test.go:37
↓ 7 callers
Function
redactAPIWorld
(t *testing.T)
internal/server/handlers_item_redact_test.go:20
↓ 7 callers
Function
redactFixture
(t *testing.T, token string)
internal/store/redact_test.go:122
↓ 7 callers
Function
refsOf
(rows []BootstrapAgendaRow)
internal/store/schedule_bootstrap_test.go:45
↓ 7 callers
Function
refused
(format string, args ...any)
internal/appfetch/appfetch.go:54
↓ 7 callers
Method
reindexCommentMentionsTx
reindexCommentMentionsTx makes comment_mentions agree with a comment's body, inside the caller's transaction (TASK-3917, IDEA-3906). live is false fo
internal/store/comment_mentions.go:57
↓ 7 callers
Function
relationTargetOf
relationTargetOf reads back the stored target slug for a relation field.
internal/store/collections_relation_rename_test.go:41
↓ 7 callers
Function
renderItemTable
renderItemTable is the testable core of PrintItemTable: it lays the item list out into maxWidth columns and writes to w. Columns are REF/TITLE · STATU
internal/cli/format.go:257
↓ 7 callers
Function
renderItemsGroupedByCollectionMarkdown
renderItemsGroupedByCollectionMarkdown is the markdown counterpart of printItemsGroupedByCollection (#898): one `## Icon Name (N)` heading per collect
cmd/pad/cmd_item.go:806
↓ 7 callers
Method
renegotiateLinked
(i int, in models.CommitmentRenegotiateInput)
internal/store/commitment_renegotiate_cascade_test.go:19
↓ 7 callers
Method
requireAppsGrantOwner
requireAppsGrantOwner is requireAppsOwner for the doors that GRANT an app access or hand out its credentials: install preview and confirm, install cod
internal/server/handlers_apps_install.go:222
↓ 7 callers
Function
requireInteractiveSession
requireInteractiveSession refuses a request authenticated by a long-lived API token, and is the gate on every door that mints, rotates or edits one (B
internal/server/handlers_tokens.go:64
↓ 7 callers
Method
requireUnrestrictedAccess
requireUnrestrictedAccess denies, with 403 and message, a caller whose workspace access is scoped to specific collections. It gates the capabilities t
internal/server/handlers_export_bundle.go:50
↓ 7 callers
Method
resolveWorkspace
resolveWorkspace resolves a workspace by slug or UUID, scoped to the authenticated user's accessible workspaces when a user context is present. Return
internal/server/server.go:4251
↓ 7 callers
Function
restorableHusks
restorableHusks is the question the console asks: what would this user see under "Deleted workspaces"? cutoff mirrors the purge retention the handler
internal/server/handlers_cloud_autocreate_husk_test.go:53
↓ 7 callers
Function
restrictedMember
restrictedMember builds a member whose access is tasks only, a task whose parent sits in ideas (its title is the leak signal), and a task with a hidde
internal/server/bug3334_fail_closed_test.go:192
↓ 7 callers
Method
rowExists
(t *testing.T, id string)
internal/store/attachments_gc_claim_test.go:75
↓ 7 callers
Function
runItemBacklinks
(t *testing.T, format string, args ...string)
cmd/pad/bug4026_history_backlinks_json_test.go:239
↓ 7 callers
Method
runOpLogGCTick
runOpLogGCTick is one tick of the periodic loop. No outer timeout because PruneSweep itself is bounded by the size of the candidate list (one DB query
internal/server/oplog_gc.go:129
↓ 7 callers
Function
runPidFileRefresh
runPidFileRefresh runs the real script against a stub on the test's own port and returns the pad.pid path and the fixture bytes written to it.
internal/buildtools/bug4068_pidfile_test.go:45
↓ 7 callers
Function
sameTimes
(a, b []time.Time)
internal/schedule/bounds_test.go:33
↓ 7 callers
Function
sameTitles
(t *testing.T, what string, got []string, want ...string)
internal/store/items_field_range_test.go:106
↓ 7 callers
Function
scanCollectionDoneFilters
scanCollectionDoneFilters consumes rows yielding (id, schema, settings) and resolves each into a collectionDoneFilter. When a collection's schema fai
internal/store/items.go:5323
↓ 7 callers
Function
scanRequestBody
scanRequestBody reads the whole body once. A body that is not exactly one well-formed JSON value reports nothing: the caller's own decode reports the
internal/server/middleware_request_text.go:542
↓ 7 callers
Method
scheduleChangesQ
(q Queryer, workspaceID, scheduleID string)
internal/store/schedule_carry_v2.go:185
↓ 7 callers
Function
scheduleItemAction
(t *testing.T, name string)
internal/mcp/task4105_schedule_test.go:60
← previous
next →
2,501–2,600 of 31,685, ranked by callers