MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 8 callersFunctionclaimN
(t *testing.T, s *Store)
internal/store/decisions_debounce_test.go:46
↓ 8 callersMethodclearJobs
clearJobs drops the jobs the item creations owed, so a test sees only what the backfill owes.
internal/decision/effort_backfill_test.go:41
↓ 8 callersFunctioncommentCmd
--- comments ---
cmd/pad/cmd_item.go:3237
↓ 8 callersMethodcommit
commit checks the budget, then commits with no deadline context: a deadline that fired during COMMIT would leave the outcome unknown.
internal/store/commitment_cascade.go:62
↓ 8 callersFunctioncompletedOn
completedOn returns the completed count of one day.
internal/server/handlers_me_agenda_counts_test.go:26
↓ 8 callersFunctionconfigurePush
configurePush wires the push gateway from cfg and, when one is configured, starts the push dispatcher (TASK-3939 B2c). A gateway URL with no usable se
cmd/pad/cmd_server.go:1577
↓ 8 callersMethodcontext
(tok, query string)
internal/server/plan3598_item_context_test.go:65
↓ 8 callersFunctioncountsFixture
(t *testing.T)
internal/store/agenda_counts_test.go:31
↓ 8 callersMethodcreateItemTx
createItemTx is the tx-taking form of item creation (PLAN-2357 / DR-9a) and the single implementation behind BOTH CreateItem and the cross-workspace c
internal/store/items.go:545
↓ 8 callersMethodcreateScheduleRolesAt
createScheduleRolesAt creates the schedule with the legacy roles derived from its kind, or with native roles when roles is given.
internal/store/schedules.go:459
↓ 8 callersFunctioncreateTestUserDirect
(t *testing.T, srv *Server, email string)
internal/server/task3401_app_api_test.go:175
↓ 8 callersFunctioncredentialKey
credentialKey also recognises compound names such as access_token, webhook_secret and Proxy-Authorization, regardless of case or separators.
internal/logging/redaction.go:18
↓ 8 callersMethodcredentialLiveness
credentialLiveness re-checks the credential that opened this request. It switches on how the MIDDLEWARE said the principal was established (`ctxAuthK
internal/server/stream_credential_liveness.go:96
↓ 8 callersFunctiondeadlineLinkFixture
(t *testing.T, n int)
internal/store/commitment_renegotiate_cascade_test.go:11
↓ 8 callersMethoddeadlineStateTx
deadlineStateTx is the decision under deadlineMissCandidateTx with its two "nil" answers told apart. d is nil when the schedule has no native deadline
internal/store/schedule_deadline_eval.go:501
↓ 8 callersFunctiondeadlocked
(errs []error)
internal/store/commitment_links_pg_test.go:143
↓ 8 callersFunctiondelegatedFixture
(t *testing.T, installID, offered string)
internal/server/task3399_delegated_flow_test.go:26
↓ 8 callersFunctiondeleteAsUser
Delete-authorization tests for PLAN-2382 / TASK-2384. The item-detail attachment strip offers a delete affordance gated on the UI's grant-aware `canE
internal/server/handlers_storage_delete_authz_test.go:28
↓ 8 callersMethoddevices
()
internal/server/handlers_push_devices_test.go:69
↓ 8 callersMethoddispatch
dispatch runs one MCP tool call through the in-process HTTP dispatcher against the real server, as the fixture's owner.
internal/mcp/dispatch_http_clear_assignment_test.go:105
↓ 8 callersFunctiondoLoopbackRequest
(srv *Server, method, path string, body interface{})
internal/server/server_test.go:45
↓ 8 callersFunctiondrainFixture
drainFixture wires a server to a webhook sink and returns the workspace the events belong to.
internal/server/outbox_drain_test.go:72
↓ 8 callersFunctionendGuardHTTP
endGuardHTTP is a schedHTTP whose item has a one-shot in 2099 and a status field with two delivering closes and one abandoning one.
internal/server/schedule_end_guard_test.go:21
↓ 8 callersMethodenrichItemForResponse
enrichItemForResponse populates derived closure and parent info on a single item. An optional non-nil visibleIDs marks a restricted caller, whose rela
internal/server/item_lineage.go:91
↓ 8 callersMethodenrichItemsWithParent
enrichItemsWithParent batch-populates parent link info on a slice of items. Used by list endpoints where calling enrichItemForResponse per-item is too
internal/server/item_lineage.go:15
↓ 8 callersFunctionevaluated
evaluated stores one answer for (item, set) at `at`, as the runner does when it completes an evaluation.
internal/store/decisions_debounce_test.go:35
↓ 8 callersFunctionexists
(path string)
internal/testtmp/lock_unix_test.go:51
↓ 8 callersFunctionexportJSONFrom
(t *testing.T)
internal/server/bug3354_import_bundle_bomb_test.go:56
↓ 8 callersFunctionextractFieldValue
extractFieldValue pulls a named string field out of an item's fields JSON blob. Returns "" when the blob is empty, unparseable, or carries no string v
internal/store/status_transitions_backfill.go:17
↓ 8 callersFunctionextractFieldValue
extractFieldValue extracts a string value from a JSON fields string.
internal/server/handlers_dashboard.go:1567
↓ 8 callersFunctionfail
(path, format string, args ...any)
internal/appmanifest/manifest.go:132
↓ 8 callersMethodfanOutLocally
fanOutLocally distributes an event to all local subscribers for the event's workspace and stores it in the replay buffer, with no id-space information
internal/events/redis_bus.go:2716
↓ 8 callersMethodfill
()
internal/schedule/caps.go:37
↓ 8 callersFunctionfixtureDoc
fixtureDoc returns a small cmdhelp.Document with the items the catalog tests need most often. Catalog actions only require their own cmdPath to be pre
internal/mcp/registry_test.go:51
↓ 8 callersFunctionfreezeRefill
BUG-3308: per-address buckets key an IPv6 client on its /64, and every limiter's map has a size cap whose eviction cannot hand an attacker back their
internal/server/middleware_ratelimit_bug3308_test.go:27
↓ 8 callersFunctiongetConfig
--- helpers --- getConfig is loadConfig for commands: a config.toml that fails to load ends the process with the error.
cmd/pad/main.go:290
↓ 8 callersMethodgetLimiter
getLimiter returns key's bucket, creating it if absent, without charging it. Tests read a bucket through it; production code charges through allow ins
internal/server/middleware_ratelimit.go:146
↓ 8 callersMethodgetOrCreate
getOrCreate returns the existing Room for itemID or, atomically under m.mu, mints a new one. Holding m.mu across the lookup + insertion keeps the grac
internal/collab/manager.go:954
↓ 8 callersMethodgetScheduleByIDQ
getScheduleByIDQ reads a schedule by id, nil when there is none.
internal/store/schedule_fire.go:60
↓ 8 callersMethodgetWorkspace
getWorkspace returns the full workspace object resolved by middleware. Falls back to direct resolution for routes without RequireWorkspaceAccess.
internal/server/server.go:3519
↓ 8 callersFunctiongotTimes
(occ []Occurrence)
internal/schedule/bounds_test.go:25
↓ 8 callersFunctiongraphNode
(resp GraphResponse, ref string)
internal/server/handlers_graph_test.go:23
↓ 8 callersFunctiongroupList
(t *testing.T, s *Server, u *models.User, mods ...func(context.Context) context.Context)
internal/server/handlers_workspace_groups_test.go:69
↓ 8 callersFunctionhasNUL
(vals ...string)
internal/store/schedule_carry_v2.go:132
↓ 8 callersMethodhook
(t *testing.T)
internal/server/handlers_apps_webhooks_test.go:23
↓ 8 callersFunctionhourly
120 hours
internal/server/handlers_agenda_test.go:468
↓ 8 callersFunctionhydrateItemComputedMetadata
(item *models.Item)
internal/store/items.go:7319
↓ 8 callersFunctionidentityGateSuite
(g: SurfaceGate)
web/src/test/identityGateSuite.ts:71
↓ 8 callersFunctionimportLimitFixture
BUG-2793. `POST /workspaces` enforces the user-scoped `workspaces` plan limit; `POST /workspaces/import` did not, and it mints a workspace through the
internal/server/handlers_workspace_import_plan_limit_test.go:27
↓ 8 callersFunctioninitializedWorkspace
initializedWorkspace is a workspace on an instance that has a user, so the fresh-install bypass does not apply.
internal/server/bug3334_fail_closed_test.go:35
↓ 8 callersFunctioninsertRawOutboxRow
insertRawOutboxRow writes a row STRAIGHT TO SQL, bypassing writeOutboxTx. That bypass is the point rather than a shortcut: rows over the row cap cann
internal/store/event_outbox_bounds_test.go:47
↓ 8 callersFunctionisolateHome
isolateHome points BOTH home variables at dir: os.UserHomeDir reads HOME on unix and USERPROFILE on Windows, and a test that sets only one would mutat
internal/cli/session_owner_test.go:25
↓ 8 callersMethodjournalScheduleChangeRowTx
journalScheduleChangeRowTx is the lineage writer with the row id chosen by the caller, so a cascade can name its first row as the root of the rest.
internal/store/schedule_journal.go:142
↓ 8 callersFunctionkeys
(m interface{})
internal/cmdhelp/json_test.go:671
↓ 8 callersFunctionlink
(this: { parser: { parseInline(t: Tokens.Generic[]): string } }, { href, title, tokens }: Tokens.Link)
web/src/lib/chat/markdown.ts:34
↓ 8 callersFunctionliveFrame
(clientID, clock uint64)
internal/collab/awareness_test.go:132
↓ 8 callersFunctionmatchDelimiter
(code: string, openIndex: number, open: string, close: string)
web/src/test/identityFenceSource.ts:190
↓ 8 callersMethodmaybeInjectWorkspace
maybeInjectWorkspace defaults the `workspace` input from the dispatcher's WorkspaceLister when the caller didn't pass one explicitly (TASK-1076). The
internal/mcp/dispatch_http_advanced.go:786
↓ 8 callersMethodmilestone
()
internal/server/handlers_milestone_test.go:20
↓ 8 callersFunctionmimeDispoFixture
BUG-2413: the attachment read path must fail CLOSED on Content-Disposition — a stored MIME that is not explicitly inline-safe is served as an attachme
internal/server/handlers_attachments_download_mime_test.go:27
↓ 8 callersFunctionmint
()
web/e2e/task-3415-real-install.spec.ts:228
↓ 8 callersMethodmissEvidence
(t *testing.T)
internal/store/commitment_move_deadline_test.go:35
↓ 8 callersMethodms
TASK-4358: the milestone write doors and the reader-scoped read.
internal/server/handlers_milestone_test.go:14
↓ 8 callersFunctionmyInvitationIDs
(t *testing.T, f *accessFixture, tok string)
internal/server/bug2136_invite_consent_test.go:27
↓ 8 callersMethodnative
(t *testing.T, it *models.Item, start string, roles models.CommitmentRolesInput)
internal/store/commitment_links_test.go:34
↓ 8 callersMethodneedsAdmittedWorkspaces
needsAdmittedWorkspaces is the workspaces the caller may be shown needs from: memberships and guest workspaces, narrowed to a token's consent allow-li
internal/server/handlers_me_needs.go:192
↓ 8 callersFunctionnewAppTestDispatcher
()
internal/webhooks/app_delivery_test.go:87
↓ 8 callersFunctionnewAttributionFixture
(t *testing.T)
internal/server/bug3372_attribution_test.go:31
↓ 8 callersFunctionnewAuditTestStore
Store-layer tests for the MCP audit log (PLAN-943 TASK-960). What's covered: - InsertMCPAuditEntry validates required fields and round-trips correct
internal/store/mcp_audit_test.go:25
↓ 8 callersFunctionnewBlankFixture
(t *testing.T)
internal/server/bug3028_relation_blank_test.go:25
↓ 8 callersFunctionnewChatGPTMCPServer
newChatGPTMCPServer is the ChatGPT catalog's server (TASK-3321): the same registry and dispatcher as remote /mcp, its own tool list, instructions and
cmd/pad/cmd_server_chatgpt.go:20
↓ 8 callersFunctionnewDeleteAuthzFixture
(t *testing.T, srv *Server)
internal/server/handlers_storage_delete_authz_test.go:57
↓ 8 callersFunctionnewMCPRecorder
()
cmd/pad/mcp_deadline_recorder_test.go:13
↓ 8 callersFunctionnewSchedHTTPOn
(t *testing.T, srv *Server)
internal/server/handlers_commitments_http_test.go:37
↓ 8 callersFunctionnewTransformFixture
(t *testing.T, srv *Server)
internal/server/handlers_attachments_transform_authz_test.go:52
↓ 8 callersFunctionnormalizeMime
Strip parameters and case, matching the server's `NormalizeMIME`.
web/src/lib/attachments/display.ts:190
↓ 8 callersFunctionnulRepairRemedy
nulRepairRemedy is the sentence appended to a strict refusal, naming the flag that would have accepted it. It says something DIFFERENT when the flag
internal/server/import_nul_repair.go:102
↓ 8 callersFunctionoauthIdentityRows
(t *testing.T, srv *Server, provider, subject string)
internal/server/task3351_social_claim_test.go:53
↓ 8 callersMethodobserver
()
internal/events/observer.go:303
↓ 8 callersMethodoff
(event: 'beforeTransaction', fn: (props: { transaction: LocalChangeProbe }) => void)
web/src/lib/items/confirmedBase.ts:126
↓ 8 callersFunctionoffsetOf
offsetOf converts a stored offset to the pure layer's.
internal/store/commitment_links.go:156
↓ 8 callersMethodopen
open starts a long-lived MCP request (a GET stream, or a listen POST) and returns a channel closed when its handler returns.
internal/server/bug3837_mcp_credential_tick_test.go:96
↓ 8 callersFunctionopenSecondConnection
( userId: string | null, ws: string, )
web/src/test/idbHarness.ts:62
↓ 8 callersFunctionoutstandingKey
outstandingKey is the key of the schedule's outstanding occurrence, "" when it has none.
internal/store/commitment.go:109
↓ 8 callersFunctionownerSink
TASK-3408 (U10c): per-endpoint delivery state, the owner no-duplicate ledger, the per-install rate cap and the 24 h drop. ownerSink is an owner webhoo
internal/server/handlers_apps_u10c_test.go:23
↓ 8 callersFunctionpackInterchangeBundle
packInterchangeBundle writes the entries as a tar.gz in the exporter's order: pad-export.json, the manifest, then the blobs by name.
internal/server/interchange_golden_test.go:159
↓ 8 callersFunctionparse
(iso: string)
web/src/lib/chat/grouping.ts:27
↓ 8 callersFunctionparseFieldKVP
(raw any)
internal/mcp/dispatch_http.go:1037
↓ 8 callersFunctionparseSchema
(collection: Collection)
web/src/lib/types/index.ts:3141
↓ 8 callersFunctionpatchContent
BUG-3080: one browser tab's content writes to an item are ordered by the `client_write` counter it stamps on them. A write whose counter is below one
internal/server/bug3080_client_write_test.go:17
↓ 8 callersFunctionpatternNames
(p: Node, out: Set<string>)
web/src/test/identityFenceAst.ts:726
↓ 8 callersFunctionpersistDelta
( userId: string | null, ws: string, rows: ItemIndexRow[], cursor: string, includesUnparentedMetadata: bo
web/src/lib/stores/localIndexPersistence.ts:724
↓ 8 callersFunctionpickTemplateInteractive
pickTemplateInteractive presents a numbered list of visible templates grouped by category and returns the chosen template's Name. Returns the default
cmd/pad/templates_picker.go:72
↓ 8 callersFunctionpublishN
BUG-2736: a restarted process used to reuse its ID space, so a cursor issued by a PREVIOUS incarnation could be answered from the CURRENT one's buffer
internal/events/idspace_test.go:26
↓ 8 callersMethodpublishWorkspaceAccessChangedFromRequest
publishWorkspaceAccessChangedFromRequest is publishWorkspaceAccessChanged with the actor read off the request that made the change.
internal/server/workspace_access_notify.go:69
↓ 8 callersFunctionputDecisionSettings
(t *testing.T, srv *Server, token string, body map[string]interface{})
internal/server/decision_settings_test.go:67
↓ 8 callersFunctionrateLimitAddr
rateLimitAddr is the part of a client address a per-address bucket is keyed on (BUG-3308): an IPv6 address counts as its /64, because a single subscri
internal/server/middleware_ratelimit.go:1009
↓ 8 callersFunctionreadFenceSource
(url: URL)
web/src/test/identityFenceSource.ts:770
↓ 8 callersFunctionreadInterchangeGolden
readInterchangeGolden loads the golden directory as bundle entries.
internal/server/interchange_golden_test.go:130
↓ 8 callersMethodrecordDeadlineMissTx
recordDeadlineMissTx is the evaluator's writer, also used before applying a renegotiation. Both callers hold the schedule pin and use the same eligibi
internal/store/schedule_deadline_eval.go:526
← previousnext →1,901–2,000 of 28,840, ranked by callers