Protocol Buffer definitions and generated code for CodeGraph/USA services.
proto/
├── ast/ # AST-related definitions
├── graph/ # Graph structure definitions
├── storage/ # Storage layer definitions
└── api/ # API service definitions
generated/
├── python/ # Generated Python code
├── typescript/ # Generated TypeScript code
└── cpp/ # Generated C++ code
# Generate all language bindings
./scripts/generate.sh
# Generate specific language
./scripts/generate.sh python
./scripts/generate.sh typescript
./scripts/generate.sh cpp
from codegraph_proto.ast import ast_pb2
from codegraph_proto.graph import graph_pb2
import { ASTNode } from '@codegraph/proto/ast';
import { GraphNode } from '@codegraph/proto/graph';
#include "codegraph/proto/ast/ast.pb.h"
#include "codegraph/proto/graph/graph.pb.h"
- Modify proto files in
proto/
directory - Run
./scripts/generate.sh
to regenerate bindings - Commit both proto files and generated code
- Create PR with clear description of changes
Apache License 2.0