Skip to main content

Bridge Artifacts

Artifact Types

TypeSchemaDescription
graphgraph.v1Entities + relationships
bsgbsg.v1Structured symbol graph
bsg_compressedbsg.v1Token-budgeted compressed output
bsg_fullbsg.v1Full textual BSG output
bsg_hierarchicalbsg.v1Hierarchical directory view
snapshotsnapshot.v1Time Machine snapshot
patchpatch.v1Patch operation record
metricsmetrics.v1Indexing performance metrics

graph.json Example

{
"schema_version": "graph.v1",
"entities": [
{"id": "e1", "name": "login", "type": "function", "file": "auth.py", "start_line": 10, "end_line": 25}
],
"relationships": [
{"source_id": "e1", "target_id": "e2", "type": "IMPORTS"}
]
}

bsg.json Example

{
"schema_version": "bsg.v1",
"nodes": [
{
"id": "e1",
"type": "FUNCTION",
"name": "login",
"file": "src/auth.py",
"start_line": 10,
"end_line": 25
}
],
"edges": [],
"indexes": {
"nodes_by_file": {
"src/auth.py": ["e1"]
}
}
}