MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 4 callersFunctionnoteServerTimezone
(v scheduleView)
cmd/pad/cmd_schedule.go:149
↓ 4 callersMethodnotificationAccess
notificationAccess is the SHARED gate: may n's recipient still be told about n's subject. Order is privacy first, so when several fail the recorded re
internal/server/push_gates.go:66
↓ 4 callersFunctionnotifyAttachmentSurfaceOpen
(event: AttachmentSurfaceOpenEvent)
web/src/lib/attachments/events.ts:519
↓ 4 callersFunctionnow
()
web/src/lib/utils/activityEpisodes.test.ts:7
↓ 4 callersMethodnow
()
internal/events/redis_heartbeat_test.go:29
↓ 4 callersFunctionnthPositional
nthPositional returns pos[n] or "" when absent.
internal/mcp/resources_http.go:365
↓ 4 callersFunctionnulRefusalReason
nulRefusalReason classifies the store's NUL refusal and returns the sentence a caller should be given. ONE classifier, SEVERAL envelopes — and the se
internal/server/server.go:3291
↓ 4 callersFunctionnulTriggersIn
nulTriggersIn reads the NUL triggers present in the named files' namespaces, name -> stored SQL. GLOB rather than LIKE: LIKE's `_` is a single-charac
internal/store/nulcolumns.go:1047
↓ 4 callersFunctionnumericFiles
(t *testing.T, dir string)
internal/cli/session_registry_test.go:51
↓ 4 callersMethodoauthRequestToFositeRequest
oauthRequestToFositeRequest hydrates a stored row into a fresh fosite.Request, fetching the client by ID and unmarshalling the session bytes into the
internal/oauth/storage.go:567
↓ 4 callersMethodobserve
observe records a gap the bus just reported and says whether to announce it NOW. False means the announcement is latched and will come back through co
internal/server/stream_gap_announcer.go:79
↓ 4 callersFunctionoccupiedEnd
occupiedEnd applies an offset using the schedule's own civil arithmetic. Validate it even when a deadline takes precedence over the window label.
internal/store/commitment.go:360
↓ 4 callersFunctionok
(resp: Awaited<ReturnType<APIRequestContext['get']>>, what: string)
web/e2e/bug-3447-launchpad-live.spec.ts:36
↓ 4 callersFunctionok
(resp: Awaited<ReturnType<APIRequestContext['get']>>, what: string)
web/e2e/task-2234-command-palette-a11y.spec.ts:39
↓ 4 callersFunctionok
(resp: Awaited<ReturnType<APIRequestContext['get']>>, what: string)
web/e2e/task-2224-sse-request-budget.spec.ts:21
↓ 4 callersMethodonHint
A chat notice arrived: schedule a coalesced refetch and tell subscribers.
web/src/lib/stores/chat.svelte.ts:120
↓ 4 callersFunctionone
(items: CalendarResponse['items'])
web/src/lib/calendar/monthGrid.test.ts:124
↓ 4 callersMethodopenBootstrapEnabled
openBootstrapEnabled reports whether open-bootstrap is active for this server: bypass flag is set AND we're not in cloud mode. Cloud mode always wins
internal/server/bootstrap.go:201
↓ 4 callersFunctionopenEventSource
(workspaceSlug: string)
web/src/lib/services/sse.svelte.ts:493
↓ 4 callersFunctionopenServerLog
openServerLog opens the background server's log for appending, owner-only. The mode argument applies only on create, so a log left 0644 by an earlier
internal/cli/server.go:100
↓ 4 callersFunctionoracleRule
oracleRule builds the vendored rule alone, as the engine hands it to the library (elapsed rules fast-forwarded to base). steps is the budget; 0 is unb
internal/schedule/oracle_test.go:22
↓ 4 callersMethodorphanGCGraceConfigured
orphanGCGraceConfigured returns the effective grace period — operator-configured when set, the default otherwise. Read under the config mutex; used by
internal/server/orphan_gc.go:533
↓ 4 callersMethodoutboxClaimBudget
()
internal/store/event_outbox.go:335
↓ 4 callersMethodoutboxClaimRows
()
internal/store/event_outbox.go:328
↓ 4 callersMethodoutboxClaimableRowCap
outboxClaimableRowCap is the claim-side per-row ceiling, kept at the same multiple of the write cap under the test seam as it is in production so a lo
internal/store/event_outbox.go:326
↓ 4 callersMethodownedWorkspaces
(t *testing.T)
internal/server/handlers_plan_limit_race_test.go:65
↓ 4 callersFunctionownerState
ownerState tests path's owner.lock. When it is free the caller now holds it, and must call release after removing the directory.
internal/testtmp/lock_unix.go:50
↓ 4 callersFunctionownsWriteDeadline
ownsWriteDeadline reports whether a request's route bounds its own writes, so the middleware must leave its connection alone. compressSkips exempts th
internal/server/middleware_write_deadline.go:61
↓ 4 callersFunctionp
(f: string)
web/e2e/lib/real-install.ts:62
↓ 4 callersFunctionpanicAfterMint
BUG-3191: a panic after a bundle import has minted its workspace used to skip the handler's keep arm, the only place a failed import's owner row is wr
internal/server/handlers_import_bundle_bug3191_test.go:19
↓ 4 callersMethodparentLink
(t *testing.T)
internal/mcp/dispatch_http_clear_parent_test.go:133
↓ 4 callersFunctionparseAttachmentFilename
parseAttachmentFilename pulls the filename parameter out of a Content-Disposition header. Returns "" when the header is absent or unparseable so the c
cmd/pad/cmd_attachment.go:506
↓ 4 callersFunctionparseCollectionFieldsDSL
parseCollectionFieldsDSL parses the CLI's --fields DSL into a {fields: [...]} map ready for json.Marshal. Empty input returns an empty Fields slice (t
internal/mcp/dispatch_http_routes.go:781
↓ 4 callersFunctionparseItemListParams
parseItemListParams extracts item list parameters from the request query string.
internal/server/handlers_items.go:4580
↓ 4 callersFunctionparseMCPRequestBodyWithSource
parseMCPRequestBodyWithSource is parseMCPRequestBody plus the provenance of the tool name, decided at the branch that produced it (BUG-2819): every pl
internal/server/middleware_mcp_audit.go:511
↓ 4 callersFunctionparsePublicItem
(raw: unknown, index = 0)
web/src/lib/components/share/shareView.ts:153
↓ 4 callersFunctionparseWorkspaceSettingsMap
(raw string)
internal/models/workspace_settings.go:148
↓ 4 callersFunctionpartialImportCategory
partialImportCategory chooses a fixed category for a KEPT import from the error's own leading words. The keep-path errors are all minted in importBund
internal/server/handlers_import_bundle.go:1429
↓ 4 callersMethodpatch
(t *testing.T, tok string, it models.Item, body map[string]any)
internal/server/task3615_catch_up_test.go:90
↓ 4 callersFunctionpath
(key, hotkey, label, note, onPress)
plugin/hooks/register.js:625
↓ 4 callersFunctionpermissionDeniedPayload
permissionDeniedPayload is the one permission_denied envelope, for every door that produces one: the remote 403, the remote dispatcher's own scope gat
internal/mcp/errors.go:1621
↓ 4 callersFunctionpersistUpserts
( userId: string | null, ws: string, rows: ItemIndexRow[], /** * The access epoch the WRITER believes de
web/src/lib/stores/localIndexPersistence.ts:572
↓ 4 callersFunctionpick
(i: number)
web/e2e/copy-dialog.spec.ts:656
↓ 4 callersFunctionplantNULInWorkspaceName
plantNULInWorkspaceName writes the legacy state through a raw handle with the NUL triggers dropped — which is what a pre-enforcement binary was.
cmd/pad/cmd_db_nul_test.go:137
↓ 4 callersFunctionplaybookMatchCmd
()
cmd/pad/cmd_playbook.go:244
↓ 4 callersFunctionplaybooksColl
(t *testing.T, e *appsEnv)
internal/server/handlers_apps_provision_test.go:328
↓ 4 callersFunctionpollSubscriberCount
pollSubscriberCount READS the server's registration state rather than publishing a probe to infer it. The probe version worked and was a trap for the
internal/events/redis_namespace_test.go:261
↓ 4 callersFunctionpostJSONRPC
postJSONRPC drives one JSON-RPC request through a Streamable HTTP transport and returns the decoded envelope. Modern-era requests are identified by th
internal/mcp/transport_test.go:28
↓ 4 callersFunctionpostMCPBody
(srv *Server, path, token, body string)
internal/server/task2308_mcp_scope_test.go:53
↓ 4 callersFunctionpostSignInDoor
(srv *Server, path, body, ct, origin, remoteAddr string)
internal/server/bug3680_cross_site_signin_doors_test.go:33
↓ 4 callersFunctionprStateColor
(state string)
cmd/pad/cmd_github.go:466
↓ 4 callersMethodpreflightAsAttacker
preflightAsAttacker runs the dry run as the restricted editor and returns both the parsed response and the RAW bytes, because one of the assertions be
internal/server/handlers_items_copy_attachment_authz_test.go:104
↓ 4 callersFunctionprepareCarriedSchedule
prepareCarriedSchedule is the validation half of insertCarriedScheduleTx: pure (no database), so the copy preflight asks the question the copy does (T
internal/store/schedule_carry.go:144
↓ 4 callersFunctionpreserveProjectionMetadata
( existing: ItemIndexRow | undefined, next: ItemIndexRow, )
web/src/lib/stores/itemRowMerge.ts:46
↓ 4 callersFunctionpreserveRootFlagGlobals
preserveRootFlagGlobals restores workspaceFlag, formatFlag and urlFlag when the test ends. They are bound to the root command's persistent flags, so a
cmd/pad/root_flag_globals_test.go:10
↓ 4 callersFunctionprintImportScheduleDrops
printImportScheduleDrops prints each schedule the import refused (TASK-4104 D2); the item itself imported.
cmd/pad/import_summary.go:31
↓ 4 callersFunctionprintServerInfo
(report *serverInfoReport)
cmd/pad/server_info.go:312
↓ 4 callersFunctionprocessIsGone
processIsGone reports whether pid has exited. Signal 0 delivers nothing and only performs the existence and permission checks; EPERM means it is alive
internal/cli/pidfile_unix.go:286
↓ 4 callersFunctionptrBool
(b bool)
internal/store/task4315_chat_setting_test.go:158
↓ 4 callersMethodpublishAttempts
()
internal/server/handlers_push_publish_result_test.go:44
↓ 4 callersMethodpublishCollectionEvent
publishCollectionEvent publishes a real-time collection-level change (BUG-2265). collectionID is the STABLE identity clients match on; Collection carr
internal/server/handlers_collections.go:692
↓ 4 callersMethodpublishWatchNotifications
publishWatchNotifications inspects updated.LastMutation (TASK-2533, models.ItemMutationSignal — set race-free inside the SAME transaction that writes
internal/server/handlers_watch_notify.go:63
↓ 4 callersFunctionpushOnce
(t *testing.T, srv *Server, slug, itemSlug, token, key string)
internal/server/task3585_push_key_test.go:50
↓ 4 callersFunctionq
(sel: string)
web/src/lib/components/attachments/AttachmentPdfPreview.svelte.test.ts:83
↓ 4 callersMethodqueryOAuthRequestRow
queryOAuthRequestRow reads a row by signature from the named table and returns (request, active, err). - For oauth_pkce_requests, active is always tr
internal/store/oauth.go:850
↓ 4 callersMethodqueueSnapshot
()
internal/server/materialize_recovery_test.go:169
↓ 4 callersFunctionquoteIdent
quoteIdent quotes a SQL identifier. The names come from this package's own list rather than from user input, but the trigger restoration learned that
internal/store/nulscan.go:440
↓ 4 callersFunctionrank
(t: string)
web/src/lib/dashboard/caps.ts:27
↓ 4 callersFunctionrawItem
( userId: string | null, ws: string, id: string, )
web/src/test/idbHarness.ts:163
↓ 4 callersFunctionrawWatchStreamStatus
rawWatchStreamStatus opens the watch stream and returns only the status code, closing immediately. Used for the refusal legs, where there is no stream
internal/server/stream_admission_test.go:26
↓ 4 callersFunctionreachabilityGrid
reachabilityGrid calls fn for every cell of the HOURLY/MINUTELY INTERVAL x BYHOUR x BYMINUTE x start grid that TestReachabilityCheckIsExact and TestBo
internal/schedule/reachability_test.go:43
↓ 4 callersFunctionread
()
web/src/lib/attachments/hostAddress.test.ts:26
↓ 4 callersFunctionreadEpoch
()
web/src/test/identityEpochMock.svelte.ts:38
↓ 4 callersFunctionreadFrame
(r io.Reader)
internal/materialize/worker.go:129
↓ 4 callersFunctionreadJSON
(path string, v any)
scripts/decision-eval/attention/main.go:325
↓ 4 callersFunctionreadPluginFile
(t *testing.T, name string)
internal/mcp/chatgpt_plugin_package_test.go:72
↓ 4 callersFunctionreadSavedCreds
(t *testing.T, base string)
cmd/pad/cmd_auth_agent_signup_test.go:113
↓ 4 callersFunctionreadStdinBody
readStdinBody reads an item body from stdin and REFUSES a blank one — empty or whitespace-only — with an error naming the cause (BUG-3100). A lost her
cmd/pad/cmd_item.go:4970
↓ 4 callersFunctionreadWorkspaceContextInput
(filePath string, useStdin bool)
cmd/pad/workspace_context.go:101
↓ 4 callersFunctionreadingOf
readingOf is the wall clock of an instant in loc, labelled UTC.
internal/schedule/engine.go:26
↓ 4 callersFunctionready
()
web/src/routes/(console)/settings/account/task4129SettleFences.svelte.test.ts:131
↓ 4 callersFunctionreapply095
reapply095 runs migration 095 again through the real runner (applySQLiteMigration: its own transaction, and the schema_migrations row), after forgetti
internal/store/migration_095_items_fts_test.go:50
↓ 4 callersFunctionreasonOf
BUG-2829: an HTTP 413 is a deliberate server cap, and both transports used to report it as server_error, which reads as transient and invites a retry
internal/mcp/too_large_test.go:27
↓ 4 callersMethodrebaseNewestVersionPatch
rebaseNewestVersionPatch keeps the newest version exact when an unversioned write replaces the row's body (BUG-3745). Versions are reverse patches res
internal/store/items.go:6694
↓ 4 callersFunctionrebind
rebind turns the single ? placeholder these tests use into Postgres's $1.
internal/store/bug3136_step2_twin_test.go:230
↓ 4 callersMethodreclaimRefusedBlob
(ctx context.Context, backend attachments.AttachmentStore, hash, storageKey string)
internal/server/orphan_gc.go:495
↓ 4 callersMethodreconcileRestoreCommit
reconcileRestoreCommit re-reads an item after a version-restore commit reported an error, to determine whether the restore's transaction DURABLY lande
internal/server/handlers_item_versions.go:578
↓ 4 callersFunctionrecoveryFiles
(t *testing.T, dir string)
cmd/pad/bug3035_edit_guard_test.go:119
↓ 4 callersFunctionredactCensus
(t *testing.T, s *Store, token string)
internal/store/redact_test.go:59
↓ 4 callersFunctionredactJSONEncode
(value any)
internal/store/redact_match.go:276
↓ 4 callersFunctionredirectToLogin
* The session-expiry redirect every 401 below takes. It runs the open items' * keepers first (BUG-3571 part 2): the redirect does not change the iden
web/src/lib/api/client.ts:903
↓ 4 callersFunctionrefLess
refLess orders refs by prefix, then by their number as a number ("CONVE-13" before "CONVE-1287").
internal/server/handlers_item_context.go:613
↓ 4 callersFunctionrefreshIcon
()
web/src/lib/components/editor/attachment-chip.ts:280
↓ 4 callersMethodrefuseInvisibleRelationOverrides
refuseInvisibleRelationOverrides is the visibility check the MIGRATE doors owe their SUPPLIED half. The four write doors go through resolveRelationRe
internal/server/relation_referents.go:328
↓ 4 callersFunctionrefuseRelationIssues
refuseRelationIssues writes the 400 a write door owes and reports whether it did. One function so the six refusing doors cannot phrase the same refusa
internal/server/relation_referents.go:287
↓ 4 callersFunctionrefuseSoftDelete
BUG-3479: removeUnusableWorkspace returned nil when its own soft-delete FAILED, and its contract says nil means "the workspace is gone". Every caller
internal/server/bug3479_remove_unusable_truth_test.go:19
↓ 4 callersFunctionrefusedBlobServer
BUG-3652: an upload refused at its row insert (the storage cap, TASK-3619) used to leave its blob on disk with no row, uncharged, until the rowless sw
internal/server/bug3652_refused_upload_blob_test.go:23
↓ 4 callersMethodrelayAwareness
relayAwareness broadcasts an awareness frame unchanged, after noting which client IDs this connection owns (TASK-2206; see awareness.go). Every awaren
internal/collab/room.go:816
↓ 4 callersFunctionreleaseSlot
()
web/src/lib/services/sse.svelte.ts:192
↓ 4 callersFunctionremapAttachmentRefs
remapAttachmentRefs replaces "pad-attachment:OLD" with "pad-attachment:NEW" for every (old, new) pair in the map. Pure string operation — kept private
internal/store/attachments.go:1831
← previousnext →4,501–4,600 of 31,685, ranked by callers