Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ types & classes
Types & classes
1,131 in github.com/PerpetualSoftware/pad
⨍
Functions
9,998
◇
Types & classes
1,131
↓ 172 callers
Struct
expect
internal/mcp/dispatch_http_advanced_test.go:316
↓ 4 callers
TypeAlias
ErrorCode
───────────────────────────────────────────────────────────────────── Structured MCP error envelopes (TASK-973) Replaces raw CLI stderr passthrough w
internal/mcp/errors.go:46
↓ 4 callers
TypeAlias
TokenKind
MCP audit log models (PLAN-943 TASK-960). Persistent record of every request that hits the /mcp endpoint — successful tool calls, denied calls, error
internal/models/mcp_audit.go:29
↓ 1 callers
TypeAlias
Kind
Kind identifies which item type an artifact carries.
internal/artifact/artifact.go:17
↓ 1 callers
TypeAlias
MCPAuditResultStatus
MCPAuditResultStatus is the outcome enum for an MCP request.
internal/models/mcp_audit.go:37
↓ 1 callers
Struct
verdict
internal/server/attachments_authz.go:203
↓ 1 callers
Struct
write
internal/store/activities_test.go:668
Class
web/src/routes/workspaceDashboardAgentName.svelte.test.ts:39
Class
web/src/routes/workspaceDashboardAgentName.svelte.test.ts:39
Class
web/src/routes/activityPageAgentName.svelte.test.ts:33
Class
web/src/routes/activityPageAgentName.svelte.test.ts:33
Class
web/src/lib/components/layout/TopBar.svelte.test.ts:76
Class
web/src/lib/components/layout/TopBar.svelte.test.ts:76
Class
web/src/lib/components/attachments/viewerImagePayload.svelte.test.ts:59
Class
web/src/lib/components/items/ItemAttachmentStrip.svelte.test.ts:19
Class
web/src/lib/components/settings/StorageTab.svelte.test.ts:22
Class
web/src/lib/components/common/Lightbox.svelte.test.ts:1592
Class
web/src/lib/components/common/Lightbox.svelte.test.ts:1592
Class
web/src/lib/components/common/QuickActionsMenu.svelte.test.ts:21
Class
web/src/lib/stores/localIndex.svelte.ts:83
Class
web/src/lib/a11y/viewerBackdrop.svelte.test.ts:112
Class
web/src/lib/services/sseFirstConnectSync.svelte.test.ts:21
Class
web/src/lib/services/sseStaleSourceGuards.svelte.test.ts:21
Class
web/src/lib/api/client.ts:82
Class
web/src/lib/collab/wsProvider.svelte.ts:224
Class
web/src/test/setup-jsdom.ts:136
Class
web/e2e/lib/attachment-viewer.ts:336
Struct
APIError
--- HTTP helpers ---
internal/cli/client.go:1377
Interface
APIToken
web/src/lib/types/index.ts:38
Struct
APIToken
APIToken represents a stored API token (without the secret).
internal/models/api_token.go:6
Struct
APITokenCreate
APITokenCreate is the input for creating a new API token.
internal/models/api_token.go:19
Interface
APITokenWithSecret
web/src/lib/types/index.ts:50
Struct
APITokenWithSecret
APITokenWithSecret is returned only on creation and includes the plaintext token. The token is never stored and cannot be retrieved again.
internal/models/api_token.go:28
Struct
ActionEnv
ActionEnv carries everything an action handler needs to either dispatch to a CLI cmdPath or build a result inline. Wired up once per RegisterCatalog c
internal/mcp/catalog.go:113
FuncType
ActionFn
ActionFn handles one tool action. Receives the call context, the raw MCP input map, and a per-tool execution environment. Returns the CallToolResult t
internal/mcp/catalog.go:107
Interface
ActiveLoad
web/src/lib/attachments/viewerImageLoader.svelte.ts:115
Interface
Activity
web/src/lib/types/index.ts:1360
Struct
Activity
internal/models/activity.go:82
Struct
ActivityListParams
internal/models/activity.go:103
Interface
Addr
web/src/lib/attachments/surfaceMetadata.svelte.test.ts:30
Interface
AdminBillingStats
web/src/lib/types/index.ts:1805
Struct
AdminBillingStatsResponse
AdminBillingStatsResponse is the JSON shape returned by GET /api/v1/admin/billing-stats. It merges Stripe-derived metrics from pad-cloud (active_subsc
internal/server/handlers_admin_billing.go:23
Struct
AdminInvitation
AdminInvitation holds enriched invitation data for the admin panel.
internal/store/workspace_members.go:945
Interface
AdminUser
web/src/lib/stores/admin.svelte.ts:7
Struct
AdminUserListEntry
AdminUserListEntry is one row returned by SearchUsers: the User model plus the cheap aggregations the admin user table renders at a glance. PLAN-1542
internal/store/users.go:297
Struct
AdminUserMetrics
AdminUserMetrics carries the windowed engagement metrics rendered by the admin user modal's Overview tab (T1553). Values are intentionally a small han
internal/store/users.go:757
Struct
AdminUserSearchParams
AdminUserSearchParams holds parameters for the admin user search query. Filters apply ANDed; nil pointer fields mean "no filter" (distinguished from t
internal/store/users.go:271
Struct
AdminUserSearchResult
AdminUserSearchResult holds the paginated search results.
internal/store/users.go:313
Struct
AdminUserWorkspace
AdminUserWorkspace is a lightweight workspace membership for admin views.
internal/store/workspace_members.go:1016
Struct
AdminUserWorkspaceDetail
AdminUserWorkspaceDetail extends AdminUserWorkspace with per-workspace aggregations rendered in the admin user modal's Workspaces tab. PLAN-1542 / TAS
internal/store/workspace_members.go:1028
Interface
AdoptCollectionInput
web/src/lib/items/adoptCollection.ts:31
Struct
Agent
Agent describes a known MCP-compatible client and how to find its per-user config file.
internal/mcp/install.go:38
Struct
AgentBootstrap
AgentBootstrap is the single response struct returned by the bootstrap endpoint. It consolidates the four /pad context-loading calls (workspace, colle
internal/server/handlers_bootstrap.go:24
Struct
AgentBootstrapConvention
AgentBootstrapConvention is a convention item with its body content so agents can read and follow it without a second round-trip. Only always-on, acti
internal/server/handlers_bootstrap.go:290
Struct
AgentBootstrapConventionMeta
AgentBootstrapConventionMeta is the lightweight, body-less convention projection returned in the bootstrap's convention_index. It mirrors the AgentBoo
internal/server/handlers_bootstrap.go:314
Struct
AgentBootstrapPlaybookMeta
AgentBootstrapPlaybookMeta is the lightweight playbook projection returned at bootstrap. Bodies (which can be 5-10KB each) are deliberately excluded;
internal/server/handlers_bootstrap.go:331
Struct
AgentBootstrapUser
AgentBootstrapUser is the calling user's projection. Email is included so agents can sign generated commits or reference the human; ID is included so
internal/server/handlers_bootstrap.go:276
Struct
AgentBootstrapWorkspace
AgentBootstrapWorkspace is the minimal workspace projection (slug + name + id) the agent needs to address the workspace in subsequent calls. Descripti
internal/server/handlers_bootstrap.go:266
Interface
AgentRole
web/src/lib/types/index.ts:507
Struct
AgentRole
AgentRole represents a workspace-scoped capability role for human-agent assignment. Roles describe what kind of work gets done (e.g. "Planner", "Imple
internal/models/agent_role.go:8
Interface
AgentRoleCreate
web/src/lib/types/index.ts:521
Struct
AgentRoleCreate
AgentRoleCreate is the input for creating a new agent role.
internal/models/agent_role.go:25
Interface
AgentRoleUpdate
web/src/lib/types/index.ts:529
Struct
AgentRoleUpdate
AgentRoleUpdate is the input for updating an existing agent role.
internal/models/agent_role.go:34
Struct
AgentStatus
AgentStatus is one row of Installer.Status output.
internal/mcp/install.go:585
Struct
AgentTool
AgentTool describes a supported AI coding tool and how to install the Pad skill for it.
internal/cli/agents.go:12
Interface
AnchorAttachmentAction
web/src/lib/attachments/actions.ts:126
Interface
ApiError
web/src/lib/types/index.ts:1778
Struct
Arg
Arg is a positional argument.
internal/cmdhelp/types.go:54
Struct
ArmDecision
ArmDecision is the resolved arm state plus the inputs that produced it, so callers (notably `pad session status`) can explain WHY a session is or isn'
internal/cli/arm_consent.go:56
Struct
ArmState
Local arm-state file (PLAN-2613 S2, D4; lead ruling "OPTION 2" on the TASK-2617 trail). This is the concrete file contract S3's plugin monitor builds
internal/cli/session_arm_state.go:65
Struct
Artifact
Artifact is a decoded export of one playbook or convention item.
internal/artifact/artifact.go:45
Struct
ArtifactKindTrait
ArtifactKindTrait declares the portable artifact kind items of this collection export as. Import maps the kind back to whichever local collection decl
internal/models/collection_traits.go:114
Interface
Attachment
web/src/lib/types/index.ts:1828
Struct
Attachment
Attachment models a single uploaded blob in the attachments table. See [[Attachments — architecture & migration design]] (DOC-865). Storage is conten
internal/models/attachment.go:16
Interface
AttachmentActionContext
web/src/lib/attachments/actions.ts:75
Interface
AttachmentActionSubject
web/src/lib/attachments/actions.ts:61
FuncType
AttachmentAuthorizer
AttachmentAuthorizer answers one question about one already-scoped attachment row: may the caller who asked for this copy see it? It exists because D
internal/store/attachments_copy_plan.go:239
Interface
AttachmentChipOptions
web/src/lib/components/editor/attachment-chip.ts:76
Struct
AttachmentCopyPlan
AttachmentCopyPlan is what the planner returns. Nothing in it has been written; the caller decides whether to act on it.
internal/store/attachments_copy_plan.go:291
Struct
AttachmentCopyRequest
AttachmentCopyRequest is the planner's complete input. Content and Fields are the payloads that will actually be written to workspace B: the copied c
internal/store/attachments_copy_plan.go:133
Struct
AttachmentCopyRow
AttachmentCopyRow is one attachment row to create in workspace B, plus the source-side facts the caller needs in order to move bytes if it has to.
internal/store/attachments_copy_plan.go:244
Interface
AttachmentHostAddress
web/src/lib/attachments/hostAddress.ts:34
Interface
AttachmentImageOptions
web/src/lib/components/editor/attachment-image.ts:128
Interface
AttachmentListFilters
web/src/lib/types/index.ts:2071
Struct
AttachmentListFilters
AttachmentListFilters narrow the WorkspaceAttachments result set. Zero values mean "no filter on this dimension". The handler turns query-string param
internal/store/attachments.go:287
Interface
AttachmentListItem
web/src/lib/types/index.ts:2031
Struct
AttachmentListItem
AttachmentListItem is a row from WorkspaceAttachments enriched with the parent item's title + slug + collection slug so the UI can render a clickable
internal/store/attachments.go:359
Struct
AttachmentListParams
AttachmentListParams encodes the query-string filters the `GET /api/v1/workspaces/{slug}/attachments` endpoint accepts. Zero values are skipped — the
internal/cli/client.go:1833
Interface
AttachmentListResponse
web/src/lib/types/index.ts:2063
Struct
AttachmentListResponse
AttachmentListResponse mirrors the JSON returned by GET /api/v1/workspaces/{slug}/attachments. Rows are typed as json.RawMessage so the CLI can surfac
internal/cli/client.go:1857
Struct
AttachmentManifest
AttachmentManifest is the top-level shape of attachments/manifest.json inside an export bundle. Wraps a list of entries plus a small "schema" version
internal/models/export.go:45
Struct
AttachmentManifestEntry
AttachmentManifestEntry describes one attachment blob in the tar-bundle export's attachments/manifest.json. The bundle layout is: pad-export.json
internal/models/export.go:27
Interface
AttachmentMeta
web/src/lib/markdown/attachments.ts:25
Struct
AttachmentMeta
AttachmentMeta is the minimal metadata needed to render a `pad-attachment:UUID` reference. Trimmed from the full models.Attachment row so callers can
internal/server/render/attachments.go:24
Interface
AttachmentMetadata
web/src/lib/components/editor/attachment-metadata.ts:34
Struct
AttachmentMetadata
AttachmentMetadata mirrors the response headers of HEAD /api/v1/workspaces/{slug}/attachments/{id}. The server doesn't expose a separate JSON metadata
internal/cli/client.go:1782
Interface
AttachmentParentRestoredEvent
web/src/lib/attachments/events.ts:94
FuncType
AttachmentResolver
AttachmentResolver looks up an attachment by UUID. Returns nil for missing/deleted attachments — the resolver renders a "missing" placeholder in that
internal/server/render/attachments.go:37
Interface
AttachmentStore
AttachmentStore is the backend abstraction every storage implementation must satisfy. Methods are safe for concurrent use.
internal/attachments/store.go:25
next →
1–100 of 1,131, ranked by callers