agentforge-graph 0.3.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agentforge_graph/__init__.py +6 -0
- agentforge_graph/chunking/__init__.py +12 -0
- agentforge_graph/chunking/cast.py +159 -0
- agentforge_graph/chunking/chunk.py +19 -0
- agentforge_graph/chunking/tokens.py +15 -0
- agentforge_graph/cli.py +607 -0
- agentforge_graph/config.py +259 -0
- agentforge_graph/core/__init__.py +54 -0
- agentforge_graph/core/conformance.py +270 -0
- agentforge_graph/core/contracts.py +163 -0
- agentforge_graph/core/kinds.py +68 -0
- agentforge_graph/core/models.py +134 -0
- agentforge_graph/core/provenance.py +62 -0
- agentforge_graph/core/symbols.py +116 -0
- agentforge_graph/embed/__init__.py +28 -0
- agentforge_graph/embed/base.py +22 -0
- agentforge_graph/embed/bedrock.py +85 -0
- agentforge_graph/embed/fake.py +34 -0
- agentforge_graph/embed/openai.py +67 -0
- agentforge_graph/embed/pipeline.py +184 -0
- agentforge_graph/embed/registry.py +66 -0
- agentforge_graph/embed/report.py +15 -0
- agentforge_graph/enrich/__init__.py +70 -0
- agentforge_graph/enrich/anthropic.py +38 -0
- agentforge_graph/enrich/anthropic_client.py +109 -0
- agentforge_graph/enrich/bedrock.py +24 -0
- agentforge_graph/enrich/bedrock_client.py +115 -0
- agentforge_graph/enrich/bedrock_summarizer.py +23 -0
- agentforge_graph/enrich/claude.py +172 -0
- agentforge_graph/enrich/enricher.py +108 -0
- agentforge_graph/enrich/governs.py +173 -0
- agentforge_graph/enrich/governs_enricher.py +152 -0
- agentforge_graph/enrich/heuristics.py +224 -0
- agentforge_graph/enrich/judge.py +63 -0
- agentforge_graph/enrich/registry.py +133 -0
- agentforge_graph/enrich/report.py +60 -0
- agentforge_graph/enrich/summarizer.py +62 -0
- agentforge_graph/enrich/summary_enricher.py +211 -0
- agentforge_graph/enrich/taxonomy.py +38 -0
- agentforge_graph/frameworks/__init__.py +29 -0
- agentforge_graph/frameworks/base.py +75 -0
- agentforge_graph/frameworks/detect.py +124 -0
- agentforge_graph/frameworks/extractor.py +63 -0
- agentforge_graph/frameworks/orm.py +93 -0
- agentforge_graph/frameworks/packs/_js_ast.py +56 -0
- agentforge_graph/frameworks/packs/_python_ast.py +157 -0
- agentforge_graph/frameworks/packs/django/__init__.py +240 -0
- agentforge_graph/frameworks/packs/django/models.scm +7 -0
- agentforge_graph/frameworks/packs/express/__init__.py +133 -0
- agentforge_graph/frameworks/packs/express/routes.scm +8 -0
- agentforge_graph/frameworks/packs/fastapi/__init__.py +210 -0
- agentforge_graph/frameworks/packs/fastapi/depends.scm +6 -0
- agentforge_graph/frameworks/packs/fastapi/routes.scm +10 -0
- agentforge_graph/frameworks/packs/flask/__init__.py +143 -0
- agentforge_graph/frameworks/packs/flask/routes.scm +11 -0
- agentforge_graph/frameworks/packs/nestjs/__init__.py +205 -0
- agentforge_graph/frameworks/packs/nestjs/routes.scm +6 -0
- agentforge_graph/frameworks/packs/spring/__init__.py +267 -0
- agentforge_graph/frameworks/packs/spring/routes.scm +6 -0
- agentforge_graph/frameworks/packs/sqlalchemy/__init__.py +250 -0
- agentforge_graph/frameworks/packs/sqlalchemy/models.scm +7 -0
- agentforge_graph/frameworks/registry.py +44 -0
- agentforge_graph/ingest/__init__.py +30 -0
- agentforge_graph/ingest/codegraph.py +847 -0
- agentforge_graph/ingest/extractor.py +353 -0
- agentforge_graph/ingest/incremental/__init__.py +25 -0
- agentforge_graph/ingest/incremental/detect.py +118 -0
- agentforge_graph/ingest/incremental/dirty.py +61 -0
- agentforge_graph/ingest/incremental/indexer.py +218 -0
- agentforge_graph/ingest/incremental/meta.py +72 -0
- agentforge_graph/ingest/incremental/ports.py +39 -0
- agentforge_graph/ingest/pack.py +160 -0
- agentforge_graph/ingest/packs/__init__.py +34 -0
- agentforge_graph/ingest/packs/cpp/__init__.py +35 -0
- agentforge_graph/ingest/packs/cpp/references.scm +15 -0
- agentforge_graph/ingest/packs/cpp/structure.scm +49 -0
- agentforge_graph/ingest/packs/csharp/__init__.py +35 -0
- agentforge_graph/ingest/packs/csharp/references.scm +12 -0
- agentforge_graph/ingest/packs/csharp/structure.scm +45 -0
- agentforge_graph/ingest/packs/go/__init__.py +38 -0
- agentforge_graph/ingest/packs/go/references.scm +12 -0
- agentforge_graph/ingest/packs/go/structure.scm +64 -0
- agentforge_graph/ingest/packs/java/__init__.py +35 -0
- agentforge_graph/ingest/packs/java/references.scm +12 -0
- agentforge_graph/ingest/packs/java/structure.scm +38 -0
- agentforge_graph/ingest/packs/javascript/__init__.py +34 -0
- agentforge_graph/ingest/packs/javascript/references.scm +11 -0
- agentforge_graph/ingest/packs/javascript/structure.scm +166 -0
- agentforge_graph/ingest/packs/php/__init__.py +35 -0
- agentforge_graph/ingest/packs/php/references.scm +15 -0
- agentforge_graph/ingest/packs/php/structure.scm +44 -0
- agentforge_graph/ingest/packs/python/__init__.py +25 -0
- agentforge_graph/ingest/packs/python/references.scm +14 -0
- agentforge_graph/ingest/packs/python/structure.scm +57 -0
- agentforge_graph/ingest/packs/ruby/__init__.py +37 -0
- agentforge_graph/ingest/packs/ruby/references.scm +12 -0
- agentforge_graph/ingest/packs/ruby/structure.scm +37 -0
- agentforge_graph/ingest/packs/rust/__init__.py +39 -0
- agentforge_graph/ingest/packs/rust/references.scm +12 -0
- agentforge_graph/ingest/packs/rust/structure.scm +46 -0
- agentforge_graph/ingest/packs/typescript/__init__.py +31 -0
- agentforge_graph/ingest/packs/typescript/references.scm +11 -0
- agentforge_graph/ingest/packs/typescript/structure.scm +99 -0
- agentforge_graph/ingest/pipeline.py +134 -0
- agentforge_graph/ingest/report.py +84 -0
- agentforge_graph/ingest/resolver.py +467 -0
- agentforge_graph/ingest/source.py +79 -0
- agentforge_graph/knowledge/__init__.py +28 -0
- agentforge_graph/knowledge/adr.py +136 -0
- agentforge_graph/knowledge/commits.py +152 -0
- agentforge_graph/knowledge/ingest.py +312 -0
- agentforge_graph/knowledge/mentions.py +71 -0
- agentforge_graph/knowledge/report.py +32 -0
- agentforge_graph/main.py +21 -0
- agentforge_graph/providers.py +36 -0
- agentforge_graph/repomap/__init__.py +14 -0
- agentforge_graph/repomap/rank.py +161 -0
- agentforge_graph/repomap/render.py +55 -0
- agentforge_graph/repomap/repomap.py +66 -0
- agentforge_graph/retrieve/__init__.py +21 -0
- agentforge_graph/retrieve/pack.py +76 -0
- agentforge_graph/retrieve/rerank.py +251 -0
- agentforge_graph/retrieve/retriever.py +286 -0
- agentforge_graph/retrieve/scoring.py +36 -0
- agentforge_graph/serve/__init__.py +19 -0
- agentforge_graph/serve/engine.py +204 -0
- agentforge_graph/serve/http_runner.py +133 -0
- agentforge_graph/serve/server.py +110 -0
- agentforge_graph/serve/tools.py +307 -0
- agentforge_graph/store/__init__.py +32 -0
- agentforge_graph/store/_rowmap.py +102 -0
- agentforge_graph/store/errors.py +22 -0
- agentforge_graph/store/facade.py +89 -0
- agentforge_graph/store/kuzu_store.py +380 -0
- agentforge_graph/store/lance_store.py +146 -0
- agentforge_graph/store/neo4j_store.py +294 -0
- agentforge_graph/store/pgvector_store.py +170 -0
- agentforge_graph/store/registry.py +45 -0
- agentforge_graph/temporal/__init__.py +36 -0
- agentforge_graph/temporal/backfill.py +338 -0
- agentforge_graph/temporal/events.py +82 -0
- agentforge_graph/temporal/index.py +190 -0
- agentforge_graph/temporal/mining.py +190 -0
- agentforge_graph/temporal/recorder.py +114 -0
- agentforge_graph/temporal/store.py +282 -0
- agentforge_graph-0.3.2.dist-info/METADATA +291 -0
- agentforge_graph-0.3.2.dist-info/RECORD +151 -0
- agentforge_graph-0.3.2.dist-info/WHEEL +4 -0
- agentforge_graph-0.3.2.dist-info/entry_points.txt +3 -0
- agentforge_graph-0.3.2.dist-info/licenses/LICENSE +202 -0
- agentforge_graph-0.3.2.dist-info/licenses/NOTICE +14 -0
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: agentforge-graph
|
|
3
|
+
Version: 0.3.2
|
|
4
|
+
Summary: Code Knowledge Graph (CKG) engine + agent toolset, built on AgentForge.
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
License-File: NOTICE
|
|
8
|
+
Keywords: agent,ckg,code-knowledge-graph,code-search,mcp,rag,static-analysis,tree-sitter
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
+
Classifier: Topic :: Software Development :: Documentation
|
|
15
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
16
|
+
Classifier: Typing :: Typed
|
|
17
|
+
Requires-Python: >=3.13
|
|
18
|
+
Requires-Dist: agentforge-anthropic[anthropic]<0.3,>=0.2.4
|
|
19
|
+
Requires-Dist: agentforge-mcp[mcp]<0.3,>=0.2.4
|
|
20
|
+
Requires-Dist: agentforge-py<0.3,>=0.2.4
|
|
21
|
+
Requires-Dist: fastembed>=0.4
|
|
22
|
+
Requires-Dist: kuzu>=0.6
|
|
23
|
+
Requires-Dist: lancedb>=0.15
|
|
24
|
+
Requires-Dist: networkx>=3.3
|
|
25
|
+
Requires-Dist: python-dotenv>=1.0
|
|
26
|
+
Requires-Dist: pyyaml>=6
|
|
27
|
+
Requires-Dist: tree-sitter-language-pack>=0.9
|
|
28
|
+
Requires-Dist: tree-sitter>=0.23
|
|
29
|
+
Provides-Extra: bedrock
|
|
30
|
+
Requires-Dist: boto3>=1.35; extra == 'bedrock'
|
|
31
|
+
Provides-Extra: dev
|
|
32
|
+
Requires-Dist: mypy>=1.13; extra == 'dev'
|
|
33
|
+
Requires-Dist: pytest-asyncio>=0.24; extra == 'dev'
|
|
34
|
+
Requires-Dist: pytest-cov>=5; extra == 'dev'
|
|
35
|
+
Requires-Dist: pytest>=8; extra == 'dev'
|
|
36
|
+
Requires-Dist: ruff>=0.7; extra == 'dev'
|
|
37
|
+
Requires-Dist: types-pyyaml>=6; extra == 'dev'
|
|
38
|
+
Provides-Extra: engine
|
|
39
|
+
Provides-Extra: neo4j
|
|
40
|
+
Requires-Dist: neo4j>=5; extra == 'neo4j'
|
|
41
|
+
Provides-Extra: openai
|
|
42
|
+
Requires-Dist: openai>=1.40; extra == 'openai'
|
|
43
|
+
Provides-Extra: otel
|
|
44
|
+
Requires-Dist: agentforge-otel; extra == 'otel'
|
|
45
|
+
Provides-Extra: pgvector
|
|
46
|
+
Requires-Dist: asyncpg>=0.30; extra == 'pgvector'
|
|
47
|
+
Requires-Dist: pgvector>=0.3; extra == 'pgvector'
|
|
48
|
+
Provides-Extra: rerank
|
|
49
|
+
Requires-Dist: sentence-transformers>=2.2; extra == 'rerank'
|
|
50
|
+
Provides-Extra: voyage
|
|
51
|
+
Requires-Dist: agentforge-voyage; extra == 'voyage'
|
|
52
|
+
Description-Content-Type: text/markdown
|
|
53
|
+
|
|
54
|
+
<!-- AGENTFORGE-MANAGED: template:minimal@0.2.4 hash:c474ab3012ec -->
|
|
55
|
+
<!-- NOTE: customized for agentforge-graph (forked from the scaffold README). -->
|
|
56
|
+
# agentforge-graph
|
|
57
|
+
|
|
58
|
+
[](https://github.com/Scaffoldic/agentforge-grpah/actions/workflows/ci.yml)
|
|
59
|
+
|
|
60
|
+
> A **Code Knowledge Graph (CKG) engine + agent toolset.** It turns a
|
|
61
|
+
> repository into a typed, provenance-tracked graph — symbols, calls, imports,
|
|
62
|
+
> API routes, architecture decisions, design-pattern tags, LLM summaries — and
|
|
63
|
+
> serves that knowledge to coding agents over **MCP** or as an AgentForge
|
|
64
|
+
> toolset. Built on [AgentForge](https://pypi.org/project/agentforge-py/).
|
|
65
|
+
|
|
66
|
+
Plain code-graph tools answer *"what is connected"*. Agents also need *"what is
|
|
67
|
+
this **for**"*, *"what decision governs this code"*, *"what's the API surface"*,
|
|
68
|
+
*"show me all the Repositories"*. **agentforge-graph puts parsed structure,
|
|
69
|
+
framework semantics, architecture decisions, and LLM enrichment in one graph an
|
|
70
|
+
agent can traverse — every fact carrying its provenance.**
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## What it brings to the table
|
|
75
|
+
|
|
76
|
+
| Capability | What you get |
|
|
77
|
+
|---|---|
|
|
78
|
+
| **Typed code graph** | Files, classes, functions, methods with stable SCIP-style ids; `CONTAINS`/`IMPORTS`/`CALLS` edges. Conservative, no-guess resolution. |
|
|
79
|
+
| **Hybrid retrieval** | Vector search **entry** → typed **graph expansion**. Ask in natural language, get *connected* context (the symbol, its callers, its governing decision). |
|
|
80
|
+
| **Incremental** | Re-index only the diff. Edit 3 files in a 5k-file repo → seconds, not minutes. Embeddings/enrichment recompute only what changed. |
|
|
81
|
+
| **Decisions ↔ code** (differentiator) | Ingests ADRs and links them to the code they `GOVERN`. A search hit on `payments/` surfaces *"ADR-0012 (accepted): idempotency keys must be client-side"* before the agent edits. |
|
|
82
|
+
| **Framework awareness** (differentiator) | Extracts API routes (FastAPI) as `Route → HANDLED_BY → handler` edges. `ckg routes` is your API surface in one call. |
|
|
83
|
+
| **LLM enrichment** (differentiator) | Budgeted design-pattern tags (*"this class is a Repository"*, with confidence + rationale) and bottom-up module summaries — all `llm`-provenance and opt-out-able. |
|
|
84
|
+
| **Agent-native** | Served read-only over MCP (9 tools) or as a native AgentForge toolset. Every response carries a staleness envelope. |
|
|
85
|
+
| **Embedded-first** | Local Kuzu graph + LanceDB vectors under `.ckg/`. No server to run. Storage and models are pluggable (see below). |
|
|
86
|
+
|
|
87
|
+
**Status: 0.3.2 — production-grade.** The full pipeline works end-to-end on real
|
|
88
|
+
code — `index → embed → enrich → query / map / decisions / routes / models /
|
|
89
|
+
services / explain / history`, served over MCP. 0.3.0 completes the
|
|
90
|
+
History + decisions theme (temporal/git-evolution + ADR/docs ingestion) and adds
|
|
91
|
+
**framework-aware extractors** — routes, ORM models, and DI as graph edges across
|
|
92
|
+
FastAPI/Flask/SQLAlchemy/Django (Python), Express/NestJS (JS/TS), and Spring
|
|
93
|
+
(Java). 0.2.0 added the temporal layer, a cross-encoder reranker seam, and
|
|
94
|
+
intra-type call resolution across all 10 packs.
|
|
95
|
+
Language packs: **all 10 — Python, TypeScript, JavaScript, Go,
|
|
96
|
+
Ruby, PHP, Java, C#, C++, Rust** (each validated on a real OSS repo, with a
|
|
97
|
+
creds-enabled embed/retrieval/enrich run). Opt-in server storage (Neo4j /
|
|
98
|
+
pgvector); HTTP MCP auth; a real agent answers questions over the tools
|
|
99
|
+
unattended. Of the 12 planned features, **11 are shipped**; only the temporal/
|
|
100
|
+
git-evolution layer (feat-009) is post-0.1. See the
|
|
101
|
+
[`CHANGELOG`](CHANGELOG.md) and [`docs/features/TRACKER.md`](docs/features/TRACKER.md).
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## Quick start
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# install (uv, not pip)
|
|
109
|
+
uv sync --extra engine --extra bedrock # tree-sitter + kuzu + lancedb + boto3
|
|
110
|
+
|
|
111
|
+
# 1) index a repo into the graph (incremental by default once indexed)
|
|
112
|
+
ckg index . # files/classes/functions/calls (+ ADRs if any)
|
|
113
|
+
|
|
114
|
+
# 2) embed for semantic search
|
|
115
|
+
ckg embed . # AST chunks → vectors (Cohere embed-v4 on Bedrock)
|
|
116
|
+
|
|
117
|
+
# 3) optional: LLM enrichment (explicit, budgeted)
|
|
118
|
+
ckg enrich . --all --budget-usd 2 # design-pattern tags + module summaries
|
|
119
|
+
|
|
120
|
+
# query & explore
|
|
121
|
+
ckg map --budget 2000 # centrality-ranked repo orientation
|
|
122
|
+
ckg query "how are tokens validated" # ranked, connected context (cosine-scored)
|
|
123
|
+
ckg query --symbol "<id>" --mode impact # reverse deps — "who calls this"
|
|
124
|
+
ckg decisions --status accepted # ADRs and what they govern
|
|
125
|
+
ckg routes # API surface: METHOD PATH → handler
|
|
126
|
+
ckg tagged Repository # symbols tagged with a design pattern
|
|
127
|
+
ckg status # indexed commit, staleness, node counts
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Serve it to an agent
|
|
131
|
+
|
|
132
|
+
To Claude Code (or any MCP client) — **9 read-only tools**: `ckg_repo_map`,
|
|
133
|
+
`ckg_search`, `ckg_symbol`, `ckg_impact`, `ckg_neighbors`, `ckg_status`,
|
|
134
|
+
`ckg_routes`, `ckg_decisions`, `ckg_explain`:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
claude mcp add ckg -- ckg serve-mcp --repo . # stdio (subprocess)
|
|
138
|
+
ckg serve-mcp --repo . --transport http # or HTTP → http://127.0.0.1:8765/mcp
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Over HTTP, point any MCP client at the URL:
|
|
142
|
+
`{"mcpServers": {"ckg": {"url": "http://127.0.0.1:8765/mcp"}}}`.
|
|
143
|
+
|
|
144
|
+
Or as a native AgentForge toolset:
|
|
145
|
+
|
|
146
|
+
```python
|
|
147
|
+
from agentforge import Agent
|
|
148
|
+
from agentforge_graph.serve import code_graph_tools
|
|
149
|
+
|
|
150
|
+
agent = Agent(model="anthropic:claude-sonnet-4-6", tools=code_graph_tools("."))
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
→ Full guide (tool schemas, client config, guardrails, staleness envelope):
|
|
154
|
+
[`docs/guides/using-over-mcp.md`](docs/guides/using-over-mcp.md).
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Storage — what DB, and can I switch it?
|
|
159
|
+
|
|
160
|
+
**By default, nothing to run.** The graph lives in an embedded **Kuzu** database
|
|
161
|
+
and the vectors in an embedded **LanceDB** index, both under `.ckg/` in your repo
|
|
162
|
+
(ADR-0006). Zero config, no server.
|
|
163
|
+
|
|
164
|
+
Storage is **pluggable** behind two contracts — `GraphStore` and `VectorStore`
|
|
165
|
+
([`core/contracts.py`](src/agentforge_graph/core/contracts.py)) — resolved by a
|
|
166
|
+
**driver registry** with entry-point groups
|
|
167
|
+
([`store/registry.py`](src/agentforge_graph/store/registry.py)):
|
|
168
|
+
|
|
169
|
+
```yaml
|
|
170
|
+
# ckg.yaml
|
|
171
|
+
store:
|
|
172
|
+
graph: { driver: kuzu } # built-in
|
|
173
|
+
vectors: { driver: lancedb } # built-in
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
A server backend (Neo4j, FalkorDB, SurrealDB, pgvector, …) is an **out-of-tree
|
|
177
|
+
adapter**: implement the contract, pass the reusable `GraphStoreConformance`
|
|
178
|
+
suite, register an entry point — then it's `pip install + one config line`, no
|
|
179
|
+
core change. **Today only `kuzu` + `lancedb` ship**; the others are a defined
|
|
180
|
+
extension point, not bundled. (PRs welcome — see
|
|
181
|
+
[`CONTRIBUTING.md`](CONTRIBUTING.md).)
|
|
182
|
+
|
|
183
|
+
## Models — pick a provider, or bring your own
|
|
184
|
+
|
|
185
|
+
Every model boundary is an **interface** resolved by a provider registry
|
|
186
|
+
(ENH-003), so switching providers is a `ckg.yaml` line — not a code change.
|
|
187
|
+
Multiple providers ship first-party:
|
|
188
|
+
|
|
189
|
+
| Interface | Ships first-party | Select with | Bring-your-own |
|
|
190
|
+
|---|---|---|---|
|
|
191
|
+
| `Embedder` | `bedrock` (Cohere `embed-v4`) · `openai` (incl. **local** OpenAI-compatible) · `fake` (CI) | `embed.driver` | entry point — a small adapter |
|
|
192
|
+
| `PatternJudge` | `bedrock` · `anthropic` (direct API) · `scripted` (CI) | `enrich.provider` | entry point |
|
|
193
|
+
| `Summarizer` | `bedrock` · `anthropic` (direct API) · `scripted` (CI) | `enrich.provider` | entry point |
|
|
194
|
+
|
|
195
|
+
- **On AWS?** Default `bedrock` (Claude + Cohere) uses your AWS credentials.
|
|
196
|
+
- **Not on AWS?** `enrich.provider: anthropic` (set `ANTHROPIC_API_KEY`) and
|
|
197
|
+
`embed.driver: openai` (set `OPENAI_API_KEY`) give a full live path, no AWS.
|
|
198
|
+
- **Local / self-hosted?** Point `embed.base_url` at any OpenAI-compatible
|
|
199
|
+
server (Ollama, vLLM, LM Studio) — same `openai` driver.
|
|
200
|
+
- **Adding a *new* provider** is implementing one small class and registering an
|
|
201
|
+
entry point — `pip install + one config line`, no fork. The engine,
|
|
202
|
+
orchestration, budget rails, and heuristics don't change.
|
|
203
|
+
|
|
204
|
+
CI uses the deterministic fakes, so **no model calls or cloud creds are needed to
|
|
205
|
+
build or test**. Live model tests are env-gated (`CKG_LIVE_BEDROCK`,
|
|
206
|
+
`CKG_LIVE_AGENT`, `CKG_LIVE_ANTHROPIC`, `CKG_LIVE_OPENAI`).
|
|
207
|
+
|
|
208
|
+
→ Full guide: [`docs/guides/model-providers.md`](docs/guides/model-providers.md)
|
|
209
|
+
(change a provider, run locally, or add your own). Set `embed.driver: fake` +
|
|
210
|
+
`enrich.provider: scripted` for fully offline use.
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## Architecture
|
|
215
|
+
|
|
216
|
+
See **[`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md)** for the full overview
|
|
217
|
+
(layer diagram, data model, every pipeline in ASCII, extension points). In one
|
|
218
|
+
breath: a `core` of contracts + value types, a **deterministic engine** that
|
|
219
|
+
never imports the framework (parse, store, resolve, embed, retrieve, frameworks,
|
|
220
|
+
decisions), and a thin **framework layer** (`serve` = MCP/Tools, `enrich` = LLM
|
|
221
|
+
with budget rails) on top.
|
|
222
|
+
|
|
223
|
+
```
|
|
224
|
+
ckg CLI / MCP server / Agent
|
|
225
|
+
│
|
|
226
|
+
serve · enrich (framework layer — may import agentforge)
|
|
227
|
+
│
|
|
228
|
+
ingest · store · chunking · embed · retrieve · repomap · frameworks · knowledge
|
|
229
|
+
│ (deterministic engine — no agentforge)
|
|
230
|
+
core: contracts · models · SymbolID · provenance · kinds
|
|
231
|
+
│
|
|
232
|
+
Kuzu (graph) + LanceDB (vectors) under .ckg/
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
## Configuration
|
|
238
|
+
|
|
239
|
+
Two files, on purpose:
|
|
240
|
+
|
|
241
|
+
- **`agentforge.yaml`** — the *framework's* config (agent model, budget, MCP).
|
|
242
|
+
Strict validator. `uv run agentforge config validate`.
|
|
243
|
+
- **`ckg.yaml`** — *this engine's* config: `store`, `ingest`, `chunking`,
|
|
244
|
+
`embed`, `retrieve`, `repomap`, `serve`, `frameworks`, `knowledge`, `enrich`.
|
|
245
|
+
Lenient (unknown keys ignored), so a config written for a later feature still
|
|
246
|
+
loads.
|
|
247
|
+
|
|
248
|
+
## Install extras
|
|
249
|
+
|
|
250
|
+
| Install | Provides |
|
|
251
|
+
|---|---|
|
|
252
|
+
| `uv sync` | base: `agentforge-py`, `agentforge-anthropic`, `agentforge-mcp[mcp]` |
|
|
253
|
+
| `--extra engine` | tree-sitter (+ grammars), kuzu, lancedb, networkx |
|
|
254
|
+
| `--extra bedrock` | `boto3` — Bedrock embeddings + Claude enrichment |
|
|
255
|
+
| `--extra openai` | `openai` — OpenAI / local OpenAI-compatible embeddings |
|
|
256
|
+
| `--extra rerank` | sentence-transformers reranker (off by default) |
|
|
257
|
+
|
|
258
|
+
The Anthropic-API enrichment path (`enrich.provider: anthropic`) needs no extra —
|
|
259
|
+
the `anthropic` SDK ships with the base install.
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
## Contributing & AI-assisted development
|
|
264
|
+
|
|
265
|
+
This repo is built to be worked on **with** AI agents. Start here:
|
|
266
|
+
|
|
267
|
+
- **[`CONTRIBUTING.md`](CONTRIBUTING.md)** — setup, tests, the per-feature
|
|
268
|
+
development pipeline, and step-by-step playbooks (add a language pack, a
|
|
269
|
+
framework pack, a storage backend, a model adapter, an MCP tool, an enricher).
|
|
270
|
+
- **[`AGENTS.md`](AGENTS.md)** — read by Claude Code, Cursor, Aider, etc.
|
|
271
|
+
(the [AGENTS.md convention](https://agents.md)); the invariants an AI assistant
|
|
272
|
+
must respect.
|
|
273
|
+
- **[`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md)** — the system map.
|
|
274
|
+
|
|
275
|
+
## Documentation map
|
|
276
|
+
|
|
277
|
+
| Doc | What it is |
|
|
278
|
+
|---|---|
|
|
279
|
+
| [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md) | High-level architecture + every pipeline (ASCII) |
|
|
280
|
+
| [`docs/adr/`](docs/adr/) | 9 architecture decision records (the *why*) |
|
|
281
|
+
| [`docs/features/`](docs/features/) + [`TRACKER.md`](docs/features/TRACKER.md) | 12 feature specs + status board |
|
|
282
|
+
| [`docs/design/`](docs/design/) | Per-feature design docs (the *how*, pre-build) |
|
|
283
|
+
| [`docs/bugs/`](docs/bugs/) · [`docs/enhancements/`](docs/enhancements/) · [`docs/known-limitations/`](docs/known-limitations/) | Triaged findings, each with a template |
|
|
284
|
+
| [`docs/open-source-ckg-research.md`](docs/open-source-ckg-research.md) | The survey that motivates the design |
|
|
285
|
+
|
|
286
|
+
## License
|
|
287
|
+
|
|
288
|
+
[**Apache-2.0**](LICENSE) — permissive, with an explicit patent grant and
|
|
289
|
+
patent-retaliation clause. See [`LICENSE`](LICENSE) for the full text and
|
|
290
|
+
[`NOTICE`](NOTICE) for attribution. Aligns with AgentForge, which is also
|
|
291
|
+
Apache-2.0.
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
agentforge_graph/__init__.py,sha256=j-lhghA_z7DRJlzJaykJeHFCjyb6GiJtxqcubRmfffg,199
|
|
2
|
+
agentforge_graph/cli.py,sha256=coNQzqJ0nqcYROeVOaVW79-MWnKXs4zv1pZquSTLYQ4,23748
|
|
3
|
+
agentforge_graph/config.py,sha256=G7nN4pl0WA5-Q0wvq95sUV6OMuK1NTdOR-MMclqxVwM,10979
|
|
4
|
+
agentforge_graph/main.py,sha256=_7QsyyHSGHvUEnpgXT1G9Oe6yXXV04dgWKAdUXHE7Xc,522
|
|
5
|
+
agentforge_graph/providers.py,sha256=aPpp8mcLLqdwKdPWrp5CJPKM3z0ScFyBtnn3fPHQf1Q,1459
|
|
6
|
+
agentforge_graph/chunking/__init__.py,sha256=58wZ78rmnHAGUyBDvi6ET08qwCYEOV7lcLU9O7ANsKw,403
|
|
7
|
+
agentforge_graph/chunking/cast.py,sha256=QoUGG1kbaqA764ZH6TUFxI8ccASdaSwv1UgfWZHFKoA,5860
|
|
8
|
+
agentforge_graph/chunking/chunk.py,sha256=Ife4cR2sjyecHU7LZSCkdqOLGIXHW_Qz79wEq9sN-F8,795
|
|
9
|
+
agentforge_graph/chunking/tokens.py,sha256=3rLaJEt3zodQULXwiMDVoaBXTooC3Q0W42ZMxK6FmE0,510
|
|
10
|
+
agentforge_graph/core/__init__.py,sha256=68Awq-rilWMLGmEAGS8Vfi-PnPNhqVQaRUUgoWlJ9dA,1238
|
|
11
|
+
agentforge_graph/core/conformance.py,sha256=N5VHUEEJXpXLIjh0_EuuEj0Zz6qiG3FTPltwEPxTHmo,11969
|
|
12
|
+
agentforge_graph/core/contracts.py,sha256=5I3IpenEc0FFWFGMWgl57KE5idFlLH9qBmMq6yyW4k8,5896
|
|
13
|
+
agentforge_graph/core/kinds.py,sha256=EUvN98t6MOd2rkIEjzpUTQ7Md0kCckCYw_qsO6DSz9w,1891
|
|
14
|
+
agentforge_graph/core/models.py,sha256=SzUL2XtvqE3wVw2tYEzSCWnuHTfQx-izlbg1UeIe3ss,4069
|
|
15
|
+
agentforge_graph/core/provenance.py,sha256=UtvAxeiqKWUwzLjrXUIaFaUX_PpUuGP2TR09tYTq5TA,2253
|
|
16
|
+
agentforge_graph/core/symbols.py,sha256=S5Mc83JAXooXefb2L5oCvsD-fukxmGyG1zzj-b5Xs8w,3727
|
|
17
|
+
agentforge_graph/embed/__init__.py,sha256=vSJUZA9JXLkSWXhL84dS3or-mbC8HSx6kLjlRiC7QeA,839
|
|
18
|
+
agentforge_graph/embed/base.py,sha256=uVzTLfq5X5atcTC4aYI2powa2w-S2gEmGj3TsxbqoRY,674
|
|
19
|
+
agentforge_graph/embed/bedrock.py,sha256=0Cb6ZnmPOhZKALpLFRn5f_3kHPLSjSvH1vhnZ-7BlSY,3043
|
|
20
|
+
agentforge_graph/embed/fake.py,sha256=SuGIMgWPMTQ9jxc9ZEywN3FdtezGj5KB6hbGKp3zXf0,1094
|
|
21
|
+
agentforge_graph/embed/openai.py,sha256=ipKJ1wT-PZA9ON5XSl-N528fJlaYEixk3MeM18fUEQs,2440
|
|
22
|
+
agentforge_graph/embed/pipeline.py,sha256=XKHJk_Y7n3HsW_75_Emn-Qm49NZkW38w9Gm_rWsxTWQ,7527
|
|
23
|
+
agentforge_graph/embed/registry.py,sha256=9Uw-q1DoT5z6n5TPFxRefBLr1YCq0JEtYnsNEVxKnMY,2094
|
|
24
|
+
agentforge_graph/embed/report.py,sha256=EkQbgJt7SZeK3SlUKPZ-Md-oKcl6-ESS2g5Qqgy00MA,405
|
|
25
|
+
agentforge_graph/enrich/__init__.py,sha256=qr0EvGIhwR2XAWUqlyKtS2QWytnVfumpZ2zyr33d2cM,2138
|
|
26
|
+
agentforge_graph/enrich/anthropic.py,sha256=LowirlbEUP1RilEoZzbQBwqcsv8s7lN1IxE6OLwRPPM,1418
|
|
27
|
+
agentforge_graph/enrich/anthropic_client.py,sha256=e7cJbDUCDP6vO6v7InG4jd33k4HujYVcJUqvDjqs-9s,3864
|
|
28
|
+
agentforge_graph/enrich/bedrock.py,sha256=6SzgXcMWVdE64Av4oa4_EUppjtBdwQGbep2dN-6CH6A,901
|
|
29
|
+
agentforge_graph/enrich/bedrock_client.py,sha256=Y-SclkkyE6X-LNXoEM9Lr79ejv_GziXAnKViqIFFpdE,3930
|
|
30
|
+
agentforge_graph/enrich/bedrock_summarizer.py,sha256=5JdE9JQ6Nkr_7otGMQmWWb3Bz6k-gT3_VgHPYQgq42o,872
|
|
31
|
+
agentforge_graph/enrich/claude.py,sha256=wUGwjVKj5tdpNBVBMuUeGlEArJRlVdwEymd1mHMwqh0,6696
|
|
32
|
+
agentforge_graph/enrich/enricher.py,sha256=kcL_eKeopbTAjSXe2Z7rx4UhOu9Ux8yR896LOQVayGg,4626
|
|
33
|
+
agentforge_graph/enrich/governs.py,sha256=2i5I-DTGAWlFMo22sxfDdz4KLBjzdqIUjkqnOM4rJso,6118
|
|
34
|
+
agentforge_graph/enrich/governs_enricher.py,sha256=aFn4fU0VuUhEIImOmbjNGLFsuCwBj79ZdcUUvDHdDXA,5897
|
|
35
|
+
agentforge_graph/enrich/heuristics.py,sha256=oNp9l9-yR9h-EOeQ_5R0DQBbxKjD_Wzb_D54gd5caNs,8612
|
|
36
|
+
agentforge_graph/enrich/judge.py,sha256=qDlTrOMHDXH-pqgSyktfbtx9D4Q75exgsYbazriiqBg,1959
|
|
37
|
+
agentforge_graph/enrich/registry.py,sha256=VKfW00svmJOaK8sw3xOJclPWo53_KD1YTi3gFPAraZo,4955
|
|
38
|
+
agentforge_graph/enrich/report.py,sha256=dPoMoFSwOAsj5CNebj8GzlKey6Fj69rH5OTM3LnArJw,1739
|
|
39
|
+
agentforge_graph/enrich/summarizer.py,sha256=tWIb7vpEZM7gFu9fFIYKX2LbBuqKLurvEYDgGQuLMhE,1849
|
|
40
|
+
agentforge_graph/enrich/summary_enricher.py,sha256=-853CzzLB5MKO6HOm0O5HqOZvXns07U1wmb8spJJUew,8471
|
|
41
|
+
agentforge_graph/enrich/taxonomy.py,sha256=sybNI9NIMI-au5K7pAVG8kT_yj58_6BZQcafcUm9FCE,952
|
|
42
|
+
agentforge_graph/frameworks/__init__.py,sha256=i9XgVHT6TQCnyV_FBTaKIL5-vr0b8ahozZ3IfcsA19E,925
|
|
43
|
+
agentforge_graph/frameworks/base.py,sha256=J6d_WjvN7ZcgT3NBWOkenkS8ltdJigqjTrBG6z1yB-M,3354
|
|
44
|
+
agentforge_graph/frameworks/detect.py,sha256=ouSugUsaxuckfoE8jwWqC1gnG31sIfwNVusHZVMXnyU,4232
|
|
45
|
+
agentforge_graph/frameworks/extractor.py,sha256=fXIu57H5OE-9Cbx9cDEoRSCpTWlsIUe8gsrhoKG2HIc,2461
|
|
46
|
+
agentforge_graph/frameworks/orm.py,sha256=nyQJkxE3ejk4X81yrJ1jA9T4CL4-EsIwcXvszvMY8gA,3311
|
|
47
|
+
agentforge_graph/frameworks/registry.py,sha256=KRBAlDuK2NgO0UOyofHv-NFauiVoefDAX2M63pLNWTg,1353
|
|
48
|
+
agentforge_graph/frameworks/packs/_js_ast.py,sha256=d-ffGu87v5xktUC9Vg4oT06L5X8CIFgDEpOJt2LyAnk,1849
|
|
49
|
+
agentforge_graph/frameworks/packs/_python_ast.py,sha256=0zZJwqM4hZyphga7JVn3HqOhIDFkze9l9CvPCzXoCC4,5822
|
|
50
|
+
agentforge_graph/frameworks/packs/django/__init__.py,sha256=sOcJp6ZuMp3pJeyhS6KOZiYJl-UEA-38iFRZg4Es0xg,9262
|
|
51
|
+
agentforge_graph/frameworks/packs/django/models.scm,sha256=ZX8pOOx5wnK1D_hoO2UrgMb9ukEY5YCkRTJrnVbilVI,447
|
|
52
|
+
agentforge_graph/frameworks/packs/express/__init__.py,sha256=RWoFp587kvWZNXzzg8ume_AW6FWxE2nc2tQ-pUpfptI,4908
|
|
53
|
+
agentforge_graph/frameworks/packs/express/routes.scm,sha256=cBaJFuhCbIOQ48EHgNGXzl5tc4Xso4GanlSIZavSalU,479
|
|
54
|
+
agentforge_graph/frameworks/packs/fastapi/__init__.py,sha256=wOXoR7KZEUz9W2nAFfkrIsUHx1Vf9RsL8GSHWbL1RfE,8127
|
|
55
|
+
agentforge_graph/frameworks/packs/fastapi/depends.scm,sha256=EdgGx0T0iZtCmfFwKcTUoEaiV2gmI-PQ1eoqCjJNbj8,328
|
|
56
|
+
agentforge_graph/frameworks/packs/fastapi/routes.scm,sha256=ewO4Uvs-VSluOdOrrGaxrS5FC9U2TTA1PbPWgWjgicc,523
|
|
57
|
+
agentforge_graph/frameworks/packs/flask/__init__.py,sha256=pCo1zmfqgf3w1bb5mk5srDK2cuL963FgP3RCozm9Cdg,4969
|
|
58
|
+
agentforge_graph/frameworks/packs/flask/routes.scm,sha256=eXsDbQfb_b3nmO8zIOOx8YCXnYHSbkFc9enLqLG3QeU,604
|
|
59
|
+
agentforge_graph/frameworks/packs/nestjs/__init__.py,sha256=pC0pyWVuB5R_0s5fgaZGGBQGodS_arr9R6rs2Fl8BGY,7178
|
|
60
|
+
agentforge_graph/frameworks/packs/nestjs/routes.scm,sha256=-1Nt70yNfQDROCYw-KfFDVg8VK0R4rrElgA0kDmGdtQ,374
|
|
61
|
+
agentforge_graph/frameworks/packs/spring/__init__.py,sha256=siHjIH8lFMkrS7RVwWGWZSEzWXOizeci6Y6Rf22jjGw,9087
|
|
62
|
+
agentforge_graph/frameworks/packs/spring/routes.scm,sha256=7M1ZyT6VANBVbz-hbb1rm1iQ9JQ3AHOlQzEI9_jjbug,354
|
|
63
|
+
agentforge_graph/frameworks/packs/sqlalchemy/__init__.py,sha256=pIpal37-q3ojzR_ByUEfzpm7pzqNjBlJdCrXSAYnyMM,9920
|
|
64
|
+
agentforge_graph/frameworks/packs/sqlalchemy/models.scm,sha256=IHpF_7RVQOT_gA-yFfHbVO8fITOZYrUJBvIpZOxeCP8,425
|
|
65
|
+
agentforge_graph/ingest/__init__.py,sha256=qSBa-eF04lSXJqO5rlrR6k2f-7mexUdGYb0lQWUdcNQ,871
|
|
66
|
+
agentforge_graph/ingest/codegraph.py,sha256=D6TTP0TsEHrpLyZGlaAsEUqKJn_X_qm4cWcrLs2Nw4Y,34927
|
|
67
|
+
agentforge_graph/ingest/extractor.py,sha256=OVodN8i3zZpaFgLaAoKrJm4lWxLhwxsZRPW1uJ_ueA0,14888
|
|
68
|
+
agentforge_graph/ingest/pack.py,sha256=Pwto7axxp6jnlRdPtasMvrlW_V8D_V3cTivijC8Wkus,7657
|
|
69
|
+
agentforge_graph/ingest/pipeline.py,sha256=7sO3TOirY-F7LM_v_uuCiP947dgsIYeIXjiRLEqDCGk,5582
|
|
70
|
+
agentforge_graph/ingest/report.py,sha256=ROdVMYGDM5kTjwqUT6Y15qzCNkO559cGZEu7QOn9r8I,3145
|
|
71
|
+
agentforge_graph/ingest/resolver.py,sha256=5dklImnrkdSdytmirP4U-SXC65aeTifYSfKX5rpR5_A,24092
|
|
72
|
+
agentforge_graph/ingest/source.py,sha256=R1YWX6bIFB-QlSR_WrGd2Hb22MbjcrAWAQ58XoOVL-k,2989
|
|
73
|
+
agentforge_graph/ingest/incremental/__init__.py,sha256=DnqgONcoXK-_aylOZ-uOkmqOrzfjiCe7I4jJqR9Wlus,775
|
|
74
|
+
agentforge_graph/ingest/incremental/detect.py,sha256=F9utxc6Q5EaLBH0QuYi0mvW100cJvCocE2SAle-WPbc,4767
|
|
75
|
+
agentforge_graph/ingest/incremental/dirty.py,sha256=he3y46PMrnbUaCbjYOu14b5NKb_RyyUj0DRhP9vGpLw,2384
|
|
76
|
+
agentforge_graph/ingest/incremental/indexer.py,sha256=cTLq70HizPYo595xZFP1N9_FE09HfBtd_b5p7uH9psk,9363
|
|
77
|
+
agentforge_graph/ingest/incremental/meta.py,sha256=R7cVhxiAVRn55z-e3AxHXxu3FFY-q4Lb1ah0zYolmQs,3198
|
|
78
|
+
agentforge_graph/ingest/incremental/ports.py,sha256=a1ZyESFxbNzG9PO0UVjkVeZxR8dqrIvi8E6vQGyFN4w,1404
|
|
79
|
+
agentforge_graph/ingest/packs/__init__.py,sha256=4UrxqLjOuYUUK4NtPeJSYRFxC9RovocMDppyazVJGwY,825
|
|
80
|
+
agentforge_graph/ingest/packs/cpp/__init__.py,sha256=Om65ip5z1hpAQzA2HgPPVTekWYRiQdf9oMMVJFWBipc,1410
|
|
81
|
+
agentforge_graph/ingest/packs/cpp/references.scm,sha256=Y9IHQcLLe-i5gObT1ULnbiypVj-ZkCzHHrB1mLlmBjI,674
|
|
82
|
+
agentforge_graph/ingest/packs/cpp/structure.scm,sha256=ABPuRYG2gwq5Z-2LIvkzSK6h9YgxLUx-HaMYJBiC3sg,1902
|
|
83
|
+
agentforge_graph/ingest/packs/csharp/__init__.py,sha256=_qE4F50xMWJKlt5hmPqyzeTtvt-CHtLO74pjMRCbTFU,1298
|
|
84
|
+
agentforge_graph/ingest/packs/csharp/references.scm,sha256=6DFcQ5GvkLbD4GAgGfvHtO70aNz4t6p692j117OuuZs,463
|
|
85
|
+
agentforge_graph/ingest/packs/csharp/structure.scm,sha256=0etMTtN620bss9j4NBvBTeJmHnSoymiJj9clxeYX2B8,1463
|
|
86
|
+
agentforge_graph/ingest/packs/go/__init__.py,sha256=buCEHvGiGYIA07m7Q6XHu9dW1g6h9vbKJZ7U5I5x9Z0,1469
|
|
87
|
+
agentforge_graph/ingest/packs/go/references.scm,sha256=6gmS5GVpx_MEXOThlcQd2svjfuOsy503ZCY0_0voHKs,486
|
|
88
|
+
agentforge_graph/ingest/packs/go/structure.scm,sha256=tqdUQk5LfMRlq3-jrRPXsy-XXRtvj9OO5Lls7C5GzBs,2280
|
|
89
|
+
agentforge_graph/ingest/packs/java/__init__.py,sha256=XYPHoEZJu508KtTqj3a_8apOYRf-akzA5cRXbbkZC5I,1372
|
|
90
|
+
agentforge_graph/ingest/packs/java/references.scm,sha256=Wo2GiyWfx38BNSd5IxvVGBHe3kgbL_dZW2yAa5r1QLs,498
|
|
91
|
+
agentforge_graph/ingest/packs/java/structure.scm,sha256=WAz2obf8ZCnCY5TOS8sfCp_UHbWM4_0eYAnNuoQZyoo,1214
|
|
92
|
+
agentforge_graph/ingest/packs/javascript/__init__.py,sha256=dZXtNK9MY3dhEsIiJJ9Mnchc3LRfUSj_7pPDMTY_yZY,1280
|
|
93
|
+
agentforge_graph/ingest/packs/javascript/references.scm,sha256=owNoNx-yIi2UA0_WlnzTsfblPR8CnnAPsXqF9b2t9U8,404
|
|
94
|
+
agentforge_graph/ingest/packs/javascript/structure.scm,sha256=knRXa5sR1cdt0gwD8tTEUxe2JiTGuWB6SjpfQx8bv8g,6947
|
|
95
|
+
agentforge_graph/ingest/packs/php/__init__.py,sha256=D9KpCIl4wq6yhOh-Ty_n9HFmyaogDI69SsYPBT1m7B4,1326
|
|
96
|
+
agentforge_graph/ingest/packs/php/references.scm,sha256=n7Xz7oaBHzzxbNDAIVM8-9EgMXAkcgmWkSxUYdGEDFU,519
|
|
97
|
+
agentforge_graph/ingest/packs/php/structure.scm,sha256=wL-HfBLOpwMW_c4cMz9t0cCSngmqm7O4dP93KU82jY8,1368
|
|
98
|
+
agentforge_graph/ingest/packs/python/__init__.py,sha256=_kYJ54YQ3sCzXfcBPV0tlD9AMGnIU6L_r7NW7b2melM,763
|
|
99
|
+
agentforge_graph/ingest/packs/python/references.scm,sha256=RLV81BlNz2pLEAbTyjXdeXrh5h1Ib7f2M_vziRQ97x8,563
|
|
100
|
+
agentforge_graph/ingest/packs/python/structure.scm,sha256=rWUfuoIDaZsREEp9NZdvM8d7tqQxzpBrjsxNz2fsomc,2410
|
|
101
|
+
agentforge_graph/ingest/packs/ruby/__init__.py,sha256=WO0-BlYGi0gmJf04FhmP6u5VhPCMiW134-ORti_Ugw8,1534
|
|
102
|
+
agentforge_graph/ingest/packs/ruby/references.scm,sha256=ZM2B1KD2niVW3avLT-FjZIqoxSI1JGN92SNj4gaJ4W8,492
|
|
103
|
+
agentforge_graph/ingest/packs/ruby/structure.scm,sha256=1btMf5BUHBFEecXMZXHfcYXjjYMQlywAUY6XFMCpB-4,1345
|
|
104
|
+
agentforge_graph/ingest/packs/rust/__init__.py,sha256=07OlTTN-3YpeXDw4B9aC5hC-sxCtMQv5rL0F7LdEEeA,1598
|
|
105
|
+
agentforge_graph/ingest/packs/rust/references.scm,sha256=jRlPnIlFUKKLSutwAg77w9O1EvJ1CtxcdEmj8hPnSY0,444
|
|
106
|
+
agentforge_graph/ingest/packs/rust/structure.scm,sha256=2_MXTjimvO8RNjgHoE74Edpd_i7rZCG3FAPXP534PjE,1442
|
|
107
|
+
agentforge_graph/ingest/packs/typescript/__init__.py,sha256=l7dqPqTiNdE2hxT5gGPjWtZDxj8Yfzp-_LNdtZqupOA,1189
|
|
108
|
+
agentforge_graph/ingest/packs/typescript/references.scm,sha256=PVHfDb8k7NKGyC3GnupQvTzg7_v58c-fG5fA-eSF4uw,404
|
|
109
|
+
agentforge_graph/ingest/packs/typescript/structure.scm,sha256=5Xp2CBKAXpFE0CfQHdWAjJFBjlqZes9uFLE0DGWvh-U,4252
|
|
110
|
+
agentforge_graph/knowledge/__init__.py,sha256=N4jTVKE1ftzEAkHwL6X1l3D4rK3rr3zt9P2G1IYxiXk,932
|
|
111
|
+
agentforge_graph/knowledge/adr.py,sha256=1MK3ES4Z8MfPalVqjfhj1_90IWen-vTye5mg9y_5_N0,4482
|
|
112
|
+
agentforge_graph/knowledge/commits.py,sha256=o-tcgU8zat6EJLWp6N9FYeu1PfGULV6mdM1vuU8xvPU,5677
|
|
113
|
+
agentforge_graph/knowledge/ingest.py,sha256=ASws2NQNOaDfDNRfTveqDJAVjSsUkksW4iRpnlZM3G8,12690
|
|
114
|
+
agentforge_graph/knowledge/mentions.py,sha256=lYy6UvgXBYaZfd1cU0djXT2NbKDX6Hj_mYsam-8y_oM,2595
|
|
115
|
+
agentforge_graph/knowledge/report.py,sha256=1eM3gsLT5tTbDEfHzeDj8x9X9JP-ZNbaNsDAXyVPpXA,1054
|
|
116
|
+
agentforge_graph/repomap/__init__.py,sha256=BPd8IjMNoxA2EyqlX16b6J4SCrEp0yr9wXwyL8XiFA4,419
|
|
117
|
+
agentforge_graph/repomap/rank.py,sha256=ffpcVNNEHifVLfTIPr3b1RGVJL5f4XtsCrREU9CPR-0,5662
|
|
118
|
+
agentforge_graph/repomap/render.py,sha256=1VG--r6BSpL90iKHijlFN6X1S_rGYtTVeAeqLcbt9i0,1765
|
|
119
|
+
agentforge_graph/repomap/repomap.py,sha256=la7rpx5qAIZ6_Zbrh4_c8OYoAfJ8MoQjuiG_FDjPsNk,2327
|
|
120
|
+
agentforge_graph/retrieve/__init__.py,sha256=SbdNU0DWaTWwx29P4Ut7qkflJ4slNFJWxlRtD8IM6h4,534
|
|
121
|
+
agentforge_graph/retrieve/pack.py,sha256=xonBYMtytPQVy0a5Cbu_i8nIxy9gg2337-rjieIv7uM,2580
|
|
122
|
+
agentforge_graph/retrieve/rerank.py,sha256=4SjmdnMxE_iJEXbb3D_O9q0MOeEyqo7K4_RxBw2GK0g,8365
|
|
123
|
+
agentforge_graph/retrieve/retriever.py,sha256=DzHAE-7qC7Y6z3uxsXxpD1LjDjK7ncF-JePvCCWDZGE,11254
|
|
124
|
+
agentforge_graph/retrieve/scoring.py,sha256=05E09APa2zuWzDR-9EhnCiaOyAaDqtkdz-EPO06Z3c0,1365
|
|
125
|
+
agentforge_graph/serve/__init__.py,sha256=J7eCL9SN1v8b3UHkYt2kcj5DxT9yQtRv3i4qUvjBHk0,641
|
|
126
|
+
agentforge_graph/serve/engine.py,sha256=jlYcz6pN0-ajNRZLCOvCeVbIOkn90es8cz7rdk1RBEo,8072
|
|
127
|
+
agentforge_graph/serve/http_runner.py,sha256=Nf3SjauJl_PBEW73hTYWkrc8RAyQJsvtaG4upPhPNDg,5288
|
|
128
|
+
agentforge_graph/serve/server.py,sha256=pJI3qx2zEER-klJqrnSieUG3dKDKyMM2bVDFBgQFBjs,4592
|
|
129
|
+
agentforge_graph/serve/tools.py,sha256=fTkhzh2hEcrE1eicQZ2SG7BHyqD399FII06W8Th2bnI,12549
|
|
130
|
+
agentforge_graph/store/__init__.py,sha256=SO6LKB2Q_nKls7SM4BuQ1LyN2v6v0rmukp9Bi-_vVgk,832
|
|
131
|
+
agentforge_graph/store/_rowmap.py,sha256=xLK_HOg8qf0Mz0oRTMVsNMJ6SC3LbjarLcB93Qeo-x0,3434
|
|
132
|
+
agentforge_graph/store/errors.py,sha256=qHEhuD0Ssj7lt9HeurvoRHY72wjixfdWhsryQmOHcbk,663
|
|
133
|
+
agentforge_graph/store/facade.py,sha256=ndYzZVeHKF61_E3P2LZNQlqfZ7moEoMCZxjeJ8KsMVs,3601
|
|
134
|
+
agentforge_graph/store/kuzu_store.py,sha256=IBhYi4eO4IZrHZCAUndLNIh0V2ovo6Fzf3Owe_XiDfo,14640
|
|
135
|
+
agentforge_graph/store/lance_store.py,sha256=HkliVwFy73scqBFLQTLLb0AuNt3QxhxFjqEJSWm0uAU,4988
|
|
136
|
+
agentforge_graph/store/neo4j_store.py,sha256=9X3HsJEk7b4rKk60lCrsGR_VizQ9IzZ1W5yA9eyJ6WM,11808
|
|
137
|
+
agentforge_graph/store/pgvector_store.py,sha256=YA3IuNEAV6N2hh0PJi6FogoLzmcDcwWBSdMqLK1vhlw,6297
|
|
138
|
+
agentforge_graph/store/registry.py,sha256=oyeVC60zjbCdIqWErwCi3YDiCHbzJWleb_SBhthcIr8,1695
|
|
139
|
+
agentforge_graph/temporal/__init__.py,sha256=Ba6XPDEqdVYm_qliRk5nR4XIyhZ0J3r707q8r7bZIkc,1178
|
|
140
|
+
agentforge_graph/temporal/backfill.py,sha256=tWx5m_jKVt42mIKoQ-qb-IiZLUw3ej-PskW1mybQVJU,12641
|
|
141
|
+
agentforge_graph/temporal/events.py,sha256=QpmpqqO9DGenIRnXxZ7qCK3H7m0z3rromtYQ3H9DC5Y,2376
|
|
142
|
+
agentforge_graph/temporal/index.py,sha256=N__zL-TE8jytjG01xQWD8YkZfa01XMoDi1L6Gm2rO6Y,7953
|
|
143
|
+
agentforge_graph/temporal/mining.py,sha256=we48GwYfc9sgvkpZfZgW1V-cpR-UOXUHAxkKvjTYI34,7122
|
|
144
|
+
agentforge_graph/temporal/recorder.py,sha256=ENw8oXv7dFo8g4AE4xMIioW9QlOyMneT8e_TqeBtT7k,4327
|
|
145
|
+
agentforge_graph/temporal/store.py,sha256=pTrlE2juI8EGLLExTwbtGxLHPA9pubXQyFYmvNZoqDU,10476
|
|
146
|
+
agentforge_graph-0.3.2.dist-info/METADATA,sha256=Mic7cRq0rIAlAbFIqCPr55D9HoPKYTpqv34tlCXiXIA,13897
|
|
147
|
+
agentforge_graph-0.3.2.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
|
|
148
|
+
agentforge_graph-0.3.2.dist-info/entry_points.txt,sha256=5TL9LIcCcqoJZ_2sa5R4JjwBSU11xfORXR0R5ceZiFI,97
|
|
149
|
+
agentforge_graph-0.3.2.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
150
|
+
agentforge_graph-0.3.2.dist-info/licenses/NOTICE,sha256=xPTCUYwlx-rCtczfK793Xt-cvCVG6kG-i1bU6RGcsfw,537
|
|
151
|
+
agentforge_graph-0.3.2.dist-info/RECORD,,
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|