MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 3 callersFunctionclampRect
Clamp a rectangle to fit within `bounds`, integer coords throughout.
web/src/lib/components/editor/attachment-crop-modal.ts:398
↓ 3 callersFunctionclampScale
(scale: number, g: Geometry)
web/src/lib/attachments/zoom.ts:257
↓ 3 callersFunctionclassify
(entry: Pick<AgendaEntry, 'type' | 'audience'>)
web/src/lib/calendar/audience.ts:8
↓ 3 callersFunctionclassifyScheduleChanges
classifyScheduleChanges splits changes into the rows a restore keeps and the drops it reports. It writes nothing and mutates neither map argument, so
internal/store/schedule_carry_v2.go:233
↓ 3 callersFunctionclaudeSkillPath
(project string)
cmd/pad/bug3466_skill_overwrite_test.go:30
↓ 3 callersFunctionclaudeTool
()
internal/cli/skillstamp_test.go:14
↓ 3 callersMethodclause
clause is the SQL restriction for a query whose items table is aliased alias ("" for an unaliased items table).
internal/store/wiki_links.go:49
↓ 3 callersMethodcleanup
()
internal/server/middleware_ratelimit.go:253
↓ 3 callersFunctioncleanupMarkdown
(md string)
internal/urlimport/generic.go:99
↓ 3 callersMethodclearOpLogCompactionQ
clearOpLogCompactionQ forgets an item's compaction when its op-log is deleted. Hygiene, not safety: CompactedResumeCovers already requires the snapsho
internal/store/yjs_compaction.go:183
↓ 3 callersFunctionclearTimer
()
web/src/lib/services/accessStream.svelte.ts:86
↓ 3 callersFunctionclearTimerFor
(id: string)
web/src/lib/stores/toast.svelte.ts:282
↓ 3 callersFunctioncli
(args)
plugin/hooks/register.js:91
↓ 3 callersFunctioncliAuthScheme
cliAuthScheme picks the URL scheme for the CLI auth link. Precedence: 1. If the request hit this server over TLS (r.TLS != nil) → "https". 2. If a tr
internal/server/handlers_cli_auth.go:291
↓ 3 callersFunctionclickBoardCard
(card: Locator, timeout = 12_000)
web/e2e/lib/boardClickProbe.ts:21
↓ 3 callersFunctionclip
(t, n = W)
plugin/hooks/register.js:527
↓ 3 callersFunctionclipLine
(s, n)
plugin/hooks/register.js:1256
↓ 3 callersMethodcloseItem
(t *testing.T, item *models.Item, status string)
internal/store/schedule_end_guard_test.go:41
↓ 3 callersMethodcloseOccurrenceTx
closeOccurrenceTx is the shared done, skip and lapse advance path. The caller holds the schedule pin and commits the occurrence, schedule and reminder
internal/store/schedule_resolve.go:609
↓ 3 callersMethodcloseOptions
closeOptions preserves the field's option order and excludes abandoning closes.
internal/store/items.go:5329
↓ 3 callersMethodcloseSocket
(code: number, reason: string)
web/src/lib/collab/wsProvider.svelte.ts:1647
↓ 3 callersFunctioncodeOrBlank
codeOrBlank wraps t in backticks unless t is empty. Any stray backtick characters inside t are stripped first so the resulting cell always carries exa
internal/urlimport/openapi.go:435
↓ 3 callersFunctioncoerceObject
(value: unknown)
web/src/lib/components/share/shareView.ts:72
↓ 3 callersFunctioncollCount
(list []ReportCollectionCount, slug string)
internal/store/reports_test.go:21
↓ 3 callersFunctioncollabClosedWithin
collabClosedWithin reports whether the server ended the WS within d.
internal/server/handlers_stream_session_liveness_test.go:332
↓ 3 callersFunctioncollabDialStatus
BUG-1308. Collab WebSocket dials used to draw on the general per-user API bucket (burst 60), so 100 dials from one user got 60 through, and a user's o
internal/server/handlers_collab_bug1308_test.go:23
↓ 3 callersFunctioncollapsePushMessage
(raw: string)
web/src/lib/push/message.ts:67
↓ 3 callersFunctioncollectServerInfoWithClient
(cfg *config.Config, client *cli.Client)
cmd/pad/server_info.go:167
↓ 3 callersFunctioncollection
()
web/src/lib/components/collections/BoardView.relationGroup.svelte.test.ts:75
↓ 3 callersMethodcollectionIDBySlugQ
collectionIDBySlugQ returns the collection's ID, or "" when the workspace has no live collection with that slug. ID only: the referent check compares
internal/store/relation_referents.go:1082
↓ 3 callersMethodcollectionIDForKind
collectionIDForKind resolves an artifact Kind to the destination collection in a workspace: whichever collection DECLARES that kind via its artifact_k
internal/server/handlers_artifact_import.go:39
↓ 3 callersFunctioncollectionSettingsOf
collectionSettingsOf parses a collection's settings, treating unreadable settings as empty the way every other done-field caller does.
internal/server/migrate_close_state.go:17
↓ 3 callersFunctioncollectionSlugs
(colls []models.Collection)
internal/store/collections_test.go:795
↓ 3 callersFunctioncollectionsCreateCmd
()
cmd/pad/cmd_collection.go:152
↓ 3 callersFunctioncollectionsUpdateCmd
collectionsUpdateCmd updates an existing collection's name, icon, description, prefix, schema, or sort order. Only flags the caller explicitly sets ar
cmd/pad/cmd_collection.go:305
↓ 3 callersFunctioncomment
(slug: string, body: string, asAgent = false)
web/e2e/lib/readme-seed.ts:86
↓ 3 callersMethodcomment
(t *testing.T, item *models.Item, body string)
internal/decision/per_comment_test.go:23
↓ 3 callersMethodcommentCurrent
commentCurrent reports whether every conventions_comments row for the comment is current, and whether there are any.
internal/decision/per_comment_test.go:43
↓ 3 callersFunctioncommentDeleteCmd
()
cmd/pad/cmd_item.go:3406
↓ 3 callersFunctioncommentEditCmd
()
cmd/pad/cmd_item.go:3349
↓ 3 callersFunctioncommentKeyFixture
TASK-3585: idempotency keys on comment create.
internal/server/task3585_comment_key_test.go:12
↓ 3 callersFunctioncommentWithActivity
commentWithActivity writes the pair the create handler writes: a `commented` activity carrying the given metadata, then the comment linked to it. An e
internal/store/comments_agent_name_test.go:28
↓ 3 callersFunctioncommitmentCheckRoles
(t *testing.T, s *Store)
internal/store/commitment_dates_migration_test.go:145
↓ 3 callersFunctioncommitmentGraphPath
(ws, kind, id string)
internal/cli/client_schedule.go:117
↓ 3 callersFunctioncommitmentOf
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_milestone_test.go:29
↓ 3 callersFunctioncompareGolden
(t *testing.T, name string, got []byte)
cmd/pad/mcp_wire_golden_test.go:162
↓ 3 callersFunctioncompeteOnce
BUG-3307. createWorkspaceQ probes for a free slug and then INSERTs; two creates of one name that both probed before either inserted raced, and the los
internal/store/bug3307_workspace_slug_test.go:21
↓ 3 callersFunctioncompletedOption
()
web/src/routes/(console)/agenda/agenda.svelte.test.ts:43
↓ 3 callersFunctioncompletedWorkValue
completedWorkValue is the value that closed a completed-work item: its own collection's done field (BUG-2640), falling back to "status" for a collecti
internal/server/handlers_project_intel.go:261
↓ 3 callersFunctioncompletedWorkValue
completedWorkValue is the value that closed a completed-work item: its own collection's done field, falling back to "status" for a collection the map
cmd/pad/cmd_project.go:389
↓ 3 callersFunctioncomputeAccessEpoch
computeAccessEpoch fingerprints the caller's EFFECTIVE visible resource set so a client can tell that the set changed without being told what it is.
internal/server/access_epoch.go:47
↓ 3 callersFunctioncomputeAdminUserStatus
computeAdminUserStatus derives the at-a-glance status pill from the underlying fields. Precedence is intentional: a disabled user with no workspace is
internal/store/users.go:473
↓ 3 callersFunctionconfigureEmailForTest
configureEmailForTest attaches an email.Sender wired to the given mock endpoint plus a base URL so s.baseURL != "" (the configured check looks at both
internal/server/cloud_admin_gate_test.go:772
↓ 3 callersFunctionconnectApp
(handlers: { onToolInput(args: Record<string, unknown>): void; onToolResult(result: ToolResultLike): void;
web/src/mcp-app/bridge.ts:23
↓ 3 callersMethodconnectionHas
BUG-2794. Create added the new workspace to the calling OAuth connection's allow-list (maybeAutoAddCreatorConnection); neither import door did, so a c
internal/server/handlers_workspace_import_autoadd_test.go:22
↓ 3 callersFunctionconsentClientName
consentClientName returns name cut to consentClientNameMax runes, with an ellipsis when it was cut, and whitespace runs collapsed so a name cannot pad
internal/server/handlers_oauth.go:2473
↓ 3 callersFunctioncontains
(list []string, v string)
internal/store/storetest/writecapture_test.go:154
↓ 3 callersFunctioncontains
(list []string, v string)
internal/appstore/items_test.go:417
↓ 3 callersFunctioncontains
(list []int, elem int)
internal/schedule/internal/rrule/util.go:60
↓ 3 callersFunctioncontains
(n: Node | null | undefined, x: Node)
web/src/lib/components/items/childIdentityFencePopulation.test.ts:519
↓ 3 callersFunctioncontainsFold
containsFold compares by strings.ToLower, the rule IsTerminalItem and the SQL LOWER(...) IN (...) filters use, so the abandoned check cannot match a v
internal/models/terminal.go:221
↓ 3 callersFunctioncontainsItem
(events []Event, itemID string)
internal/events/gap_signal_test.go:193
↓ 3 callersFunctioncontainsLiveCall
containsLiveCall reports whether src contains needle on a line that is not commented out. A plain substring scan is comment-blind, and that is not a
internal/mcp/dispatch_http_allowlist_guard_test.go:836
↓ 3 callersFunctioncontentStateSQLFor
contentStateSQLFor is contentStateSQL for a query that aliases the items table as something other than `i` — the backlink queries call it `s`, since t
internal/store/items.go:838
↓ 3 callersFunctioncontextCodeHash
(code string)
internal/store/app_item_actions.go:350
↓ 3 callersFunctioncontextFieldString
(fieldsJSON, key string)
internal/server/handlers_item_context.go:692
↓ 3 callersMethodcontrol
(msg: object)
web/src/lib/collab/wsProviderCatchUp.svelte.test.ts:31
↓ 3 callersFunctioncontrolled
()
web/src/lib/stores/chatSurface.svelte.test.ts:1220
↓ 3 callersFunctioncookieKindAccepted
cookieKindAccepted reports whether a session may be used as a browser cookie: only a web session (BUG-3350). A CLI session presented as a cookie is no
internal/server/handlers_account.go:48
↓ 3 callersMethodcopyAsAttacker
()
internal/server/handlers_items_copy_attachment_authz_test.go:117
↓ 3 callersFunctioncopyKeyServer
TASK-3585: the copy's one keyed retry. A server that advertises idempotency_keys gets a second attempt with the SAME key after an unknown outcome; one
internal/cli/task3585_copy_retry_test.go:16
↓ 3 callersFunctioncopyLimitBody
(n int)
internal/store/items_copy_attachment_limit_test.go:14
↓ 3 callersFunctioncopyStrings
copyStrings returns a defensive copy of a string slice so the helper's returned schema cannot mutate the caller's option list.
internal/collections/templates.go:469
↓ 3 callersMethodcopyTransport
copyTransport picks the RoundTripper the mutating copy runs on. A dedicated *http.Client is NOT enough on its own: retry behaviour in Go is usually i
internal/cli/client_items_copy.go:443
↓ 3 callersFunctioncount
(...states: OccurrenceState[])
web/src/lib/calendar/presentation.ts:356
↓ 3 callersMethodcount
(t *testing.T, q string, args ...any)
internal/server/handlers_apps_upgrade_test.go:52
↓ 3 callersFunctioncountAttachments
countAttachments counts live attachment rows in a workspace.
internal/server/handlers_attachments_test.go:615
↓ 3 callersFunctioncountChildProgress
(children: Item[], collections: Collection[])
web/src/lib/collections/childProgress.ts:117
↓ 3 callersFunctioncountInColl
TASK-3585: idempotency keys on cross-workspace copy and move.
internal/server/task3585_copy_key_test.go:12
↓ 3 callersFunctioncountParentLinks
countParentLinks returns how many `parent` link rows an item is the source of. The invariant is that a well-behaved item has at most one — the DELETE-
internal/store/parent_link_concurrency_test.go:30
↓ 3 callersFunctioncountRows
BUG-3135: the relay's append skips a frame byte-identical to an earlier row of the same item. These pin what is skipped, what is not, and what the ski
internal/store/bug3135_sync_frame_dedupe_test.go:17
↓ 3 callersMethodcountRows
(query string)
internal/server/handlers_items_copy_preflight_test.go:880
↓ 3 callersFunctioncountSource
(sources []string, want string)
internal/server/task3321_u1b_chatgpt_versions_test.go:44
↓ 3 callersFunctioncountUAChangeEvents
countUAChangeEvents returns the number of session_ua_changed rows in the audit log.
internal/server/middleware_session_ua_test.go:47
↓ 3 callersMethodcounts
()
internal/server/session_presence_observer_test.go:33
↓ 3 callersFunctioncover
(axis, v string)
internal/schedule/neverpartial_test.go:323
↓ 3 callersFunctioncreateActivityItem
TASK-2219 (audit C47): the web activity page filtered its loaded page by collection CLIENT-side, so a collection whose rows were not in the newest pag
internal/server/task2219_activity_collection_test.go:19
↓ 3 callersMethodcreateByTitle
createByTitle drives the create door as `user` with a relation supplied BY TITLE, returning the recorder so each leg can assert on the outcome.
internal/server/relation_titles_doors_test.go:276
↓ 3 callersMethodcreateCLIAuthSession
(ttl time.Duration, req CLIAuthRequester)
internal/store/cli_auth_sessions.go:96
↓ 3 callersFunctioncreateChatUser
(tag: string)
web/e2e/lib/chat-users.ts:18
↓ 3 callersFunctioncreateCloneAttachment
(t *testing.T, s *Store, wsID string)
internal/store/attachments_remap_chunk_test.go:94
↓ 3 callersFunctioncreateCollectionForCoercion
(t *testing.T, srv *Server, token, wsSlug, name, schema string)
internal/server/handlers_items_field_coercion_test.go:655
↓ 3 callersMethodcreateCollectionTx
createCollectionTx is CreateCollection on the caller's transaction, so the app installer creates companion collections in its one provisioning transac
internal/store/collections.go:69
↓ 3 callersFunctioncreateConfirmedBaseTracker
(source: ConfirmedBaseSource)
web/src/lib/items/confirmedBase.ts:92
↓ 3 callersMethodcreateCrew
(title string, supplied []any)
internal/server/relation_multi_roundtrip_test.go:65
↓ 3 callersFunctioncreateDocForTest
BUG-2798 / BUG-2796, at the route rather than at the validator. CONVE-19: models.ValidateDocumentTitle having a test proves the validator works, not
internal/server/handlers_documents_title_test.go:22
↓ 3 callersMethodcreateDocument
(t *testing.T, content string)
internal/store/attachments_document_refs_test.go:20
↓ 3 callersFunctioncreateKeyedSingleFlight
(options: SingleFlightOptions = {})
web/src/lib/stores/singleFlight.ts:99
↓ 3 callersFunctioncreateLineageLink
(spec lineageLinkSpec, sourceRef, targetRef string)
cmd/pad/lineage.go:126
↓ 3 callersFunctioncreatedIn
(rep *ReportData, label string)
internal/store/reports_tz_test.go:26
← previousnext →4,901–5,000 of 28,840, ranked by callers