MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 1 callersMethodListDeletedWorkspaces
ListDeletedWorkspaces returns the soft-deleted workspaces the current user owns that are still restorable (not yet past the purge window).
internal/cli/client.go:255
↓ 1 callersMethodListInstallsWithoutActions
ListInstallsWithoutActions returns active and inactive installs with a stored manifest and no action rows: those provisioned before U11. A work list o
internal/store/app_item_actions.go:494
↓ 1 callersMethodListInstallsWithoutWebhook
ListInstallsWithoutWebhook returns active and inactive installs that have a stored manifest and no hook row: those provisioned before U10 (TASK-3408).
internal/store/app_webhooks.go:215
↓ 1 callersMethodListItemAppActions
ListItemAppActions returns the active actions of the workspace's active installs that are offered on collectionID. The caller has already decided the
internal/store/app_item_actions.go:165
↓ 1 callersMethodListItemGrants
ListItemGrants returns all grants on an item.
internal/store/grants.go:174
↓ 1 callersMethodListItemReminders
--- Item reminders (IDEA-2641) --- ListItemReminders returns every reminder on an item, armed or fired.
internal/cli/client.go:3570
↓ 1 callersMethodListItemVersionsPage
ListItemVersionsPage is ListItemVersions with the BUG-2608 bounds: `limit` caps the newest-first window (0 = server default, i.e. unbounded), and `sum
internal/cli/client.go:745
↓ 1 callersMethodListMyInvitations
ListMyInvitations returns the pending invitations addressed to the caller, and whether the caller's email is verified (only a verified email is matche
internal/cli/client.go:3631
↓ 1 callersMethodListOwnedLiveWorkspaceIDs
ListOwnedLiveWorkspaceIDs returns the IDs of the live workspaces a user owns: exactly the set DeleteAccountAtomic soft-deletes, read with the same pre
internal/store/workspaces.go:554
↓ 1 callersMethodListPendingInvitationsAdmin
ListPendingInvitationsAdmin returns all pending invitations across all workspaces with workspace and inviter details for the admin panel.
internal/store/workspace_members.go:1684
↓ 1 callersMethodListPendingInvitationsForEmail
ListPendingInvitationsForEmail returns the invitations addressed to email that can still be accepted by userID: not accepted, not expired, to a live w
internal/store/my_invitations.go:41
↓ 1 callersMethodListPlaybooks
--- Playbooks --- ListPlaybooks returns the workspace's playbook metadata array (PLAN-1377 / TASK-1382). Same shape as bootstrap.playbooks.
internal/cli/client.go:1566
↓ 1 callersMethodListSessions
ListSessions returns the caller's currently-connected event-stream sessions as the server sees them. This is authoritative for delivery (the server's
internal/cli/client_sessions.go:31
↓ 1 callersMethodListShareLinkViews
ListShareLinkViews returns view history for a share link.
internal/store/share_links.go:335
↓ 1 callersMethodListStarredItems
ListStarredItems returns the current user's starred items in a workspace, following the server's next-offset until has-more is false (BUG-3790: the li
internal/cli/client.go:796
↓ 1 callersMethodListStarredItemsPage
ListStarredItemsPage returns at most limit of the current user's starred items, from the start of the list, and whether more exist (BUG-3790: MCP asks
internal/cli/client.go:782
↓ 1 callersMethodListStarredItemsWithoutBodies
ListStarredItemsWithoutBodies is ListStarredItems with every body (and its content_state) left empty (BUG-3790): the starred door windows the list aft
internal/store/item_stars.go:103
↓ 1 callersMethodListTags
ListTags returns the distinct tags used across a workspace's items with per-tag item counts (ordered by count desc then tag asc).
internal/cli/client.go:494
↓ 1 callersMethodListUserTokens
User-scoped API-token endpoints (GET/POST /auth/tokens, DELETE /auth/tokens/{id}). These are the mint/list/revoke calls behind `pad token` — the CLI c
internal/cli/client_tokens.go:27
↓ 1 callersMethodListWatches
ListWatches returns every watch the current user holds, across all workspaces they belong to (TASK-2533 — a watch is personal, not workspace-scoped; s
internal/cli/client.go:913
↓ 1 callersMethodListWorkspaceAccessUserIDs
ListWorkspaceAccessUserIDs returns every user who reaches a workspace: its members, plus every user holding a live grant in it (the same live-grant fi
internal/store/grants.go:480
↓ 1 callersMethodListWorkspaceInstalls
ListWorkspaceInstalls returns every install of the workspace, the uninstalled tombstones included, newest first.
internal/store/app_lifecycle.go:428
↓ 1 callersMethodListWorkspaces
ListWorkspaces returns every non-deleted workspace, unordered by user. This is intended for admin-panel cross-tenant views and the pre-auth/fresh-inst
internal/store/workspaces.go:15
↓ 1 callersMethodLiveRecurringScheduleTx
LiveRecurringScheduleTx reads the closing guard under the item update's transaction. Pin item then workspace, matching commitment writers. The item lo
internal/store/schedule_active.go:16
↓ 1 callersMethodLoginVerify2FA
LoginVerify2FA completes a 2FA login by submitting a TOTP or recovery code.
internal/cli/client.go:2144
↓ 1 callersMethodLogout
Logout destroys the current session.
internal/cli/client.go:2311
↓ 1 callersMethodMCPAuditLog
MCPAuditLog wraps next with audit recording. Mounts after MCPBearerAuth in registerMCPRoutes so currentUser + the token identity stashed by the auth m
internal/server/middleware_mcp_audit.go:216
↓ 1 callersMethodMCPCallNeedsWrite
MCPCallNeedsWrite reports what the wired classifier says about a call, false when none is wired. It exists so cmd/pad can pin that wireMCP wires the c
internal/server/middleware_mcp_scope.go:28
↓ 1 callersMethodMCPMountServesVersion
MCPMountServesVersion is the stream admission gate's answer to "does the transport wired for this mount serve version": /mcp/chatgpt when chatgpt is t
internal/server/mcp_stream_keepalive.go:226
↓ 1 callersMethodMatchPlaybook
MatchPlaybook asks the workspace's typed-decision provider whether text asks for one of the workspace's active playbooks (PLAN-3114 / TASK-3120). Read
internal/cli/client.go:1583
↓ 1 callersMethodMaterialize
Materialize runs job in the worker and returns its markdown. It starts the worker if none is running (waiting out any respawn backoff first), and wait
internal/materialize/supervisor.go:279
↓ 1 callersMethodMessage
Message is the one sentence every door refuses with. It names the change, the field and the values a caller may choose from, which is everything an ag
internal/models/close_state.go:104
↓ 1 callersMethodMilestoneChildIDs
MilestoneChildIDs lists the active selection's child ids so a caller can ask which of them its reader may see before a transaction opens. It feeds a v
internal/store/milestone.go:699
↓ 1 callersMethodMoveLinkedCommitment
MoveLinkedCommitment previews or applies a cascade of linked dates.
internal/cli/client_schedule.go:133
↓ 1 callersMethodName
Name returns the full Redis key or channel name for a suffix. The suffix is the historical name minus the "pad:" root — "event_seq", "watchevents", "e
internal/redisns/redisns.go:149
↓ 1 callersFunctionNewSQLiteUnmanaged
NewSQLiteUnmanaged behaves like NewSQLite but does NOT register a t.Cleanup to close the store — the caller owns Store.Close() and must call it explic
internal/store/storetest/storetest.go:68
↓ 1 callersMethodNotificationDropped
(reason string)
internal/metrics/watchevents_observer.go:28
↓ 1 callersMethodNotificationDropped
NotificationDropped reports a notification this instance received but could not deliver to one of its own subscribers. reason is a bounded label ("slo
internal/watchevents/observer.go:68
↓ 1 callersMethodNow
()
internal/store/dialect.go:195
↓ 1 callersMethodNth
Nth return the nth weekday __call__ - Cannot call the object directly, do it through e.g. TH.nth(-1) instead,
internal/schedule/internal/rrule/rrule.go:67
↓ 1 callersFunctionORIGINAL
(id: string)
web/src/lib/attachments/viewerImageLoader.svelte.test.ts:31
↓ 1 callersFunctionOpenInEditor
OpenInEditor opens a temp file with content in the user's editor, waits for the editor to close, and returns the (possibly modified) content.
internal/cli/editor.go:14
↓ 1 callersMethodOptOutEmail
OptOutEmail adds an email address to the opt-out list.
internal/store/email_optouts.go:16
↓ 1 callersFunctionOrphanedBySchemaEdit
OrphanedBySchemaEdit names what going from prev to next removed that items still hold, read from usage taken AFTER the edit (so a value an option rena
internal/store/field_usage.go:122
↓ 1 callersMethodOverflowClosed
()
internal/collab/observer.go:63
↓ 1 callersMethodOwnerDelivered
OwnerDelivered reports whether an owner hook already received eventID.
internal/store/webhook_deliveries.go:107
↓ 1 callersMethodOwnerDeliveryStatus
(eventID, webhookID string)
internal/webhooks/dispatcher.go:92
↓ 1 callersMethodPatchItem
PatchItem applies content-anchored edits to the item's body.
internal/cli/client.go:1286
↓ 1 callersFunctionPatchRefusedFieldKeysIn
PatchRefusedFieldKeysIn returns the keys of a `fields_patch` that the UPDATE door refuses (BUG-2627 part 2), sorted. It is ReservedFieldKeysIn minus t
internal/items/overrides.go:152
↓ 1 callersMethodPlaceholder
Placeholder returns the nth parameter placeholder (1-indexed). SQLite: "?", PostgreSQL: "$1", "$2", etc.
internal/store/dialect.go:25
↓ 1 callersMethodPlaceholder
(n int)
internal/store/dialect.go:263
↓ 1 callersFunctionPlanPlaybook
PlanPlaybook returns the library entry for the generic `plan` playbook. Title is "Plan a new initiative" to read well in the library card and avoid co
internal/collections/playbook_library_plan.go:194
↓ 1 callersMethodPollCLIAuthSession
PollCLIAuthSession checks the status of a CLI auth session.
internal/cli/client.go:2304
↓ 1 callersMethodPop
()
internal/schedule/internal/rrule/rrule.go:910
↓ 1 callersMethodPrefix
Prefix returns the registry prefix this store is registered under ("fs"). Useful for tests and for the orphan GC, which needs to know which prefix to
internal/attachments/fs_store.go:55
↓ 1 callersMethodPrepare
(string)
internal/store/nultriggers_test.go:556
↓ 1 callersFunctionPrintCollectionMarkdown
PrintCollectionMarkdown prints collections as a markdown table on stdout.
internal/cli/format_markdown.go:162
↓ 1 callersFunctionPrintCollectionTable
PrintCollectionTable prints collections in a formatted table.
internal/cli/format.go:605
↓ 1 callersFunctionPriorityRank
PriorityRank returns a sort rank for task priority and severity (lower = higher priority; critical > high > medium > low, case-insensitive, anything e
internal/models/priority_rank.go:10
↓ 1 callersMethodPruneContextCodes
PruneContextCodes deletes codes that are consumed or expired, in database time. A code is single-use and lives two minutes; nothing reads one after.
internal/store/app_item_actions.go:475
↓ 1 callersMethodPruneDispatchedOutbox
PruneDispatchedOutbox deletes dispatched events stamped before the given timestamp, returning how many rows went. Retention rather than delete-on-dis
internal/store/event_outbox.go:1856
↓ 1 callersMethodPruneStripeProcessedEvents
PruneStripeProcessedEvents deletes stripe_processed_events rows older than maxAge. Returns the number of rows removed. Intended to be called on a sche
internal/store/stripe_events.go:188
↓ 1 callersMethodPublish
(ctx context.Context, m Message)
internal/accesskick/accesskick.go:35
↓ 1 callersMethodPublishHeartbeatsForTest
PublishHeartbeatsForTest runs one publish pass, for tests in OTHER packages. cmd/pad's wiring test needs to know whether the config flip reached this
internal/events/redis_heartbeat.go:284
↓ 1 callersMethodPush
(target string, opts *http.PushOptions)
internal/server/flush_error_writer.go:112
↓ 1 callersMethodRawStream
RawStream issues a GET and copies the response body into w as it arrives. Returns the number of bytes written and a *http.Response pointer the caller
internal/cli/client.go:2029
↓ 1 callersMethodRead
(p []byte)
internal/server/bug3534_mcp_body_limit_test.go:61
↓ 1 callersMethodRead
(p []byte)
internal/server/app_api_attachments.go:254
↓ 1 callersMethodRead
(p []byte)
internal/appstore/attachments_test.go:358
↓ 1 callersMethodRearmReminder
RearmReminder moves a reminder's instant, clearing its fire marks.
internal/cli/client.go:3591
↓ 1 callersMethodReason
Reason renders why the database counts as cloud-owned, for a log line.
internal/store/instance_mode.go:52
↓ 1 callersMethodReceiveLoopExited
()
internal/metrics/events_observer.go:43
↓ 1 callersMethodReceiveLoopExited
()
internal/metrics/watchevents_observer.go:52
↓ 1 callersMethodReclaimRefusedBlob
(ctx context.Context, hash, storageKey string)
internal/appstore/appstore.go:70
↓ 1 callersMethodRecord
Record adds or updates an installation entry.
internal/cli/registry.go:87
↓ 1 callersMethodRecordOwnerDropped
RecordOwnerDropped marks the event dropped for an endpoint that stopped being owed it (deactivated) and counts the drop on the hook.
internal/webhooks/dispatcher.go:96
↓ 1 callersMethodRecordOwnerOutcome
(eventID, webhookID, status, lastError string, attempts int)
internal/webhooks/dispatcher.go:93
↓ 1 callersMethodRecurrence
Recurrence returns a slice of all the recurrence rules for a set
internal/schedule/internal/rrule/rruleset.go:20
↓ 1 callersFunctionRegisterAppResources
RegisterAppResources installs the remote card and board, including placeholder builds.
internal/mcp/apps.go:22
↓ 1 callersFunctionRegisterMeta
RegisterMeta installs the pad://_meta/version static resource on srv so MCP clients can discover pad's tool-surface stability tier without parsing the
internal/mcp/meta.go:108
↓ 1 callersFunctionRelationFieldTypes
RelationFieldTypes is every field type whose VALUE names other items (PLAN-2857 U4). It exists to be enumerated rather than grepped. Before U4 the on
internal/models/collection.go:47
↓ 1 callersMethodReleaseItem
ReleaseItem clears the holder's lease on an item. released=false means there was nothing live to release — a success, not an error.
internal/cli/client_lease.go:45
↓ 1 callersMethodReleaseNotificationsBackoff
ReleaseNotificationsBackoff is ReleaseNotifications that stamps claimed_at with the release time instead of clearing it, so the row stays unavailable
internal/store/push_dispatch.go:322
↓ 1 callersMethodRemoveCommitmentGate
RemoveCommitmentGate removes the ordering constraint.
internal/cli/client_schedule.go:155
↓ 1 callersMethodRemoveCommitmentLink
RemoveCommitmentLink removes a link without deleting either commitment.
internal/cli/client_schedule.go:128
↓ 1 callersMethodRemoveReaction
RemoveReaction removes a specific emoji reaction by a user from a comment.
internal/store/reactions.go:79
↓ 1 callersFunctionRenderRelationTargets
RenderRelationValue is the ONE place a hydrated `relation` value becomes text for a human (PLAN-2857 U6). A relation stores an item id, so the raw st
internal/cli/relation_render.go:43
↓ 1 callersMethodRenegotiateItemCommitment
RenegotiateItemCommitment previews (in.preview true) or applies a deadline change. A preview answers {preview, revision}; an apply answers the schedul
internal/cli/client_schedule.go:76
↓ 1 callersMethodReopenItemCommitment
ReopenItemCommitment posts one exact action identity and never retargets it.
internal/cli/client_schedule.go:160
↓ 1 callersMethodReopenOccurrence
(workspaceID, itemID string, in ReopenInput)
internal/store/schedule_reopen.go:465
↓ 1 callersMethodRequireAuth
RequireAuth middleware blocks unauthenticated requests when users exist in the system. When no users exist (fresh install), all requests pass through
internal/server/middleware_auth.go:508
↓ 1 callersMethodRequireVerifiedEmail
RequireVerifiedEmail is the /api/v1 method-gated enforcement point for DR-4. Mounted immediately after RequireAuth in setupRouter, it rejects mutating
internal/server/middleware_verified_email.go:132
↓ 1 callersMethodResolveItemCommitment
ResolveItemCommitment resolves the outstanding occurrence.
internal/cli/client_schedule.go:62
↓ 1 callersMethodRestoreCollection
RestoreCollection un-archives a collection by slug or id (TASK-2189).
internal/cli/client.go:332
↓ 1 callersMethodResumeForceRefreshed
ResumeForceRefreshed is labelled by reason, which the collab package bounds.
internal/metrics/collab_observer.go:42
↓ 1 callersMethodResumeForceRefreshed
ResumeForceRefreshed counts a resume refused with force_refresh, by reason (one of the ResumeRefresh constants, bounded for a label).
internal/collab/observer.go:35
↓ 1 callersMethodResumeGap
()
internal/metrics/watchevents_observer.go:44
↓ 1 callersMethodResumeJoined
ResumeJoined is unlabelled: the item is the only dimension on offer, and it is unbounded.
internal/metrics/collab_observer.go:37
↓ 1 callersMethodResumeJoined
ResumeJoined counts one Join with a cursor (since > 0), once per Join whatever its outcome.
internal/collab/observer.go:32
↓ 1 callersMethodRevokeUserCalendarFeeds
(userID string)
internal/store/calendar_feeds.go:122
← previousnext →9,301–9,400 of 28,840, ranked by callers