ArtisanPack UI
DocsSpecificationAPI Overview

API Overview

Specification v1.0.0

This section documents the package's programmatic API. | Access | Resolves | |--------|----------| | | singleton | | facade | Same instance | View...

This section documents the package's programmatic API.

Quick Reference

Entry Point

Access Resolves
specification() ArtisanPackUI\Specification\Specification singleton
Specification facade Same instance

View Specification Class Documentation →

Contracts

Contract Purpose
SpecCheck A check against one topic, implemented by owner packages
SearchIndex The local full-text index (default: SQLite FTS5)
McpClient The specification.website MCP client (default: HttpMcpClient)

View Contracts Documentation →

Models

Model Table
Topic specification_topics
Snapshot specification_snapshots

View Models Documentation →

Value Objects & Enums

SpecContext, SpecResult, SpecFix, SpecReport, TierBreakdown, TierScore, SyncResult, SearchHit, Attribution, RenderedTopic, TopicLinkResolver, McpTopic, McpChange, McpChangeSet, and the SpecStatus, CheckScope, ResultOutcome, RenderSurface, AttributionPlacement, and ChangeType enums.

View Value Objects & Enums Documentation →

Exceptions

Every exception extends ArtisanPackUI\Specification\Exceptions\SpecificationException (a RuntimeException):

Exception Thrown when
SyncFailedException The archive can't be downloaded or read, a sync is already running, or the snapshot can't be applied (the original error is previous)
InvalidArchiveException The archive is malformed, oversized, or has no valid topics
SearchIndexUnavailableException The SQLite FTS5 index can't be opened, built, or queried, or another request held the rebuild lock for too long
InvalidCheckException register() is given a class that isn't a SpecCheck. A check with an invalid slug is reported with this exception and set aside rather than thrown (see CheckRegistry::invalid())
LicenseViolationException Topic text is rendered on a blocked surface
McpUnavailableException The MCP client is used while disabled
McpRequestException An MCP request fails or returns an error or malformed data

Stay in the Loop

Monthly tips, tutorials and package updates — plus a free Quick Start cheat sheet.

Subscribe
Edit this page on GitHub