Core Data API v1
Use Live and Analysis, check profiles and completeness, and process structured architecture data.
Live and Analysis
Core v0.4.0 exposes the same architecture analysis through the public Sillbeam\Core\Api namespace and the sillbeam:api CLI command. Pin the schema version for consumers and use capabilities to discover supported profiles.
| Profile | Contents |
|---|---|
| Live | Module and Project catalog, references and diagnostics in one language. |
| Analysis | Also includes structured graph data, source inventory, Doctor and both locales. The fingerprint depends on complete, stable inputs. |
Live returns a document in one selected locale, English by default. Analysis includes both available locales and rejects selection of a single locale. Both profiles run locally in Core and use the same architecture analysis.
CLI and PHP entry point
php bin/console sillbeam:api:capabilities --format=json --no-ansi --no-interaction
php bin/console sillbeam:api --profile=live --locale=de --schema-version=1 --no-ansi --no-interaction
php bin/console sillbeam:api --profile=analysis --schema-version=1 --no-ansi --no-interactionUse the Core Console adapter for the CLI. In PHP, CoreDataRequest::fromProfile() creates the request. CoreDataProviderInterface::collect() returns the immutable CoreDataDocument. CoreDataJsonSerializer serializes the document with the request’s schema version.
Status, partial results and schemas
The architecture verdict and export completeness are independent. Core Data uses exit 0 for valid/complete, 1 for violations/complete, 2 for unavailable analysis, 3 for a known verdict with a partial export and 4 for invocation or contract errors. Codes 0 through 3 write JSON to STDOUT.
Verified paths are project-relative. Unverifiable evidence can leave the export partial. Unknown activation remains null. The Core reference includes schemas, examples and the PHP contract.
The examples in Core are contract fixtures. Legacy Architecture JSON, Doctor JSON and Core Data have separate contracts.
The PHPDoc archive covers PHP types from Core v0.3.0.