Skip to content

Commit 5ad9975

Browse files
aksOpsclaude
andcommitted
Rename project to osscodeiq
- Package name: osscodeiq (was code-intelligence/code-iq) - CLI command: osscodeiq (was code-iq/code-intelligence) - Python package: osscodeiq (was code_intelligence) - All imports, branding, workflows, and README updated Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1945f6e commit 5ad9975

281 files changed

Lines changed: 923 additions & 924 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/beta.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ jobs:
7575
- name: Verify wheel
7676
run: |
7777
pip install dist/*.whl
78-
python -c "import importlib.metadata; print(f'Built: {importlib.metadata.version(\"code-intelligence\")}')"
79-
python -c "from code_intelligence.detectors.registry import DetectorRegistry; r = DetectorRegistry(); r.load_builtin_detectors(); print(f'{len(r.all_detectors())} detectors')"
78+
python -c "import importlib.metadata; print(f'Built: {importlib.metadata.version(\"osscodeiq\")}')"
79+
python -c "from osscodeiq.detectors.registry import DetectorRegistry; r = DetectorRegistry(); r.load_builtin_detectors(); print(f'{len(r.all_detectors())} detectors')"
8080
8181
- name: Delete existing beta tag (if any)
8282
env:
@@ -99,12 +99,12 @@ jobs:
9999
100100
**Install:**
101101
\`\`\`bash
102-
pip install https://github.com/RandomCodeSpace/code-iq/releases/download/${BETA_TAG}/code_intelligence-${BETA_PEP}-py3-none-any.whl
102+
pip install https://github.com/RandomCodeSpace/osscodeiq/releases/download/${BETA_TAG}/osscodeiq-${BETA_PEP}-py3-none-any.whl
103103
\`\`\`
104104
105-
**Or with code-iq CLI:**
105+
**Or with osscodeiq CLI:**
106106
\`\`\`bash
107-
code-iq version
108-
code-iq analyze /path/to/repo
107+
osscodeiq version
108+
osscodeiq analyze /path/to/repo
109109
\`\`\`" \
110110
--prerelease

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Verify wheel contents
3838
run: |
3939
pip install dist/*.whl
40-
python -c "from code_intelligence.detectors.registry import DetectorRegistry; r = DetectorRegistry(); r.load_builtin_detectors(); print(f'Build OK: {len(r.all_detectors())} detectors')"
40+
python -c "from osscodeiq.detectors.registry import DetectorRegistry; r = DetectorRegistry(); r.load_builtin_detectors(); print(f'Build OK: {len(r.all_detectors())} detectors')"
4141
4242
- name: Upload build artifacts
4343
uses: actions/upload-artifact@v4
@@ -84,10 +84,10 @@ jobs:
8484
run: pip install dist/*.whl
8585

8686
- name: Verify CLI
87-
run: code-intelligence --help
87+
run: osscodeiq --help
8888

8989
- name: Verify detectors
90-
run: python -c "from code_intelligence.detectors.registry import DetectorRegistry; r = DetectorRegistry(); r.load_builtin_detectors(); print(f'{len(r.all_detectors())} detectors')"
90+
run: python -c "from osscodeiq.detectors.registry import DetectorRegistry; r = DetectorRegistry(); r.load_builtin_detectors(); print(f'{len(r.all_detectors())} detectors')"
9191

9292
test-container:
9393
name: "${{ matrix.name }}"
@@ -128,10 +128,10 @@ jobs:
128128
run: pip install dist/*.whl || pip3 install dist/*.whl
129129

130130
- name: Verify CLI
131-
run: code-intelligence --help || python3 -m code_intelligence.cli --help
131+
run: osscodeiq --help || python3 -m osscodeiq.cli --help
132132

133133
- name: Verify detectors
134-
run: python3 -c "from code_intelligence.detectors.registry import DetectorRegistry; r = DetectorRegistry(); r.load_builtin_detectors(); print(f'{len(r.all_detectors())} detectors')"
134+
run: python3 -c "from osscodeiq.detectors.registry import DetectorRegistry; r = DetectorRegistry(); r.load_builtin_detectors(); print(f'{len(r.all_detectors())} detectors')"
135135

136136
publish-pypi:
137137
name: Publish to PyPI

.github/workflows/sonarcloud.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
- name: Run tests with coverage
3232
run: |
33-
pytest tests/ --cov=code_intelligence --cov-report=xml:coverage.xml --junitxml=test-results.xml -q || true
33+
pytest tests/ --cov=osscodeiq --cov-report=xml:coverage.xml --junitxml=test-results.xml -q || true
3434
3535
- name: SonarCloud Scan
3636
uses: SonarSource/sonarqube-scan-action@v6

README.md

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
<p align="center">
2-
<h1 align="center">Code Intelligence</h1>
2+
<h1 align="center">OSSCodeIQ</h1>
33
<p align="center">
44
<strong>Deterministic code graph discovery and analysis CLI — no AI, pure pattern matching</strong>
55
</p>
66
</p>
77

88
<p align="center">
9-
<a href="https://github.com/RandomCodeSpace/code-iq/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/RandomCodeSpace/code-iq/ci.yml?branch=main&style=flat-square&logo=github&label=CI" alt="CI"></a>
10-
<a href="https://github.com/RandomCodeSpace/code-iq/actions/workflows/beta.yml"><img src="https://img.shields.io/github/actions/workflow/status/RandomCodeSpace/code-iq/beta.yml?branch=main&style=flat-square&logo=github&label=Beta" alt="Beta Build"></a>
11-
<a href="https://github.com/RandomCodeSpace/code-iq/releases"><img src="https://img.shields.io/github/v/release/RandomCodeSpace/code-iq?include_prereleases&style=flat-square&logo=github&label=Release" alt="Release"></a>
9+
<a href="https://github.com/RandomCodeSpace/osscodeiq/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/RandomCodeSpace/osscodeiq/ci.yml?branch=main&style=flat-square&logo=github&label=CI" alt="CI"></a>
10+
<a href="https://github.com/RandomCodeSpace/osscodeiq/actions/workflows/beta.yml"><img src="https://img.shields.io/github/actions/workflow/status/RandomCodeSpace/osscodeiq/beta.yml?branch=main&style=flat-square&logo=github&label=Beta" alt="Beta Build"></a>
11+
<a href="https://github.com/RandomCodeSpace/osscodeiq/releases"><img src="https://img.shields.io/github/v/release/RandomCodeSpace/osscodeiq?include_prereleases&style=flat-square&logo=github&label=Release" alt="Release"></a>
1212
<a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.11%2B-blue?style=flat-square&logo=python&logoColor=white" alt="Python 3.11+"></a>
13-
<a href="https://github.com/RandomCodeSpace/code-iq/blob/main/LICENSE"><img src="https://img.shields.io/github/license/RandomCodeSpace/code-iq?style=flat-square&label=License" alt="MIT License"></a>
14-
<a href="https://github.com/RandomCodeSpace/code-iq/actions/workflows/sbom.yml"><img src="https://img.shields.io/github/actions/workflow/status/RandomCodeSpace/code-iq/sbom.yml?branch=main&style=flat-square&logo=shieldsdotio&logoColor=white&label=SBOM%20%2B%20Audit" alt="SBOM + Dependency Audit"></a>
15-
<a href="https://sonarcloud.io/summary/overall?id=RandomCodeSpace_code-iq"><img src="https://sonarcloud.io/api/project_badges/measure?project=RandomCodeSpace_code-iq&metric=security_rating&style=flat-square" alt="Sonarcloud Security"></a>
16-
<a href="https://sonarcloud.io/summary/overall?id=RandomCodeSpace_code-iq"><img src="https://sonarcloud.io/api/project_badges/measure?project=RandomCodeSpace_code-iq&metric=reliability_rating" alt="Sonarcloud Reliability"></a>
17-
<a href="https://sonarcloud.io/summary/overall?id=RandomCodeSpace_code-iq"><img src="https://sonarcloud.io/api/project_badges/measure?project=RandomCodeSpace_code-iq&metric=sqale_rating" alt="Sonarcloud Maintainability"></a>
18-
<a href="https://sonarcloud.io/summary/overall?id=RandomCodeSpace_code-iq"><img src="https://sonarcloud.io/api/project_badges/measure?project=RandomCodeSpace_code-iq&metric=bugs" alt="Sonarcloud Bugs"></a>
19-
<a href="https://sonarcloud.io/summary/overall?id=RandomCodeSpace_code-iq"><img src="https://sonarcloud.io/api/project_badges/measure?project=RandomCodeSpace_code-iq&metric=vulnerabilities" alt="Sonarcloud Vulnerabilities"></a>
20-
<a href="https://github.com/RandomCodeSpace/code-iq"><img src="https://img.shields.io/github/stars/RandomCodeSpace/code-iq?style=flat-square&logo=github&label=Stars" alt="Stars"></a>
21-
<a href="https://github.com/RandomCodeSpace/code-iq/issues"><img src="https://img.shields.io/github/issues/RandomCodeSpace/code-iq?style=flat-square&logo=github&label=Issues" alt="Issues"></a>
22-
<a href="https://github.com/RandomCodeSpace/code-iq/commits/main"><img src="https://img.shields.io/github/last-commit/RandomCodeSpace/code-iq?style=flat-square&logo=github&label=Last%20Commit" alt="Last Commit"></a>
23-
<a href="https://github.com/RandomCodeSpace/code-iq"><img src="https://img.shields.io/badge/detectors-97-brightgreen?style=flat-square&logo=codefactor&logoColor=white" alt="97 Detectors"></a>
24-
<a href="https://github.com/RandomCodeSpace/code-iq"><img src="https://img.shields.io/badge/languages-35-blue?style=flat-square&logo=stackblitz&logoColor=white" alt="35 Languages"></a>
25-
<a href="https://github.com/RandomCodeSpace/code-iq"><img src="https://img.shields.io/badge/tests-1662-brightgreen?style=flat-square&logo=pytest&logoColor=white" alt="1662 Tests"></a>
13+
<a href="https://github.com/RandomCodeSpace/osscodeiq/blob/main/LICENSE"><img src="https://img.shields.io/github/license/RandomCodeSpace/osscodeiq?style=flat-square&label=License" alt="MIT License"></a>
14+
<a href="https://github.com/RandomCodeSpace/osscodeiq/actions/workflows/sbom.yml"><img src="https://img.shields.io/github/actions/workflow/status/RandomCodeSpace/osscodeiq/sbom.yml?branch=main&style=flat-square&logo=shieldsdotio&logoColor=white&label=SBOM%20%2B%20Audit" alt="SBOM + Dependency Audit"></a>
15+
<a href="https://sonarcloud.io/summary/overall?id=RandomCodeSpace_osscodeiq"><img src="https://sonarcloud.io/api/project_badges/measure?project=RandomCodeSpace_osscodeiq&metric=security_rating&style=flat-square" alt="Sonarcloud Security"></a>
16+
<a href="https://sonarcloud.io/summary/overall?id=RandomCodeSpace_osscodeiq"><img src="https://sonarcloud.io/api/project_badges/measure?project=RandomCodeSpace_osscodeiq&metric=reliability_rating" alt="Sonarcloud Reliability"></a>
17+
<a href="https://sonarcloud.io/summary/overall?id=RandomCodeSpace_osscodeiq"><img src="https://sonarcloud.io/api/project_badges/measure?project=RandomCodeSpace_osscodeiq&metric=sqale_rating" alt="Sonarcloud Maintainability"></a>
18+
<a href="https://sonarcloud.io/summary/overall?id=RandomCodeSpace_osscodeiq"><img src="https://sonarcloud.io/api/project_badges/measure?project=RandomCodeSpace_osscodeiq&metric=bugs" alt="Sonarcloud Bugs"></a>
19+
<a href="https://sonarcloud.io/summary/overall?id=RandomCodeSpace_osscodeiq"><img src="https://sonarcloud.io/api/project_badges/measure?project=RandomCodeSpace_osscodeiq&metric=vulnerabilities" alt="Sonarcloud Vulnerabilities"></a>
20+
<a href="https://github.com/RandomCodeSpace/osscodeiq"><img src="https://img.shields.io/github/stars/RandomCodeSpace/osscodeiq?style=flat-square&logo=github&label=Stars" alt="Stars"></a>
21+
<a href="https://github.com/RandomCodeSpace/osscodeiq/issues"><img src="https://img.shields.io/github/issues/RandomCodeSpace/osscodeiq?style=flat-square&logo=github&label=Issues" alt="Issues"></a>
22+
<a href="https://github.com/RandomCodeSpace/osscodeiq/commits/main"><img src="https://img.shields.io/github/last-commit/RandomCodeSpace/osscodeiq?style=flat-square&logo=github&label=Last%20Commit" alt="Last Commit"></a>
23+
<a href="https://github.com/RandomCodeSpace/osscodeiq"><img src="https://img.shields.io/badge/detectors-97-brightgreen?style=flat-square&logo=codefactor&logoColor=white" alt="97 Detectors"></a>
24+
<a href="https://github.com/RandomCodeSpace/osscodeiq"><img src="https://img.shields.io/badge/languages-35-blue?style=flat-square&logo=stackblitz&logoColor=white" alt="35 Languages"></a>
25+
<a href="https://github.com/RandomCodeSpace/osscodeiq"><img src="https://img.shields.io/badge/tests-1662-brightgreen?style=flat-square&logo=pytest&logoColor=white" alt="1662 Tests"></a>
2626
</p>
2727

2828
---
2929

30-
**Code Intelligence** scans codebases to build a deterministic knowledge graph of code relationships — classes, methods, endpoints, entities, dependencies, infrastructure resources, auth patterns, and more. 97 detectors across 35 languages, 3 storage backends (NetworkX, SQLite, KuzuDB), interactive flow diagrams, and zero AI dependency.
30+
**OSSCodeIQ** scans codebases to build a deterministic knowledge graph of code relationships — classes, methods, endpoints, entities, dependencies, infrastructure resources, auth patterns, and more. 97 detectors across 35 languages, 3 storage backends (NetworkX, SQLite, KuzuDB), interactive flow diagrams, and zero AI dependency.
3131

3232
## Features
3333

@@ -50,22 +50,22 @@
5050
pip install -e .
5151

5252
# Analyze a codebase
53-
code-intelligence analyze /path/to/repo
53+
osscodeiq analyze /path/to/repo
5454

5555
# Generate architecture flow diagram
56-
code-intelligence flow /path/to/repo --format html --output flow.html
56+
osscodeiq flow /path/to/repo --format html --output flow.html
5757

5858
# Query the graph
59-
code-intelligence find endpoints /path/to/repo
60-
code-intelligence find guards /path/to/repo
61-
code-intelligence find unprotected /path/to/repo
59+
osscodeiq find endpoints /path/to/repo
60+
osscodeiq find guards /path/to/repo
61+
osscodeiq find unprotected /path/to/repo
6262

6363
# Use Cypher queries (KuzuDB backend)
64-
code-intelligence analyze /path/to/repo --backend kuzu
65-
code-intelligence cypher "MATCH (e:CodeNode {kind: 'endpoint'})-[]->(s:CodeNode) RETURN e.label, s.label LIMIT 20" /path/to/repo --backend kuzu
64+
osscodeiq analyze /path/to/repo --backend kuzu
65+
osscodeiq cypher "MATCH (e:CodeNode {kind: 'endpoint'})-[]->(s:CodeNode) RETURN e.label, s.label LIMIT 20" /path/to/repo --backend kuzu
6666

6767
# Bundle for distribution
68-
code-intelligence bundle /path/to/repo --tag v2.1.0 --backend kuzu
68+
osscodeiq bundle /path/to/repo --tag v2.1.0 --backend kuzu
6969
```
7070

7171
## Supported Languages & Frameworks
@@ -100,7 +100,7 @@ Spring Security, Django Auth, FastAPI Auth, NestJS Guards, Passport/JWT, K8s RBA
100100
## Architecture
101101

102102
```
103-
code-intelligence analyze /path/to/repo
103+
osscodeiq analyze /path/to/repo
104104
|
105105
v
106106
+------------------+
@@ -145,16 +145,16 @@ Generate architecture flow diagrams with drill-down views:
145145

146146
```bash
147147
# High-level overview
148-
code-intelligence flow ./my-project --format mermaid
148+
osscodeiq flow ./my-project --format mermaid
149149

150150
# Drill into specific layers
151-
code-intelligence flow ./my-project --view ci # CI/CD pipeline
152-
code-intelligence flow ./my-project --view deploy # Deployment topology
153-
code-intelligence flow ./my-project --view runtime # Service architecture
154-
code-intelligence flow ./my-project --view auth # Security coverage
151+
osscodeiq flow ./my-project --view ci # CI/CD pipeline
152+
osscodeiq flow ./my-project --view deploy # Deployment topology
153+
osscodeiq flow ./my-project --view runtime # Service architecture
154+
osscodeiq flow ./my-project --view auth # Security coverage
155155

156156
# Interactive HTML with click-to-drill
157-
code-intelligence flow ./my-project --format html --output flow.html
157+
osscodeiq flow ./my-project --format html --output flow.html
158158
```
159159

160160
## Graph Model
@@ -174,29 +174,29 @@ code-intelligence flow ./my-project --format html --output flow.html
174174
| **KuzuDB** | File | Yes | Directory | Cypher queries, agentic AI |
175175

176176
```bash
177-
code-intelligence analyze ./repo --backend kuzu
178-
code-intelligence analyze ./repo --backend sqlite
177+
osscodeiq analyze ./repo --backend kuzu
178+
osscodeiq analyze ./repo --backend sqlite
179179
```
180180

181181
## Development
182182

183183
```bash
184-
git clone https://github.com/RandomCodeSpace/code-iq.git
185-
cd code-iq
184+
git clone https://github.com/RandomCodeSpace/osscodeiq.git
185+
cd osscodeiq
186186
pip install -e ".[dev]"
187187
pytest # 1,662 tests
188-
code-intelligence analyze . # Analyze this repo
188+
osscodeiq analyze . # Analyze this repo
189189
```
190190

191191
### Adding a New Detector
192192

193193
Just create a file — auto-discovered, zero registration:
194194

195195
```python
196-
# src/code_intelligence/detectors/python/my_detector.py
197-
from code_intelligence.detectors.base import DetectorContext, DetectorResult
198-
from code_intelligence.detectors.utils import decode_text
199-
from code_intelligence.models.graph import GraphNode, NodeKind, SourceLocation
196+
# src/osscodeiq/detectors/python/my_detector.py
197+
from osscodeiq.detectors.base import DetectorContext, DetectorResult
198+
from osscodeiq.detectors.utils import decode_text
199+
from osscodeiq.models.graph import GraphNode, NodeKind, SourceLocation
200200

201201
class MyDetector:
202202
name = "my_detector"

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools>=68.0", "setuptools-scm>=8.0"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
6-
name = "code-intelligence"
6+
name = "osscodeiq"
77
version = "0.0.0"
88
description = "CLI tool for intelligent code graph discovery and analysis"
99
requires-python = ">=3.11"
@@ -35,16 +35,15 @@ kuzu = ["kuzu>=0.6"]
3535
all-backends = ["kuzu>=0.6"]
3636

3737
[project.scripts]
38-
code-iq = "code_intelligence.cli:app"
39-
code-intelligence = "code_intelligence.cli:app"
38+
osscodeiq = "osscodeiq.cli:app"
4039

41-
[project.entry-points."code_intelligence.detectors"]
40+
[project.entry-points."osscodeiq.detectors"]
4241

4342
[tool.setuptools.packages.find]
4443
where = ["src"]
4544

4645
[tool.setuptools.package-data]
47-
code_intelligence = ["flow/templates/*.html", "flow/vendor/*.js", "server/templates/*.html"]
46+
osscodeiq = ["flow/templates/*.html", "flow/vendor/*.js", "server/templates/*.html"]
4847

4948
[tool.pytest.ini_options]
5049
testpaths = ["tests"]

src/code_intelligence/parsing/__init__.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/code_intelligence/server/__init__.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)