generated from coulomb/repo-seed
27 lines
751 B
Python
27 lines
751 B
Python
"""Report fragment for the SDK fixture extension."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
def build_fragment(context: dict) -> dict:
|
|
evidence_count = len(context["evidence"])
|
|
finding_count = len(context["findings"])
|
|
source_lock = context["source_lock"]
|
|
markdown = "\n".join(
|
|
[
|
|
"### SDK Fixture Summary",
|
|
"",
|
|
f"- evidence items: {evidence_count}",
|
|
f"- findings: {finding_count}",
|
|
f"- source lock: {source_lock.get('id')}",
|
|
]
|
|
)
|
|
return {
|
|
"markdown": markdown,
|
|
"structured": {
|
|
"evidence_count": evidence_count,
|
|
"finding_count": finding_count,
|
|
"source_lock_ref": source_lock.get("id"),
|
|
},
|
|
}
|