MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 75 callersMethodHeader
()
internal/mcp/response_cap.go:197
↓ 75 callersFunctionNew
(s *store.Store)
internal/server/server.go:900
↓ 75 callersFunctionrealPNG
realPNG returns a tiny but real PNG (1x1 transparent) so image.DecodeConfig succeeds.
internal/server/handlers_attachments_test.go:68
↓ 75 callersMethodrun
(key: K)
web/src/lib/utils/keyedCoalescer.ts:10
↓ 74 callersMethodEventsSince
EventsSince returns events for a workspace with IDs greater than sinceID. Used to replay missed events on SSE reconnect (Last-Event-ID). Returns nil
internal/events/bus.go:318
↓ 74 callersFunctionNew
New wraps s. An empty s gives the zero Secret.
internal/secret/secret.go:37
↓ 74 callersMethodeval
(t *testing.T, nowTS string, limit int)
internal/store/schedule_deadline_eval_test.go:33
↓ 73 callersMethodrow
row seeds a pending queue row for bob (or opts.user) about the fixture item.
internal/server/task3939b_push_fixture_test.go:177
↓ 72 callersMethodReveal
Reveal returns the credential. Call it only where the value is used.
internal/secret/secret.go:45
↓ 72 callersMethodSubscribe
Subscribe returns a channel that receives every future Notification, with NO replay. There is exactly one logical stream (unlike internal/events.Event
internal/watchevents/watchevents.go:315
↓ 72 callersMethodbaseBody
()
internal/server/handlers_items_copy_preflight_test.go:215
↓ 72 callersMethodtick
()
internal/server/task3939b_push_fixture_test.go:222
↓ 71 callersFunctionauthJson
(fixture: SuiteFixture)
web/e2e/lib/attachment-viewer.ts:593
↓ 71 callersMethodfill
(count: number)
web/src/lib/stores/chatThread.svelte.test.ts:90
↓ 71 callersMethodlink
(t *testing.T, parent, child int, pr, cr string, off models.ScheduleLinkOffset)
internal/store/commitment_links_test.go:64
↓ 71 callersFunctionnewCollabTestServer
newCollabTestServer wires up an httptest server whose only handler upgrades the inbound WS, registers it with the manager, and waits for the session t
internal/collab/manager_test.go:368
↓ 70 callersMethodString
()
internal/cli/pidfile.go:126
↓ 70 callersMethodSubscribe
Subscribe registers a new subscriber for the given workspace and returns its event channel and its GAP SIGNAL — see SubscribeIfAllowed for what the se
internal/events/bus.go:226
↓ 70 callersMethodmk
(t *testing.T, title, fields string)
internal/store/items_field_range_test.go:38
↓ 69 callersMethodaddEventListener
(type: 'toolchange', listener: (ev: Event) => void)
web/src/lib/webmcp/types.d.ts:78
↓ 69 callersFunctiontick
()
web/src/lib/items/crashDraft.svelte.test.ts:15
↓ 68 callersMethodCreateAttachment
CreateAttachment inserts an attachment row. id and created_at are generated by the store. The caller is expected to have already written the blob via
internal/store/attachments.go:129
↓ 68 callersMethodCreateWorkspace
(input models.WorkspaceCreate)
internal/cli/client.go:237
↓ 68 callersFunctioncompile
(t *testing.T, s Spec)
internal/schedule/nextbetween_test.go:12
↓ 68 callersFunctionmustSchemaCollection
(t *testing.T, srv *Server, wsID, name, schema string)
internal/server/handlers_items_copy_preflight_test.go:119
↓ 68 callersMethodreq
req builds a request from A to B with the standard actor.
internal/store/attachments_copy_plan_test.go:85
↓ 67 callersFunctionnewRootCmd
newRootCmd constructs the pad CLI's root cobra command tree. Extracted from main() so tests can use the real tree (golden snapshots, schema validatio
cmd/pad/main.go:208
↓ 67 callersMethodopen
(t *testing.T)
internal/store/needs_read_test.go:136
↓ 67 callersFunctionsetupFormatRoutingTest
End-to-end coverage of the --format routing itself, not just the render helpers: the command is executed through cobra against an httptest server, so
cmd/pad/format_markdown_routing_test.go:25
↓ 66 callersMethodAppendYjsUpdate
AppendYjsUpdate persists a single Yjs binary update for an item and returns the new monotonic id. Callers (the WebSocket relay and the designated-appl
internal/store/yjs_updates.go:39
↓ 66 callersFunctionNew
New creates a Store backed by SQLite at the given path. The DSN is configured for safe concurrent use under Go's connection pool: - `_pragma=busy_ti
internal/store/store.go:495
↓ 66 callersMethodString
String is the canonical spelling: upper-case names, parts in the fixed order FREQ, INTERVAL, COUNT, UNTIL, WKST, BYMONTH, BYWEEKNO, BYYEARDAY, BYMONTH
internal/schedule/rule.go:433
↓ 66 callersFunctionnewNfx
(t *testing.T, srv *Server)
internal/server/handlers_me_needs_test.go:43
↓ 66 callersMethodon
(event: 'beforeTransaction', fn: (props: { transaction: LocalChangeProbe }) => void)
web/src/lib/items/confirmedBase.ts:125
↓ 65 callersMethodValidateSession
ValidateSession hashes the provided token, looks it up, checks expiry, and returns the session info including the associated user and binding metadata
internal/store/sessions.go:392
↓ 65 callersFunctioncreateTaskWithFields
createTaskWithFields is a small helper for the field-patch/OCC tests: POST a task with the given fields JSON and return the created item.
internal/server/handlers_items_fieldpatch_test.go:13
↓ 65 callersFunctionwriteError2
writeError2 is like writeError but also embeds a details object inside the error envelope. Shape: {"error":{"code":...,"message":...,"details":{...}}}
internal/server/handlers_cloud.go:1989
↓ 64 callersMethodPublish
Publish sends an event to all subscribers for the event's workspace. nil means ACCEPTED. A returned error is two different outcomes, the same pair in
internal/events/bus.go:305
↓ 64 callersMethodSetObserver
(Observer)
internal/events/subscribe_after_close_test.go:13
↓ 64 callersMethodall
all returns every message sent so far, flattened.
internal/server/task3939b_push_fixture_test.go:49
↓ 64 callersFunctionforEachDialect
(t *testing.T, fn func(t *testing.T, driver store.DriverType))
internal/server/workspace_access_notify_test.go:147
↓ 64 callersMethoduser
user makes a workspace member with a time zone, "" for none.
internal/store/schedule_fire_test.go:61
↓ 63 callersFunctionBuild
Build returns a cmdhelp Document without serializing it. Callers that need to inspect or further mutate the document (tests, dynamic enum resolvers in
internal/cmdhelp/json.go:83
↓ 63 callersMethodat
"Not mine" (TASK-4643): PUT|DELETE .../needs/not-mine and the hold it puts on GET /me/needs. The router tests run on SQLite and, with PAD_TEST_POSTGRE
internal/server/handlers_needs_not_mine_test.go:21
↓ 63 callersFunctiondispatchPadItem
dispatchPadItem runs one pad_item call through the fan-out handler and returns the fake dispatcher plus the tool result.
internal/mcp/catalog_item_fields_test.go:56
↓ 63 callersFunctionmk
(id: string, sort_order: number)
web/src/lib/collections/reorder.test.ts:138
↓ 63 callersFunctionnewSchedCopy
(t *testing.T)
internal/store/schedule_copy_test.go:29
↓ 63 callersFunctionrelationFixture
relationFixture builds the Cars/Colors shape from IDEA-2856 and returns the workspace, the two collections and one live colour.
internal/store/relation_referents_test.go:30
↓ 62 callersMethodBoolToInt
BoolToInt converts a Go bool to a query parameter value. SQLite: 0/1 (integers) PostgreSQL: true/false (native booleans)
internal/store/dialect.go:99
↓ 62 callersFunctionchatSessionEnv
(t *testing.T)
cmd/pad/cmd_chat_direction_test.go:22
↓ 62 callersMethodgate
gate writes a gate and fails the test when it is refused.
internal/store/commitment_gates_test.go:27
↓ 62 callersFunctionrequireMinRole
requireMinRole checks role and writes a 403 if insufficient. Returns true if the request should continue, false if it was rejected.
internal/server/middleware_auth.go:980
↓ 62 callersFunctionsessionCookieName
sessionCookieName returns the session cookie name. When running over TLS (secureCookies=true), the __Host- prefix is used to prevent subdomain cookie
internal/server/handlers_auth.go:51
↓ 62 callersFunctiontestServerWithCollab
testServerWithCollab wires a RoomManager onto a fresh test server so the collab handler answers 200/101 on the happy path. Tests that only assert on a
internal/server/handlers_collab_test.go:21
↓ 62 callersFunctiontestServerWithWatchEvents
(t *testing.T)
internal/server/handlers_watch_events_test.go:18
↓ 62 callersMethodvisibleCollectionIDs
(r *http.Request, workspaceID string)
internal/server/server.go:3629
↓ 61 callersMethodGetCollection
(id string)
internal/store/collections.go:284
↓ 61 callersMethodfire
(t *testing.T, nowTS string)
internal/store/schedule_fire_test.go:51
↓ 61 callersFunctiongetDashboard
helper: fetch the dashboard and return the parsed response
internal/server/handlers_dashboard_test.go:25
↓ 61 callersFunctiontestServerWithEvents
(t *testing.T)
internal/server/handlers_events_test.go:20
↓ 60 callersMethodCreateItemLink
--- Item Links ---
internal/store/items.go:4290
↓ 60 callersMethodGetAttachment
GetAttachment returns the attachment with the given id, or (nil, nil) if no such row exists. Soft-deleted rows ARE returned (so download handlers can
internal/store/attachments.go:415
↓ 60 callersMethodRemove
Remove deregisters a session. It must be idempotent and must not panic on an unknown id — the stream handler calls it from a defer that also runs on p
internal/server/session_presence.go:331
↓ 60 callersFunctionnewAccessFixture
(t *testing.T, driver store.DriverType)
internal/server/workspace_access_notify_test.go:38
↓ 60 callersFunctionrunSched
runSched runs one CLI call against a stub in its own subtest, so each call's server is closed before the next call sets the machine zone.
cmd/pad/task4105_remind_schedule_test.go:24
↓ 59 callersMethodGetWorkspaceMember
GetWorkspaceMember retrieves a single membership record.
internal/store/workspace_members.go:446
↓ 59 callersMethodPublish
Publish assigns the Notification a monotonic ID, stores it in the replay buffer, and fans it out to every live Subscribe channel. ID assignment and bu
internal/watchevents/watchevents.go:281
↓ 59 callersMethodSearch
(params SearchParams)
internal/store/search.go:221
↓ 59 callersMethodanother
(t *testing.T, title string)
internal/store/schedules_test.go:33
↓ 59 callersFunctiondoMultipartUpload
(srv *Server, slug, filename string, body []byte)
internal/server/handlers_attachments_test.go:52
↓ 59 callersFunctionmustItem
(t *testing.T, srv *Server, wsID, collID, title string)
internal/server/authz_cross_workspace_test.go:114
↓ 59 callersFunctionnewRecentSet
(max int, ttl time.Duration)
cmd/pad/cmd_watch.go:98
↓ 58 callersMethodDeleteWorkspace
DeleteWorkspace soft-deletes a workspace. Every user's tab for it goes in the same transaction; a restore does not bring them back (TASK-3256, PLAN-30
internal/store/workspaces.go:431
↓ 58 callersMethodFlush
Flush satisfies http.Flusher, which has no error return; a failure is recorded and reported through Err, Dead and the next Write.
internal/server/sse_stream.go:107
↓ 58 callersMethodOpen
(name string)
internal/store/nulguard.go:315
↓ 58 callersMethodResolveItem
ResolveItem tries UUID, then PREFIX-NUMBER ref, then an ordinary slug. A current ref wins over a colliding slug, including lowercase typed refs. Ref-s
internal/store/items.go:971
↓ 58 callersFunctioncreateTestDoc
(t *testing.T, s *Store, workspaceID, title, content string)
internal/store/store_test.go:412
↓ 58 callersMethodexportBundle
(t *testing.T)
internal/store/schedule_carry_test.go:32
↓ 58 callersMethodrequireItemVisible
requireItemVisible checks that the item's collection is visible to the requesting user. For guests with item-level grants, also verifies that the spec
internal/server/server.go:3705
↓ 57 callersMethodClose
Close stops every active room AND blocks until every in-flight Join goroutine has returned. After Close, Join is undefined — callers must coordinate s
internal/collab/manager.go:1597
↓ 57 callersFunctionrequireScriptDeps
uniqueName returns a stub name that is unique per test and under the 15-character comm limit pgrep -x matches on. requireScriptDeps skips when the env
internal/buildtools/install_refresh_test.go:80
↓ 57 callersMethoduser
(name string)
internal/server/handlers_me_needs_test.go:45
↓ 56 callersMethodError
()
internal/collab/applier.go:299
↓ 56 callersMethodpatch
(expected: string, next: string[])
web/src/lib/items/fieldWriteOrder.test.ts:35
↓ 56 callersMethodworkspace
workspace makes a workspace owned (and so a member as owner) by owner.
internal/server/handlers_me_needs_test.go:55
↓ 55 callersMethodCreateCollectionGrant
--- Collection Grants --- CreateCollectionGrant creates a direct grant on a collection for a user.
internal/store/grants.go:13
↓ 55 callersMethodDispatch
(ctx context.Context, cmdPath []string, cliArgs []string)
internal/mcp/dispatch.go:40
↓ 55 callersMethodListCollections
(workspaceID string)
internal/store/collections.go:464
↓ 55 callersFunctionUnmarshalItemFieldSchema
UnmarshalItemFieldSchema decodes a collection's stored schema JSON for a consumer that reasons about an ITEM's field values, applying SchemaWithoutRes
internal/models/collection_schema_item_fields.go:82
↓ 55 callersMethodUnsubscribe
Unsubscribe removes a subscriber and closes its channel.
internal/watchevents/watchevents.go:346
↓ 55 callersFunctionentriesOf
(m map[string]any)
internal/server/handlers_agenda_test.go:94
↓ 55 callersFunctioninst
(t *testing.T, s string)
internal/schedule/nextbetween_test.go:27
↓ 55 callersMethodmove
(i int, role, to string, mut func(*models.LinkedMoveInput))
internal/store/commitment_links_test.go:109
↓ 55 callersFunctionpinned
pinned is a timed schedule pinned to zone.
internal/schedule/nextbetween_test.go:22
↓ 55 callersMethodpost
(path string, body interface{}, result interface{})
internal/cli/client.go:3609
↓ 54 callersFunctionappAPIFixture
(t *testing.T, access string)
internal/server/task3401_app_api_test.go:54
↓ 54 callersMethodcountRows
(t *testing.T, query string, args ...interface{})
internal/store/workspace_purge_test.go:69
↓ 54 callersFunctionreadCSRFFromCookie
readCSRFFromCookie hits any consent-rendering endpoint that sets the CSRF cookie on first visit, returns the token. We use oauth/authorize because it'
internal/server/handlers_oauth_test.go:2501
↓ 54 callersFunctionschedMap
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_commitments_http_test.go:95
↓ 53 callersMethodGetBacklinks
GetBacklinks returns the items in `workspaceID` that contain a resolved `[[...]]` reference to `targetItemID`. Phase 1 only returns ref-kind backlinks
internal/store/wiki_links.go:1129
← previousnext →201–300 of 31,685, ranked by callers