Metadata-Version: 2.4
Name: ontosight-codegraph
Version: 0.2.0
Summary: Visualize CodeGraph call subgraphs in OntoSight
Project-URL: Homepage, https://github.com/yifanfeng97/hyper-extract
Project-URL: Repository, https://github.com/yifanfeng97/hyper-extract
Author-email: Yifan Feng <evanfeng97@gmail.com>
License: Apache-2.0
Keywords: call-graph,codegraph,ontosight,visualization
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.11
Requires-Dist: networkx>=3.0
Requires-Dist: pydantic>=2.0
Requires-Dist: rich>=13.7.0
Requires-Dist: royalsolution-ontosight>=0.2.0
Requires-Dist: typer>=0.13.0
Provides-Extra: dev
Requires-Dist: pytest>=9.0.0; extra == 'dev'
Description-Content-Type: text/markdown

# OntoSight CodeGraph

Read a local [CodeGraph](https://github.com/colbymchenry/codegraph) index (`.codegraph/codegraph.db`) and visualize call subgraphs in [OntoSight](https://pypi.org/project/royalsolution-ontosight/).

## Install

```bash
pip install ontosight-codegraph
# or
uvx ontosight-codegraph .
```

## Usage

```bash
# Ensure index exists
npx @colbymchenry/codegraph init -i

# Auto-seed from highest fan-in symbols
ontosight-codegraph .

# Seed around a symbol
ontosight-codegraph . --symbol view_graph --path vendor/ontosight/

# Task-scoped subgraph
ontosight-codegraph . --task "auth flow" --hops 2 --max-nodes 200
```

## npm wrapper

For a zero-Python-install workflow (uses `uvx` under the hood; auto-runs CodeGraph init when the index is missing):

```bash
npx @royalsolution/ontosight .
```

See [`packages/ontosight/`](../ontosight/) and [`packages/ontosight/AGENTS.md`](../ontosight/AGENTS.md) for npm package details and **AI agent usage**.

## Publish (maintainers)

```bash
cd packages/ontosight-codegraph
python -m build
twine check dist/*
twine upload dist/*
```
