MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 69 callersMethodlink
(t *testing.T, parent, child int, pr, cr string, off models.ScheduleLinkOffset)
internal/store/commitment_links_test.go:64
↓ 69 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
↓ 68 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
↓ 68 callersFunctioncompile
(t *testing.T, s Spec)
internal/schedule/nextbetween_test.go:12
↓ 68 callersMethodfill
(count: number)
web/src/lib/stores/chatThread.svelte.test.ts:90
↓ 68 callersFunctionrealPNG
realPNG returns a tiny but real PNG (1x1 transparent) so image.DecodeConfig succeeds.
internal/server/handlers_attachments_test.go:68
↓ 67 callersMethodeval
(t *testing.T, nowTS string, limit int)
internal/store/schedule_deadline_eval_test.go:33
↓ 66 callersMethodString
()
internal/cli/pidfile.go:117
↓ 66 callersFunctionauthJson
(fixture: SuiteFixture)
web/e2e/lib/attachment-viewer.ts:593
↓ 66 callersMethodreq
req builds a request from A to B with the standard actor.
internal/store/attachments_copy_plan_test.go:85
↓ 65 callersMethodHeader
()
internal/mcp/chatgpt_security.go:204
↓ 65 callersMethodSeedCollectionsFromTemplate
SeedCollectionsFromTemplate seeds the workspace with collections from the named template. An empty template name materializes the default collections
internal/store/collections.go:1236
↓ 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 callersMethodopen
(t *testing.T)
internal/store/needs_read_test.go:135
↓ 65 callersFunctionptr
(v T)
internal/store/schedule_fire.go:212
↓ 64 callersFunctionmustSchemaCollection
(t *testing.T, srv *Server, wsID, name, schema string)
internal/server/handlers_items_copy_preflight_test.go:119
↓ 64 callersFunctiontick
()
web/src/lib/items/crashDraft.svelte.test.ts:15
↓ 63 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
↓ 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 callersMethodmk
(t *testing.T, title, fields string)
internal/store/items_field_range_test.go:38
↓ 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 callersMethodSetObserver
(Observer)
internal/events/subscribe_after_close_test.go:13
↓ 62 callersMethodall
all returns every message sent so far, flattened.
internal/server/task3939b_push_fixture_test.go:49
↓ 62 callersFunctionchatSessionEnv
(t *testing.T)
cmd/pad/cmd_chat_direction_test.go:22
↓ 62 callersFunctionforEachDialect
(t *testing.T, fn func(t *testing.T, driver store.DriverType))
internal/server/workspace_access_notify_test.go:147
↓ 62 callersFunctiongetDashboard
helper: fetch the dashboard and return the parsed response
internal/server/handlers_dashboard_test.go:25
↓ 62 callersFunctionliveCmdhelpDoc
liveCmdhelpDoc returns a minimal cmdhelp.Document with every command path the read-only catalog references. Lighter than re-running pad's full cobra e
internal/mcp/catalog_readonly_test.go:534
↓ 61 callersMethodaddEventListener
(type: 'toolchange', listener: (ev: Event) => void)
web/src/lib/webmcp/types.d.ts:78
↓ 61 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
↓ 60 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
↓ 60 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:191
↓ 60 callersMethodvisibleCollectionIDs
(r *http.Request, workspaceID string)
internal/server/server.go:3571
↓ 59 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
↓ 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:274
↓ 59 callersFunctionnewRecentSet
(max int, ttl time.Duration)
cmd/pad/cmd_watch.go:98
↓ 58 callersMethodGetWorkspaceMember
GetWorkspaceMember retrieves a single membership record.
internal/store/workspace_members.go:446
↓ 58 callersFunctioncreateTestDoc
(t *testing.T, s *Store, workspaceID, title, content string)
internal/store/store_test.go:392
↓ 58 callersFunctiondoMultipartUpload
(srv *Server, slug, filename string, body []byte)
internal/server/handlers_attachments_test.go:52
↓ 58 callersFunctionnewAccessFixture
(t *testing.T, driver store.DriverType)
internal/server/workspace_access_notify_test.go:38
↓ 58 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:975
↓ 58 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:50
↓ 58 callersFunctiontestServerWithEvents
(t *testing.T)
internal/server/handlers_events_test.go:20
↓ 58 callersMethoduser
user makes a workspace member with a time zone, "" for none.
internal/store/schedule_fire_test.go:61
↓ 57 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
↓ 57 callersMethodCreateItemLink
--- Item Links ---
internal/store/items.go:4230
↓ 57 callersMethodCreateWorkspace
(input models.WorkspaceCreate)
internal/cli/client.go:228
↓ 57 callersFunctionmustItem
(t *testing.T, srv *Server, wsID, collID, title string)
internal/server/authz_cross_workspace_test.go:114
↓ 57 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:3647
↓ 57 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:1941
↓ 56 callersMethodString
()
internal/mcp/chatgpt_catalog.go:51
↓ 56 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
↓ 56 callersMethodfire
(t *testing.T, nowTS string)
internal/store/schedule_fire_test.go:51
↓ 55 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
↓ 55 callersMethodUnsubscribe
Unsubscribe removes a subscriber and closes its channel.
internal/watchevents/watchevents.go:339
↓ 55 callersMethodexportBundle
(t *testing.T)
internal/store/schedule_carry_test.go:32
↓ 55 callersFunctioninst
(t *testing.T, s string)
internal/schedule/nextbetween_test.go:27
↓ 55 callersFunctionnewSchedCopy
(t *testing.T)
internal/store/schedule_copy_test.go:29
↓ 55 callersMethodon
(event: 'beforeTransaction', fn: (props: { transaction: LocalChangeProbe }) => void)
web/src/lib/items/confirmedBase.ts:125
↓ 55 callersFunctionpinned
pinned is a timed schedule pinned to zone.
internal/schedule/nextbetween_test.go:22
↓ 54 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:487
↓ 54 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:965
↓ 53 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:409
↓ 53 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
↓ 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:1070
↓ 53 callersMethodListCollections
(workspaceID string)
internal/store/collections.go:463
↓ 53 callersMethodgate
gate writes a gate and fails the test when it is refused.
internal/store/commitment_gates_test.go:27
↓ 53 callersFunctionmk
(id: string, sort_order: number)
web/src/lib/collections/reorder.test.ts:138
↓ 53 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
↓ 52 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:1539
↓ 52 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
↓ 52 callersFunctionnewChatFixture
(t *testing.T)
internal/server/handlers_chat_test.go:22
↓ 52 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
↓ 51 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:325
↓ 51 callersFunctionappAPIFixture
(t *testing.T, access string)
internal/server/task3401_app_api_test.go:54
↓ 51 callersFunctiondialWS
(t *testing.T, server *httptest.Server, itemID string)
internal/collab/manager_test.go:404
↓ 51 callersFunctionseedDoc
( fixture: SuiteFixture, request: APIRequestContext, titlePrefix = 'Collab persistence', fields: Record<st
web/e2e/lib/collab-helpers.ts:47
↓ 51 callersFunctiontestServerWithWatchEvents
(t *testing.T)
internal/server/handlers_watch_events_test.go:18
↓ 50 callersMethodCreateCollectionGrant
--- Collection Grants --- CreateCollectionGrant creates a direct grant on a collection for a user.
internal/store/grants.go:13
↓ 50 callersMethodGetCollection
(id string)
internal/store/collections.go:283
↓ 50 callersMethodcount
(t *testing.T, q string, args ...any)
internal/server/task3401b_app_writes_test.go:55
↓ 50 callersMethodpost
(path string, body interface{}, result interface{})
internal/cli/client.go:3194
↓ 50 callersMethodsnapshot
The storage-form markdown a flush-now would PATCH for `ctx`, without * sending anything and without the dedupe: the text to keep in this * brows
web/src/lib/collab/collabFlush.svelte.ts:145
↓ 49 callersMethodBetween
Between returns the occurrences with from <= At < to, strictly ascending with no two at one instant. A window longer than MaxWindow is CapWindow. More
internal/schedule/engine.go:352
↓ 49 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
↓ 49 callersFunctioncreateTestWorkspaceViaAPI
(t *testing.T, srv *Server)
internal/server/handlers_items_attribution_test.go:136
↓ 49 callersMethodpatch
(expected: string, next: string[])
web/src/lib/items/fieldWriteOrder.test.ts:35
↓ 48 callersMethodDispatch
(ctx context.Context, cmdPath []string, cliArgs []string)
internal/mcp/dispatch.go:40
↓ 48 callersMethodOpen
(name string)
internal/store/nulguard.go:315
↓ 48 callersMethodanother
(t *testing.T, title string)
internal/store/schedules_test.go:33
↓ 48 callersFunctioncontentBackends
()
internal/store/bug3124_content_bearing_test.go:38
↓ 48 callersFunctionentriesOf
(m map[string]any)
internal/server/handlers_agenda_test.go:94
↓ 48 callersMethodget
(path string, result interface{})
internal/cli/client.go:3165
↓ 48 callersFunctions256Challenge
s256Challenge computes the base64url(no-padding, SHA256(verifier)) per RFC 7636 §4.2. PKCE clients use this to derive code_challenge from code_verifie
internal/server/handlers_oauth_test.go:2542
↓ 47 callersMethodDeleteCollection
DeleteCollection soft-deletes a collection by id. When expectedUpdatedAt is non-empty it opts into optimistic-concurrency control (BUG-2265): the row'
internal/store/collections.go:912
↓ 47 callersMethodQ
Q returns the store's pool as a Queryer — the executor for reads that run outside any transaction. Server code uses it to call the *Q read variants th
internal/store/store.go:989
↓ 47 callersMethodRead
([]byte)
internal/server/middleware_form_body.go:115
↓ 47 callersFunctionclearOutbox
(t *testing.T, s *Store)
internal/store/event_outbox_test.go:76
↓ 47 callersFunctionnowNano
nowNano is a sub-second (nanosecond) UTC timestamp. Used where a stored timestamp doubles as an optimistic-concurrency token and must distinguish writ
internal/store/store.go:1594
↓ 47 callersMethodrole
(t *testing.T, i int, role string)
internal/store/commitment_links_test.go:90
↓ 47 callersFunctionschedMap
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_commitments_http_test.go:95
← previousnext →201–300 of 28,840, ranked by callers