Skip to content

Consiliency/codegraph-proto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeGraph Proto

Protocol Buffer definitions and generated code for CodeGraph/USA services.

Structure

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

Building

# Generate all language bindings
./scripts/generate.sh

# Generate specific language
./scripts/generate.sh python
./scripts/generate.sh typescript
./scripts/generate.sh cpp

Usage

Python

from codegraph_proto.ast import ast_pb2
from codegraph_proto.graph import graph_pb2

TypeScript

import { ASTNode } from '@codegraph/proto/ast';
import { GraphNode } from '@codegraph/proto/graph';

C++

#include "codegraph/proto/ast/ast.pb.h"
#include "codegraph/proto/graph/graph.pb.h"

Contributing

  1. Modify proto files in proto/ directory
  2. Run ./scripts/generate.sh to regenerate bindings
  3. Commit both proto files and generated code
  4. Create PR with clear description of changes

License

Apache License 2.0

About

CodeGraph/USA - proto

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages