Add SpeckDL compiler scaffold
- CLI entry point with yargs parsing for speckl-compile <file> --output-dir --bom-format - TypeScript parser with AST types for all SpeckDL primitives - Generator for PROV-O JSON-LD provenance graphs - Generator for CycloneDX v1.6 BOMs - Generator for SPDX 3.0.1 BOMs - E2E test verifying RetryHandler.speck parsing and all output formats All tests pass.
This commit is contained in:
parent
448819104a
commit
f19a43fd5f
1295 changed files with 1037389 additions and 0 deletions
107
compiler/test-output/RetryHandler.specbom.spdx.json
Normal file
107
compiler/test-output/RetryHandler.specbom.spdx.json
Normal file
|
|
@ -0,0 +1,107 @@
|
|||
{
|
||||
"@context": [
|
||||
"https://spdx.github.io/spdx-v3/spdx-context.jsonld",
|
||||
{
|
||||
"speckl": "https://speckl.scoble.me/ns/v0.2#"
|
||||
}
|
||||
],
|
||||
"@type": "spdx:Document",
|
||||
"spdx": {
|
||||
"@id": "spdx:RetryHandler",
|
||||
"@type": "spdx:Snippet",
|
||||
"name": "RetryHandler",
|
||||
"spdxVersion": "3.0.1",
|
||||
"dataLicense": "CC0-1.0",
|
||||
"creationInfo": {
|
||||
"created": "2026-04-29T22:11:59.833Z",
|
||||
"createdBy": [
|
||||
"Organization: Speckl",
|
||||
"tool: speckl-compile-0.2.0"
|
||||
]
|
||||
},
|
||||
"annotations": [
|
||||
{
|
||||
"@type": "spdx:Annotation",
|
||||
"annotationType": "spdx:REVIEW",
|
||||
"annotator": {
|
||||
"@type": "spdx:Tool",
|
||||
"name": "speckl-compile"
|
||||
},
|
||||
"timestamp": "2026-04-29T22:11:59.833Z",
|
||||
"comment": "Review type: manual"
|
||||
}
|
||||
]
|
||||
},
|
||||
"builtBy": [],
|
||||
"relationships": [
|
||||
{
|
||||
"from": {
|
||||
"@id": "spdx:RetryHandler"
|
||||
},
|
||||
"to": {
|
||||
"@id": "spdx:speck:FaultHandler"
|
||||
},
|
||||
"relationshipType": "spdx:derivesFrom"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"@id": "spdx:RetryHandler"
|
||||
},
|
||||
"to": {
|
||||
"@id": "spdx:requirement:RESILIENCE"
|
||||
},
|
||||
"relationshipType": "speckl:satisfies"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"@id": "spdx:RetryHandler"
|
||||
},
|
||||
"to": {
|
||||
"@id": "spdx:requirement:RESILIENCE"
|
||||
},
|
||||
"relationshipType": "speckl:satisfies"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"@id": "spdx:RetryHandler"
|
||||
},
|
||||
"to": {
|
||||
"@id": "spdx:agent:\""
|
||||
},
|
||||
"relationshipType": "spdx:wasAttributedTo"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"@id": "spdx:RetryHandler"
|
||||
},
|
||||
"to": {
|
||||
"@id": "spdx:source:architecture_review:\""
|
||||
},
|
||||
"relationshipType": "spdx:wasInformedBy"
|
||||
}
|
||||
],
|
||||
"elements": [
|
||||
{
|
||||
"@type": "spdx:Requirement",
|
||||
"@id": "spdx:requirement:RESILIENCE",
|
||||
"name": "RESILIENCE"
|
||||
},
|
||||
{
|
||||
"@type": "spdx:Requirement",
|
||||
"@id": "spdx:requirement:RESILIENCE",
|
||||
"name": "RESILIENCE"
|
||||
},
|
||||
{
|
||||
"@type": "spdx:Person",
|
||||
"@id": "spdx:agent:\"",
|
||||
"name": "\"",
|
||||
"email": "Scott Scoble"
|
||||
},
|
||||
{
|
||||
"@type": "spdx:Activity",
|
||||
"@id": "spdx:source:architecture_review:\"",
|
||||
"name": "architecture_review - \"",
|
||||
"type": "architecture_review"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue