Compare commits
9
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
37d7078f8b | ||
|
|
435da06c70 | ||
|
|
8e6ba9d714 | ||
|
|
a78956424d | ||
|
|
e6eaad3d7e | ||
|
|
5038129c7e | ||
|
|
8883991c2e | ||
|
|
ab1e0ec588 | ||
|
|
9e8fa2a28c |
No files matched your search
@@ -4,6 +4,16 @@ Full release notes with details on each version: [GitHub Releases](https://githu
|
||||
|
||||
## Unreleased
|
||||
|
||||
## 0.8.43 (2026-06-19)
|
||||
|
||||
- Feat: package manifests are now parsed deterministically into a dependency graph. `apm.yml`, `pyproject.toml`, `go.mod`, and `pom.xml` each yield ONE canonical package node per package (keyed by name) plus `depends_on` edges, routed to the AST path so the LLM never sees them. Previously `apm.yml` was an LLM-handled document, so the same package got a different file-anchored id from its own manifest than from each dependent's dependency reference and split into duplicate nodes; a package referenced from N manifests is now a single hub node (#1377).
|
||||
- Feat: markdown links now become graph edges. `extract_markdown` only emitted heading nodes + `contains` edges and never parsed link syntax, so a doc full of `[text](./other.md)` links (e.g. `index.md`, `table-of-contents.md`) had no edges to what it links and never became a hub. Inline links, reference-style links, and `[[wikilinks]]` are resolved relative to the source file (external URLs / in-page anchors / images skipped) and emitted as `references` edges, with targets resolved via the same node-id recipe so they merge onto the real doc node (#1376).
|
||||
- Security: bumped vulnerable dependencies to patched versions — `pypdf` 6.11.0→6.13.3 (CVE-2026-48155/48156), `yt-dlp` 2026.3.17→2026.6.9, `pyjwt` 2.12.1→2.13.0, `cryptography` 48.0.0→49.0.0, `python-multipart` 0.0.28→0.0.32 — with lower-bound floors for the direct deps (`pypdf`, `yt-dlp`) so installs get the patched versions (#1375; thanks @hypnwtykvmpr).
|
||||
- Fix: the semantic extract entry points (`extract_corpus_parallel`, `extract_files_direct`) crashed with `AttributeError` when passed `str` paths instead of `pathlib.Path`. Both now coerce `files = [Path(f) for f in files]` at entry (#1386).
|
||||
- Fix: community labeling now recovers from a malformed-JSON batch by splitting it at the midpoint and retrying each half (mirroring the extract path), instead of logging-and-skipping it — which silently lost ~100 community names per failed batch on large graphs (#1280, #1278; thanks @CJdev232).
|
||||
- Fix: `graphify hook install` no longer creates a literal backslash-named junk directory and reports false success when `core.hooksPath` (or `git rev-parse --git-path hooks`) is a Windows-style path under WSL. Drive-letter / embedded-backslash hooks paths are now rejected with a clear error (#1385).
|
||||
- Refactor: node-ID normalization is unified into a single `graphify.ids` module. `extract._make_id`, `build._normalize_id`, `mcp_ingest._make_id`, and `symbol_resolution._bash_make_id` were four hand-synced copies of the same NFKC/casefold recipe — the root of the recurring ghost-node bug class (#811/#550/#1033/#1104). All four now delegate to one implementation guarded by contract + hypothesis property tests (#1378; thanks @danielnguyenfinhub).
|
||||
|
||||
## 0.8.42 (2026-06-18)
|
||||
|
||||
- Fix: large text documents are no longer silently truncated during semantic extraction. `_read_files` capped every file at 20,000 characters, so a Markdown/text/rST document longer than that had everything past the cap dropped — the model never saw it, and the packer/adaptive-retry path couldn't recover ("packing can't shrink one big file"). Oversized splittable-text files are now sliced at heading/paragraph boundaries into units that each fit the cap and together cover the whole file; every slice reports its parent file as `source_file`, so the graph is not fragmented per-slice. A single slice that still overflows the model's output is bisected and retried. Code files and PDFs are never sliced (they keep whole-symbol / page handling). (#1369)
|
||||
|
||||
@@ -242,7 +242,8 @@ To remove graphify from all platforms at once: `graphify uninstall` (add `--purg
|
||||
| Salesforce Apex | `.cls .trigger` (regex-based; classes, interfaces, enums, methods, triggers, SOQL/DML edges) |
|
||||
| Terraform / HCL | `.tf .tfvars .hcl` (requires `uv tool install graphifyy[terraform]`) |
|
||||
| MCP configs | `.mcp.json` `mcp.json` `mcp_servers.json` `claude_desktop_config.json` — extracts server nodes, package refs, env var requirements |
|
||||
| Docs | `.md .mdx .qmd .html .txt .rst .yaml .yml` |
|
||||
| Package manifests | `apm.yml` `pyproject.toml` `go.mod` `pom.xml` — one canonical package node per package (by name) plus `depends_on` edges, so a package referenced from many manifests is a single hub |
|
||||
| Docs | `.md .mdx .qmd .html .txt .rst .yaml .yml` (markdown `[text](./other.md)` links and `[[wikilinks]]` become `references` edges between docs) |
|
||||
| Office | `.docx .xlsx` (requires `uv tool install graphifyy[office]`) |
|
||||
| Google Workspace | `.gdoc .gsheet .gslides` (opt-in; requires `gws` auth and `--google-workspace`; Sheets need `uv tool install graphifyy[google]`) |
|
||||
| PDFs | `.pdf` |
|
||||
|
||||
@@ -3524,10 +3524,18 @@ def main() -> None:
|
||||
except TypeError:
|
||||
G = _jg.node_link_graph(data)
|
||||
graphs.append(G)
|
||||
# nx.compose requires all graphs to be the same type. When input graphs
|
||||
# come from different sources (e.g. an AST-only run vs a full LLM run) one
|
||||
# may be a MultiGraph and another a Graph. Normalise everything to Graph
|
||||
# (the graphify default) by converting MultiGraphs with nx.Graph().
|
||||
def _to_simple(g: "_nx.Graph") -> "_nx.Graph":
|
||||
if isinstance(g, _nx.MultiGraph):
|
||||
return _nx.Graph(g)
|
||||
return g
|
||||
merged = _nx.Graph()
|
||||
for G, gp in zip(graphs, graph_paths):
|
||||
repo_tag = gp.parent.parent.name # graphify-out/../ → repo dir name
|
||||
prefixed = _prefix(G, repo_tag)
|
||||
prefixed = _to_simple(_prefix(G, repo_tag))
|
||||
merged = _nx.compose(merged, prefixed)
|
||||
try:
|
||||
out_data = _jg.node_link_data(merged, edges="links")
|
||||
|
||||
+1
-14
@@ -28,6 +28,7 @@ import sys
|
||||
import unicodedata
|
||||
from pathlib import Path
|
||||
import networkx as nx
|
||||
from .ids import normalize_id as _normalize_id
|
||||
from .validate import validate_extraction
|
||||
|
||||
|
||||
@@ -51,20 +52,6 @@ _FILE_TYPE_SYNONYMS = {
|
||||
}
|
||||
|
||||
|
||||
def _normalize_id(s: str) -> str:
|
||||
r"""Normalize an ID string the same way extract._make_id does.
|
||||
|
||||
Used to reconcile edge endpoints when the LLM generates IDs with slightly
|
||||
different punctuation or casing than the AST extractor. Must stay in sync
|
||||
with extract._make_id — NFKC normalization, \w with re.UNICODE, underscore
|
||||
collapse, and casefold must all match (#811).
|
||||
"""
|
||||
s = unicodedata.normalize("NFKC", s)
|
||||
cleaned = re.sub(r"[^\w]+", "_", s, flags=re.UNICODE)
|
||||
cleaned = re.sub(r"_+", "_", cleaned)
|
||||
return cleaned.strip("_").casefold()
|
||||
|
||||
|
||||
def _norm_source_file(p: str | None, root: str | None = None) -> str | None:
|
||||
"""Normalize path separators and relativize absolute paths.
|
||||
|
||||
|
||||
@@ -383,6 +383,13 @@ def _shebang_file_type(path: Path) -> FileType | None:
|
||||
|
||||
|
||||
def classify_file(path: Path) -> FileType | None:
|
||||
# Package manifests (apm.yml, pyproject.toml, go.mod, pom.xml) are parsed
|
||||
# deterministically, so route them to the AST path (CODE) rather than the LLM
|
||||
# document path — otherwise apm.yml (a .yml "document") would be LLM-extracted
|
||||
# and a package would split into duplicate file-anchored nodes (#1377).
|
||||
from graphify.manifest_ingest import is_package_manifest_path
|
||||
if is_package_manifest_path(path):
|
||||
return FileType.CODE
|
||||
# Compound extensions must be checked before simple suffix lookup
|
||||
if path.name.lower().endswith(".blade.php"):
|
||||
return FileType.CODE
|
||||
|
||||
+358
-10
@@ -6,13 +6,14 @@ import json
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import unicodedata
|
||||
from dataclasses import dataclass, field
|
||||
from pathlib import Path
|
||||
from typing import Any, Callable
|
||||
|
||||
from .cache import load_cached, save_cached
|
||||
from .ids import make_id
|
||||
from .mcp_ingest import extract_mcp_config, is_mcp_config_path
|
||||
from .manifest_ingest import extract_package_manifest, is_package_manifest_path
|
||||
|
||||
_RECURSION_LIMIT = 10_000
|
||||
|
||||
@@ -65,17 +66,14 @@ def _safe_extract(extractor: Callable, path: Path) -> dict:
|
||||
def _make_id(*parts: str) -> str:
|
||||
r"""Build a stable node ID from one or more name parts.
|
||||
|
||||
Thin wrapper over :func:`graphify.ids.make_id`, the single source of truth
|
||||
shared with ``build._normalize_id`` so the two can no longer drift (#811).
|
||||
Preserves Unicode letters/digits (CJK, Cyrillic, Arabic, accented Latin,
|
||||
etc.) so non-ASCII identifiers produce distinct IDs and don't collapse to
|
||||
a single per-file node (#811). NFKC normalization ensures composed and
|
||||
decomposed forms of the same character (e.g. é vs e+combining-acute)
|
||||
produce the same ID. Must stay in sync with build._normalize_id.
|
||||
etc.) so non-ASCII identifiers produce distinct IDs and don't collapse to a
|
||||
single per-file node; NFKC normalization collapses composed/decomposed forms
|
||||
of the same character (e.g. é vs e+combining-acute) to one ID.
|
||||
"""
|
||||
combined = "_".join(p.strip("_.") for p in parts if p)
|
||||
combined = unicodedata.normalize("NFKC", combined)
|
||||
cleaned = re.sub(r"[^\w]+", "_", combined, flags=re.UNICODE)
|
||||
cleaned = re.sub(r"_+", "_", cleaned)
|
||||
return cleaned.strip("_").casefold()
|
||||
return make_id(*parts)
|
||||
|
||||
|
||||
def _file_stem(path: Path) -> str:
|
||||
@@ -9257,6 +9255,185 @@ def _resolve_swift_member_calls(
|
||||
})
|
||||
|
||||
|
||||
# ── Cross-language API-contract edges (client HTTP call ↔ server route) ───────
|
||||
# A `fetch('/api/users/:id')` in a TS frontend and `@app.route('/api/users/<id>')`
|
||||
# in a Python backend are the same endpoint but share no import and no language —
|
||||
# an edge no import- or scope-based resolver can produce. These passes detect both
|
||||
# sides, normalize the path templates, and link them.
|
||||
|
||||
# Server route declarations: group 1 = HTTP verb (or a "match-any" keyword),
|
||||
# group 2 = the path template.
|
||||
_API_ROUTE_RES = (
|
||||
# Flask / FastAPI / Starlette: @app.get("/x"), @router.post("/x"), @app.route("/x")
|
||||
re.compile(r"""@\s*[\w.]+\.(get|post|put|delete|patch|route)\s*\(\s*["']([^"']+)["']""", re.I),
|
||||
# Express / Koa / Fastify: app.get("/x"), router.post(`/x`)
|
||||
re.compile(r"""\b(?:app|router|api|server)\.(get|post|put|delete|patch|all)\s*\(\s*["'`]([^"'`]+)["'`]""", re.I),
|
||||
# Spring: @GetMapping("/x"), @RequestMapping("/x")
|
||||
re.compile(r"""@(Get|Post|Put|Delete|Patch|Request)Mapping\s*\(\s*(?:value\s*=\s*)?["']([^"']+)["']""", re.I),
|
||||
)
|
||||
|
||||
# Client HTTP calls. `fetch` has no verb group (verb lives in an options object,
|
||||
# default GET); axios/requests-style have an optional/required verb group.
|
||||
_API_FETCH_RE = re.compile(r"""\bfetch\s*\(\s*["'`]([^"'`]+)["'`]""", re.I)
|
||||
_API_AXIOS_RE = re.compile(r"""\baxios(?:\.(get|post|put|delete|patch))?\s*\(\s*["'`]([^"'`]+)["'`]""", re.I)
|
||||
_API_REQUESTS_RE = re.compile(r"""\b(?:requests|httpx|session|http_client)\.(get|post|put|delete|patch)\s*\(\s*["']([^"']+)["']""", re.I)
|
||||
|
||||
_API_ANY_VERB = "ANY"
|
||||
_API_SCAN_SUFFIXES = frozenset({".py", ".js", ".jsx", ".ts", ".tsx", ".mjs", ".cjs", ".java", ".go", ".rb"})
|
||||
|
||||
|
||||
def _api_verb(raw: str) -> str:
|
||||
v = raw.upper()
|
||||
return _API_ANY_VERB if v in ("ROUTE", "ALL", "REQUEST") else v
|
||||
|
||||
|
||||
def _api_verbs_compatible(a: str, b: str) -> bool:
|
||||
return a == _API_ANY_VERB or b == _API_ANY_VERB or a == b
|
||||
|
||||
|
||||
def _api_normalize_path(raw: str) -> str:
|
||||
"""Canonicalize an HTTP path template so a client call and its route match.
|
||||
|
||||
Strips scheme/host/query/fragment and trailing slash, then replaces every
|
||||
parameter segment — Flask ``<id>``/``<int:id>``, FastAPI/Spring ``{id}``,
|
||||
Express/React ``:id``, JS template ``${...}``, and bare numeric ids — with
|
||||
``{}``.
|
||||
"""
|
||||
s = raw.strip()
|
||||
m = re.match(r"^[a-zA-Z][\w+.-]*://[^/]+(/.*)$", s)
|
||||
if m:
|
||||
s = m.group(1)
|
||||
if not s.startswith("/"):
|
||||
idx = s.find("/")
|
||||
s = s[idx:] if idx != -1 else "/" + s
|
||||
s = s.split("?", 1)[0].split("#", 1)[0]
|
||||
out = []
|
||||
for seg in s.split("/"):
|
||||
if seg == "":
|
||||
out.append("")
|
||||
elif (seg[0] in ":<" or (seg.startswith("{") and seg.endswith("}"))
|
||||
or "${" in seg or seg.isdigit()):
|
||||
out.append("{}")
|
||||
else:
|
||||
out.append(seg.lower())
|
||||
norm = "/".join(out)
|
||||
return norm[:-1] if len(norm) > 1 and norm.endswith("/") else norm
|
||||
|
||||
|
||||
def _api_path_is_specific(norm: str) -> bool:
|
||||
"""Require at least one literal (non-parameter) segment so we don't match on
|
||||
`/` or `/{}` and over-connect."""
|
||||
return any(seg and seg != "{}" for seg in norm.split("/"))
|
||||
|
||||
|
||||
def _scan_api_routes(line: str):
|
||||
for rx in _API_ROUTE_RES:
|
||||
for m in rx.finditer(line):
|
||||
yield _api_verb(m.group(1)), m.group(2)
|
||||
|
||||
|
||||
def _scan_api_clients(line: str):
|
||||
for m in _API_FETCH_RE.finditer(line):
|
||||
yield _API_ANY_VERB, m.group(1)
|
||||
for m in _API_AXIOS_RE.finditer(line):
|
||||
yield (_api_verb(m.group(1)) if m.group(1) else _API_ANY_VERB), m.group(2)
|
||||
for m in _API_REQUESTS_RE.finditer(line):
|
||||
yield _api_verb(m.group(1)), m.group(2)
|
||||
|
||||
|
||||
def _resolve_api_contract_edges(paths, all_nodes, all_edges) -> int:
|
||||
"""Link client HTTP calls to server route handlers across files and languages.
|
||||
|
||||
Conservative: only unique, cross-file, specific-path matches are linked, and
|
||||
the edge is INFERRED with ``resolution="api_contract"`` so it is clearly a
|
||||
runtime-contract inference, not a static reference. Returns the edge count.
|
||||
"""
|
||||
funcs_by_file: dict[str, list[tuple[int, str]]] = {}
|
||||
file_node_by_file: dict[str, str] = {}
|
||||
for n in all_nodes:
|
||||
sf = n.get("source_file")
|
||||
if not sf:
|
||||
continue
|
||||
loc = str(n.get("source_location") or "").lstrip("L")
|
||||
try:
|
||||
line = int(loc) if loc else 0
|
||||
except ValueError:
|
||||
line = 0
|
||||
label = n.get("label", "")
|
||||
if label.endswith("()"):
|
||||
funcs_by_file.setdefault(sf, []).append((line, n["id"]))
|
||||
elif label == Path(sf).name:
|
||||
file_node_by_file[sf] = n["id"]
|
||||
for sf in funcs_by_file:
|
||||
funcs_by_file[sf].sort()
|
||||
|
||||
def _enclosing(sf: str, line: int) -> str | None:
|
||||
best = None
|
||||
for fl, nid in funcs_by_file.get(sf, []):
|
||||
if fl <= line:
|
||||
best = nid
|
||||
else:
|
||||
break
|
||||
return best or file_node_by_file.get(sf)
|
||||
|
||||
def _handler_below(sf: str, line: int) -> str | None:
|
||||
below = [(fl, nid) for fl, nid in funcs_by_file.get(sf, []) if fl >= line]
|
||||
if below:
|
||||
return below[0][1]
|
||||
return _enclosing(sf, line)
|
||||
|
||||
routes: dict[str, list[tuple[str, str, str]]] = {} # norm -> [(verb, file, anchor)]
|
||||
clients: list[tuple[str, str, str, str]] = [] # (norm, verb, file, anchor)
|
||||
for p in paths:
|
||||
if p.suffix.lower() not in _API_SCAN_SUFFIXES:
|
||||
continue
|
||||
sf = str(p)
|
||||
try:
|
||||
text = p.read_text(encoding="utf-8", errors="replace")
|
||||
except OSError:
|
||||
continue
|
||||
for i, lt in enumerate(text.splitlines(), start=1):
|
||||
for verb, raw in _scan_api_routes(lt):
|
||||
norm = _api_normalize_path(raw)
|
||||
if _api_path_is_specific(norm):
|
||||
anchor = _handler_below(sf, i)
|
||||
if anchor:
|
||||
routes.setdefault(norm, []).append((verb, sf, anchor))
|
||||
for verb, raw in _scan_api_clients(lt):
|
||||
norm = _api_normalize_path(raw)
|
||||
if _api_path_is_specific(norm):
|
||||
anchor = _enclosing(sf, i)
|
||||
if anchor:
|
||||
clients.append((norm, verb, sf, anchor))
|
||||
|
||||
existing = {(e["source"], e["target"]) for e in all_edges}
|
||||
n_added = 0
|
||||
for norm, cverb, cfile, csrc in clients:
|
||||
targets = {
|
||||
rnid for (rverb, rfile, rnid) in routes.get(norm, [])
|
||||
if rfile != cfile and _api_verbs_compatible(cverb, rverb)
|
||||
}
|
||||
if len(targets) != 1: # unambiguous, cross-file match only
|
||||
continue
|
||||
tgt = next(iter(targets))
|
||||
if tgt == csrc or (csrc, tgt) in existing:
|
||||
continue
|
||||
existing.add((csrc, tgt))
|
||||
n_added += 1
|
||||
all_edges.append({
|
||||
"source": csrc,
|
||||
"target": tgt,
|
||||
"relation": "calls",
|
||||
"context": "api_call",
|
||||
"confidence": "INFERRED",
|
||||
"confidence_score": 0.7,
|
||||
"resolution": "api_contract",
|
||||
"source_file": cfile,
|
||||
"weight": 1.0,
|
||||
})
|
||||
return n_added
|
||||
|
||||
|
||||
def extract_objc(path: Path) -> dict:
|
||||
"""Extract interfaces, implementations, protocols, methods, and imports from .m/.mm/.h files."""
|
||||
try:
|
||||
@@ -9671,6 +9848,56 @@ def extract_elixir(path: Path) -> dict:
|
||||
return {"nodes": nodes, "edges": clean_edges, "raw_calls": raw_calls, "input_tokens": 0, "output_tokens": 0}
|
||||
|
||||
|
||||
# Inline markdown link: [text](target "optional title"). The negative lookbehind
|
||||
# excludes images (). The target stops at whitespace/closing paren so
|
||||
# an optional "title" after the URL is dropped; an optional <...> wrapper is too.
|
||||
_MD_INLINE_LINK_RE = re.compile(r'(?<!\!)\[[^\]]*\]\(\s*<?([^)\s>]+)>?(?:\s+[^)]*)?\)')
|
||||
# Reference-style link definition line: [label]: target "optional title"
|
||||
_MD_REF_DEF_RE = re.compile(r'^\s{0,3}\[[^\]]+\]:\s*<?([^\s>]+)>?')
|
||||
# Obsidian-style wikilink: [[target]] / [[target|alias]] / [[target#anchor]].
|
||||
_MD_WIKILINK_RE = re.compile(r'(?<!\!)\[\[([^\]|#]+)(?:[#|][^\]]*)?\]\]')
|
||||
|
||||
# Extensions graphify creates document file nodes for. A link to one of these
|
||||
# resolves to that file's node; links to code/assets are skipped (left to the
|
||||
# language extractors).
|
||||
_MD_LINKABLE_EXTS = {".md", ".mdx", ".qmd", ".markdown", ".rst", ".txt"}
|
||||
|
||||
|
||||
def _resolve_markdown_link(raw: str, source_dir: Path) -> "Path | None":
|
||||
"""Resolve a markdown link target to the absolute path of a sibling document.
|
||||
|
||||
Returns the resolved (normalized, not necessarily existing) path when the
|
||||
target is a *local* relative/absolute file-path link to a document, or None
|
||||
when it should be skipped: external URLs (http/https/mailto/protocol-
|
||||
relative/data), pure in-page anchors (``#section``), and links to non-doc
|
||||
file types (code/assets are handled by their own extractors).
|
||||
|
||||
The anchor fragment (``#section``) and query (``?x=1``) are stripped before
|
||||
resolution so ``./repo.md#setup`` resolves to the same node as ``./repo.md``.
|
||||
Extension-less targets (typical of wikilinks) are treated as sibling ``.md``.
|
||||
"""
|
||||
target = raw.strip()
|
||||
if not target:
|
||||
return None
|
||||
# Drop anchor / query so #section links still resolve to the target doc.
|
||||
target = target.split("#", 1)[0].split("?", 1)[0].strip()
|
||||
if not target:
|
||||
return None
|
||||
low = target.lower()
|
||||
if "://" in target or low.startswith(("mailto:", "tel:", "//", "data:")):
|
||||
return None
|
||||
suffix = Path(target).suffix.lower()
|
||||
if suffix == "":
|
||||
target = target + ".md"
|
||||
suffix = ".md"
|
||||
if suffix not in _MD_LINKABLE_EXTS:
|
||||
return None
|
||||
candidate = Path(target)
|
||||
if not candidate.is_absolute():
|
||||
candidate = source_dir / candidate
|
||||
return Path(os.path.normpath(str(candidate)))
|
||||
|
||||
|
||||
def extract_markdown(path: Path) -> dict:
|
||||
"""Extract structural nodes and edges from a Markdown file.
|
||||
|
||||
@@ -9682,6 +9909,13 @@ def extract_markdown(path: Path) -> dict:
|
||||
- file --contains--> heading
|
||||
- parent heading --contains--> child heading (nesting by level)
|
||||
- heading --references--> other node (when backtick `Name` matches a known pattern)
|
||||
- file --references--> linked document, for inline ``[text](./other.md)``,
|
||||
reference-style ``[label]: ./other.md`` and ``[[wikilink]]`` links, so a
|
||||
hub doc (``index.md`` / ``table-of-contents.md``) becomes a real hub node
|
||||
instead of an under-connected orphan (#1376). The target node ID is built
|
||||
from the resolved target path with the same recipe as the target file's
|
||||
own node, so the edge merges into that node (no ghost node). External
|
||||
URLs, in-page anchors, images and non-document targets are skipped.
|
||||
|
||||
Fenced code blocks (``` ... ```) are skipped during parsing so their
|
||||
contents don't get treated as headings, but no node is emitted for
|
||||
@@ -9716,6 +9950,26 @@ def extract_markdown(path: Path) -> dict:
|
||||
file_nid = _make_id(str(path))
|
||||
add_node(file_nid, path.name, 1)
|
||||
|
||||
source_dir = path.parent
|
||||
# Dedup link edges by resolved target node so a hub doc that links to the
|
||||
# same sibling many times yields one edge, not N (keeps weights meaningful).
|
||||
linked_targets: set[str] = set()
|
||||
|
||||
def add_link(raw: str, line: int) -> None:
|
||||
resolved = _resolve_markdown_link(raw, source_dir)
|
||||
if resolved is None:
|
||||
return
|
||||
# Build the target ID with the SAME recipe as the target file's own
|
||||
# node (_make_id(str(path)) at extract time, canonicalized to
|
||||
# _file_node_id(rel) by the extract() post-pass). Using the absolute
|
||||
# resolved path means both endpoints get remapped identically, so the
|
||||
# edge merges into the existing doc node instead of spawning a ghost.
|
||||
tgt_nid = _make_id(str(resolved))
|
||||
if tgt_nid == file_nid or tgt_nid in linked_targets:
|
||||
return
|
||||
linked_targets.add(tgt_nid)
|
||||
add_edge(file_nid, tgt_nid, "references", line)
|
||||
|
||||
# Track heading stack for nesting: [(level, nid), ...]
|
||||
heading_stack: list[tuple[int, str]] = []
|
||||
in_code_block = False
|
||||
@@ -9734,6 +9988,17 @@ def extract_markdown(path: Path) -> dict:
|
||||
if in_code_block:
|
||||
continue
|
||||
|
||||
# Markdown links -> document references (#1376). Scanned on every
|
||||
# non-fenced line (including heading lines, which the heading branch
|
||||
# below `continue`s past) so links anywhere in the doc are captured.
|
||||
for m in _MD_INLINE_LINK_RE.finditer(line_text):
|
||||
add_link(m.group(1), line_num)
|
||||
for m in _MD_WIKILINK_RE.finditer(line_text):
|
||||
add_link(m.group(1), line_num)
|
||||
ref_def = _MD_REF_DEF_RE.match(line_text)
|
||||
if ref_def:
|
||||
add_link(ref_def.group(1), line_num)
|
||||
|
||||
# Detect headings: # Heading, ## Heading, etc.
|
||||
heading_match = re.match(r'^(#{1,6})\s+(.+)', line_text)
|
||||
if heading_match:
|
||||
@@ -12294,6 +12559,11 @@ def _get_extractor(path: Path) -> Any | None:
|
||||
# (servers, commands, packages, env vars) instead of opaque JSON keys.
|
||||
if is_mcp_config_path(path):
|
||||
return extract_mcp_config
|
||||
# Package manifests (apm.yml, pyproject.toml, go.mod, pom.xml) → a canonical
|
||||
# package node + depends_on edges, by filename before generic suffix dispatch
|
||||
# (#1377). apm.yml would otherwise be a .yml document handled by the LLM.
|
||||
if is_package_manifest_path(path):
|
||||
return extract_package_manifest
|
||||
return _DISPATCH.get(path.suffix)
|
||||
|
||||
|
||||
@@ -12599,6 +12869,12 @@ def extract(
|
||||
sf = n.get("source_file")
|
||||
if not sf:
|
||||
continue
|
||||
# Package nodes carry a canonical name-keyed id (pkg_<name>) that must
|
||||
# stay identical across every manifest that references the package, so
|
||||
# they are exempt from the file-stem prefix remap (#1377), like the
|
||||
# type=module anchors (#1327).
|
||||
if n.get("type") == "package":
|
||||
continue
|
||||
try:
|
||||
entry = prefix_remap.get(Path(sf).resolve())
|
||||
except Exception:
|
||||
@@ -12708,6 +12984,53 @@ def extract(
|
||||
sf_rel = sf_path
|
||||
nid_to_file_nid[n["id"]] = _file_node_id(sf_rel)
|
||||
|
||||
# PROTOTYPE (improvement #1): repo-scoped import-first resolution. A "repo" is
|
||||
# the nearest ancestor dir containing a package manifest; files with no
|
||||
# manifest ancestor all share the scan root, so single-repo behaviour is
|
||||
# unchanged (same_repo == every candidate). Opt-in via the env flag so the
|
||||
# default path is untouched while we evaluate it.
|
||||
_repo_scoped = os.environ.get("GRAPHIFY_REPO_SCOPED_RESOLUTION", "").strip() == "1"
|
||||
nid_to_repo: dict[str, str] = {}
|
||||
if _repo_scoped:
|
||||
_MANIFESTS = ("setup.py", "pyproject.toml", "setup.cfg", "requirements.txt",
|
||||
"package.json", "go.mod", "Cargo.toml", "pom.xml", "build.gradle")
|
||||
_repo_roots: set[Path] = set()
|
||||
_checked: set[Path] = set()
|
||||
for p in paths:
|
||||
d = p.parent.resolve()
|
||||
while True:
|
||||
if d not in _checked:
|
||||
_checked.add(d)
|
||||
try:
|
||||
if any((d / m).exists() for m in _MANIFESTS):
|
||||
_repo_roots.add(d)
|
||||
except OSError:
|
||||
pass
|
||||
if d == root or d.parent == d:
|
||||
break
|
||||
d = d.parent
|
||||
|
||||
def _repo_of(sf: str) -> str:
|
||||
if not sf:
|
||||
return str(root)
|
||||
fp = Path(sf)
|
||||
fp = (root / fp) if not fp.is_absolute() else fp
|
||||
try:
|
||||
fp = fp.resolve()
|
||||
except OSError:
|
||||
pass
|
||||
best: Path | None = None
|
||||
for r in _repo_roots:
|
||||
if r == fp or r in fp.parents:
|
||||
if best is None or len(str(r)) > len(str(best)):
|
||||
best = r
|
||||
return str(best) if best is not None else str(root)
|
||||
|
||||
for n in all_nodes:
|
||||
sf = n.get("source_file")
|
||||
if sf:
|
||||
nid_to_repo[n["id"]] = _repo_of(sf)
|
||||
|
||||
existing_pairs = {(e["source"], e["target"]) for e in all_edges}
|
||||
for rc in all_raw_calls:
|
||||
callee = rc.get("callee", "")
|
||||
@@ -12738,6 +13061,21 @@ def extract(
|
||||
or (candidate_file_nid is not None and candidate_file_nid in imported_modules)
|
||||
)
|
||||
|
||||
# PROTOTYPE (improvement #1): resolve within the caller's repo first.
|
||||
# Prefer same-repo definitions (a colliding name resolves to the local
|
||||
# one, not another repo's); a cross-repo definition links only with
|
||||
# explicit import/dependency evidence (kills phantom cross-repo edges to
|
||||
# an accidentally-unique name). No-op for single-repo corpora.
|
||||
if _repo_scoped and nid_to_repo:
|
||||
caller_repo = nid_to_repo.get(caller)
|
||||
same_repo = [c for c in candidates if nid_to_repo.get(c) == caller_repo]
|
||||
if same_repo:
|
||||
candidates = same_repo
|
||||
else:
|
||||
candidates = [c for c in candidates if _has_import_evidence(c)]
|
||||
if not candidates:
|
||||
continue
|
||||
|
||||
if len(candidates) == 1:
|
||||
tgt = candidates[0]
|
||||
has_import_evidence = _has_import_evidence(tgt)
|
||||
@@ -12796,6 +13134,16 @@ def extract(
|
||||
import logging
|
||||
logging.getLogger(__name__).warning("Swift member-call resolution failed, skipping: %s", exc)
|
||||
|
||||
# Cross-language API-contract edges: link client HTTP calls to server route
|
||||
# handlers across files/languages (frontend ↔ backend). Opt-in while we
|
||||
# evaluate; conservative (unique, cross-file, specific-path matches only).
|
||||
if os.environ.get("GRAPHIFY_API_CONTRACT_EDGES", "").strip() == "1":
|
||||
try:
|
||||
_resolve_api_contract_edges(paths, all_nodes, all_edges)
|
||||
except Exception as exc:
|
||||
import logging
|
||||
logging.getLogger(__name__).warning("API-contract edge resolution failed, skipping: %s", exc)
|
||||
|
||||
# Relativize source_file fields so paths are portable across machines (#555)
|
||||
for item in all_nodes + all_edges:
|
||||
sf = item.get("source_file")
|
||||
|
||||
@@ -284,6 +284,25 @@ def _git_root(path: Path) -> Path | None:
|
||||
return None
|
||||
|
||||
|
||||
_WINDOWS_DRIVE_RE = re.compile(r"^[A-Za-z]:[\\/]")
|
||||
|
||||
|
||||
def _reject_windows_path(value: str, source: str) -> None:
|
||||
"""Raise if a hooks path looks like a Windows absolute path (#1385).
|
||||
|
||||
On POSIX/WSL ``Path("C:\\Users\\...").is_absolute()`` is False, so an absolute
|
||||
Windows hooks path gets joined under the repo root and mkdir'd as a literal
|
||||
junk directory (backslashes and all), while install reports success and the
|
||||
real ``.git/hooks`` gets nothing. Fail loudly instead so the user can fix it.
|
||||
"""
|
||||
if _WINDOWS_DRIVE_RE.match(value) or "\\" in value:
|
||||
raise RuntimeError(
|
||||
f"git hooks path from {source} looks like a Windows path: {value!r}. "
|
||||
f"On WSL/POSIX this can't resolve to a real directory. Unset it with "
|
||||
f"`git config --local --unset core.hooksPath`, or set a POSIX path."
|
||||
)
|
||||
|
||||
|
||||
def _hooks_dir(root: Path) -> Path:
|
||||
"""Return the git hooks directory, respecting core.hooksPath if set (e.g. Husky)."""
|
||||
try:
|
||||
@@ -292,6 +311,7 @@ def _hooks_dir(root: Path) -> Path:
|
||||
# configparser lowercases option names; git's hooksPath becomes hookspath
|
||||
custom = cfg.get("core", "hookspath", fallback="").strip()
|
||||
if custom:
|
||||
_reject_windows_path(custom, "core.hooksPath")
|
||||
p = Path(custom).expanduser()
|
||||
if not p.is_absolute():
|
||||
p = root / p
|
||||
@@ -331,6 +351,7 @@ def _hooks_dir(root: Path) -> Path:
|
||||
# A valid hooks path can never contain newlines or NUL. Their presence
|
||||
# means git echoed an unrecognised flag back (old git behaviour).
|
||||
if res.returncode == 0 and raw and not any(c in raw for c in ("\n", "\r", "\x00")):
|
||||
_reject_windows_path(raw, "git rev-parse --git-path hooks")
|
||||
d = (root / raw).resolve()
|
||||
d.mkdir(parents=True, exist_ok=True)
|
||||
return d
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
"""Single source of truth for node-ID normalization.
|
||||
|
||||
Three independent producers must agree on node IDs or the graph splits a single
|
||||
entity into disconnected ghost nodes:
|
||||
|
||||
1. The AST extractor (``extract._make_id``) — deterministic, per-language.
|
||||
2. The semantic subagents (LLM) — follow the node-ID spec in the skill prompt.
|
||||
3. The graph builder (``build._normalize_id``) — reconciles edge endpoints when
|
||||
the LLM emits IDs with slightly different punctuation or casing than the AST.
|
||||
|
||||
Historically the normalization recipe was copy-pasted into ``extract._make_id``
|
||||
and ``build._normalize_id`` and kept in sync only by mirrored docstrings, which
|
||||
is exactly how the recurring ID-drift bug class crept in (#811 Unicode collapse,
|
||||
#550 same-filename collisions, #1033 AST-vs-LLM file-node mismatch, #1104). This
|
||||
module exists so the recipe lives in one place and the two callers can no longer
|
||||
diverge.
|
||||
|
||||
The recipe: NFKC-normalize (so composed/decomposed Unicode forms collapse),
|
||||
replace runs of non-word characters with a single underscore (``re.UNICODE`` so
|
||||
CJK/Cyrillic/Arabic/accented-Latin letters survive instead of collapsing to a
|
||||
per-file node), collapse repeated underscores, strip leading/trailing
|
||||
underscores, and casefold.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import re
|
||||
import unicodedata
|
||||
|
||||
__all__ = ["normalize_id", "make_id"]
|
||||
|
||||
|
||||
def normalize_id(s: str) -> str:
|
||||
r"""Normalize a single ID string to its canonical form.
|
||||
|
||||
Idempotent: ``normalize_id(normalize_id(s)) == normalize_id(s)``.
|
||||
"""
|
||||
s = unicodedata.normalize("NFKC", s)
|
||||
s = re.sub(r"[^\w]+", "_", s, flags=re.UNICODE)
|
||||
s = re.sub(r"_+", "_", s)
|
||||
return s.strip("_").casefold()
|
||||
|
||||
|
||||
def make_id(*parts: str) -> str:
|
||||
"""Build a canonical node ID from one or more name parts.
|
||||
|
||||
Parts are joined with ``_`` (after stripping stray ``_``/``.`` edges from each
|
||||
part) and then run through :func:`normalize_id`, so the result is identical to
|
||||
what the builder produces from the joined string.
|
||||
"""
|
||||
return normalize_id("_".join(p.strip("_.") for p in parts if p))
|
||||
+75
-17
@@ -1303,7 +1303,12 @@ def extract_files_direct(
|
||||
Returns dict with nodes, edges, hyperedges, input_tokens, output_tokens.
|
||||
Raises ValueError for unknown backends or when no API key is configured.
|
||||
Raises ImportError if SDK missing.
|
||||
|
||||
Accepts ``str`` paths as well as ``Path``; string entries are coerced up
|
||||
front so downstream helpers (``_partition_semantic_files``, ``_read_files``,
|
||||
``_build_image_refs``) can rely on ``Path`` semantics (#1386).
|
||||
"""
|
||||
files = [Path(f) for f in files]
|
||||
if backend is None:
|
||||
backend = detect_backend()
|
||||
if backend is None:
|
||||
@@ -1728,7 +1733,11 @@ def extract_corpus_parallel(
|
||||
Returns merged dict with nodes, edges, hyperedges, input_tokens,
|
||||
output_tokens. Failed chunks are logged to stderr and skipped — one bad
|
||||
chunk does not abort the run.
|
||||
|
||||
Accepts ``str`` paths as well as ``Path``; string entries are coerced up
|
||||
front so packing/slicing helpers can rely on ``Path`` semantics (#1386).
|
||||
"""
|
||||
files = [Path(f) for f in files]
|
||||
# Split oversized splittable documents into slices that cover the whole file
|
||||
# before packing, so content past _FILE_CHAR_CAP is extracted instead of
|
||||
# silently dropped (#1369). Files at/under the cap pass through unchanged.
|
||||
@@ -2144,6 +2153,69 @@ def _parse_label_response(text: str, labeled_cids: list[int]) -> dict[int, str]:
|
||||
return out
|
||||
|
||||
|
||||
def _label_batch_with_retry(
|
||||
batch_cids: list[int],
|
||||
batch_lines: list[str],
|
||||
*,
|
||||
backend: str,
|
||||
model: str | None,
|
||||
depth: int = 0,
|
||||
max_depth: int = 3,
|
||||
) -> dict[int, str]:
|
||||
"""Label a batch of communities, splitting in half and retrying on parse failure.
|
||||
|
||||
Mirrors `_extract_with_adaptive_retry`'s recovery shape for the labeling path
|
||||
(#1278). When the LLM returns malformed JSON or a non-object payload, the
|
||||
batch is split at the midpoint and each half is retried recursively. Recursion
|
||||
is capped at ``max_depth`` to bound cost.
|
||||
|
||||
Returns ``{cid: name}`` for everything that could be labeled. When a batch
|
||||
can't be split further (a single community, or ``depth >= max_depth``) and
|
||||
still won't parse, the parse error is **re-raised**: ``label_communities``
|
||||
catches it per batch and skips that batch (its communities stay unlabeled),
|
||||
re-raising only if every batch fails. Any non-parse exception (network,
|
||||
missing config, programming bug) propagates unchanged — those are never
|
||||
split-retried.
|
||||
"""
|
||||
prompt = (
|
||||
"You are naming clusters in a knowledge graph. For each community below, "
|
||||
"return a concise 2-5 word plain-language name describing what it is about "
|
||||
"(e.g. \"Order Management\", \"Payment Flow\", \"Auth Middleware\"). "
|
||||
"Respond ONLY with a JSON object mapping the community id (as a string) to "
|
||||
"its name - no prose, no markdown fences.\n\n" + "\n".join(batch_lines)
|
||||
)
|
||||
max_tokens = _resolve_max_tokens(min(64 + 24 * len(batch_cids), 8192))
|
||||
call_kwargs: dict = {"backend": backend, "max_tokens": max_tokens}
|
||||
if model is not None:
|
||||
call_kwargs["model"] = model
|
||||
|
||||
try:
|
||||
text = _call_llm(prompt, **call_kwargs)
|
||||
return _parse_label_response(text, batch_cids)
|
||||
except (json.JSONDecodeError, ValueError) as exc:
|
||||
# Parse failure. If we can still split, retry each half on a smaller
|
||||
# prompt (smaller output → less likely to truncate/mangle). At the base
|
||||
# case (single community or max depth) re-raise so the caller skips it.
|
||||
if len(batch_cids) <= 1 or depth >= max_depth:
|
||||
print(
|
||||
f"[graphify label] batch of {len(batch_cids)} still unparseable "
|
||||
f"at depth {depth} (cids={batch_cids[:5]}"
|
||||
f"{'...' if len(batch_cids) > 5 else ''}): {exc}",
|
||||
file=sys.stderr,
|
||||
)
|
||||
raise
|
||||
mid = len(batch_cids) // 2
|
||||
left = _label_batch_with_retry(
|
||||
batch_cids[:mid], batch_lines[:mid],
|
||||
backend=backend, model=model, depth=depth + 1, max_depth=max_depth,
|
||||
)
|
||||
right = _label_batch_with_retry(
|
||||
batch_cids[mid:], batch_lines[mid:],
|
||||
backend=backend, model=model, depth=depth + 1, max_depth=max_depth,
|
||||
)
|
||||
return left | right
|
||||
|
||||
|
||||
def label_communities(
|
||||
G,
|
||||
communities,
|
||||
@@ -2188,24 +2260,10 @@ def label_communities(
|
||||
end = min(start + batch_size, len(labeled_cids))
|
||||
batch_lines = lines[start:end]
|
||||
batch_cids = labeled_cids[start:end]
|
||||
|
||||
prompt = (
|
||||
"You are naming clusters in a knowledge graph. For each community below, "
|
||||
"return a concise 2-5 word plain-language name describing what it is about "
|
||||
"(e.g. \"Order Management\", \"Payment Flow\", \"Auth Middleware\"). "
|
||||
"Respond ONLY with a JSON object mapping the community id (as a string) to "
|
||||
"its name - no prose, no markdown fences.\n\n" + "\n".join(batch_lines)
|
||||
)
|
||||
# 24 tok/community covers 2-5 word JSON entries including id, quotes,
|
||||
# and punctuation. Cap at 8192 for 16k-context models. Wrapped in
|
||||
# _resolve_max_tokens so GRAPHIFY_MAX_OUTPUT_TOKENS applies here too (#1200).
|
||||
max_tokens = _resolve_max_tokens(min(64 + 24 * len(batch_cids), 8192))
|
||||
try:
|
||||
call_kwargs = {"backend": backend, "max_tokens": max_tokens}
|
||||
if model is not None:
|
||||
call_kwargs["model"] = model
|
||||
text = _call_llm(prompt, **call_kwargs)
|
||||
parsed = _parse_label_response(text, batch_cids)
|
||||
parsed = _label_batch_with_retry(
|
||||
batch_cids, batch_lines, backend=backend, model=model,
|
||||
)
|
||||
labels.update(parsed)
|
||||
written += len(parsed)
|
||||
except Exception as exc:
|
||||
|
||||
@@ -0,0 +1,247 @@
|
||||
"""Deterministic package-manifest ingestion (#1377).
|
||||
|
||||
Package manifests (``apm.yml``, ``pyproject.toml``, ``go.mod``, ``pom.xml``)
|
||||
declare a package and its dependencies. Left to the LLM document path, the same
|
||||
package gets a different file-anchored node id from its own manifest than from
|
||||
each dependent's dependency reference, so it splits into duplicate nodes. This
|
||||
module parses manifests deterministically and emits ONE canonical package node
|
||||
per package -- keyed by NAME via :func:`graphify.ids.make_id` -- plus
|
||||
``depends_on`` edges, so a package referenced from N manifests collapses to a
|
||||
single hub node (the dependency stub and the package's own definition node share
|
||||
the canonical id and merge at build time).
|
||||
|
||||
Mirrors ``mcp_ingest``: recognized by filename, routed to the deterministic AST
|
||||
path (never the LLM), so a manifest is extracted exactly once.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import re
|
||||
import xml.etree.ElementTree as ET
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from graphify.ids import make_id
|
||||
|
||||
__all__ = ["is_package_manifest_path", "extract_package_manifest", "PACKAGE_MANIFEST_NAMES"]
|
||||
|
||||
# manifest filename (lowercased) -> ecosystem tag
|
||||
PACKAGE_MANIFEST_NAMES: dict[str, str] = {
|
||||
"apm.yml": "apm",
|
||||
"apm.yaml": "apm",
|
||||
"pyproject.toml": "python",
|
||||
"go.mod": "go",
|
||||
"pom.xml": "maven",
|
||||
}
|
||||
|
||||
_MAX_MANIFEST_BYTES = 2_000_000 # 2 MB cap — manifests are small; this rejects junk
|
||||
|
||||
|
||||
def is_package_manifest_path(path: Path) -> bool:
|
||||
"""True if ``path`` is a recognized package manifest (by filename)."""
|
||||
return path.name.lower() in PACKAGE_MANIFEST_NAMES
|
||||
|
||||
|
||||
def _pkg_id(name: str) -> str:
|
||||
"""Canonical package node id, keyed by package NAME so every reference to the
|
||||
same package -- its own manifest and any dependent's dependency line -- maps
|
||||
to one node."""
|
||||
return make_id("pkg", name)
|
||||
|
||||
|
||||
def extract_package_manifest(path: Path) -> dict[str, Any]:
|
||||
"""Parse a package manifest into a canonical package node + ``depends_on`` edges."""
|
||||
try:
|
||||
if path.stat().st_size > _MAX_MANIFEST_BYTES:
|
||||
return {"nodes": [], "edges": [], "error": "manifest too large to index"}
|
||||
text = path.read_text(encoding="utf-8", errors="replace")
|
||||
except OSError as exc:
|
||||
return {"nodes": [], "edges": [], "error": f"manifest read error: {exc}"}
|
||||
|
||||
eco = PACKAGE_MANIFEST_NAMES[path.name.lower()]
|
||||
try:
|
||||
info = _PARSERS[eco](text)
|
||||
except Exception as exc: # noqa: BLE001 — a malformed manifest must not abort extraction
|
||||
return {"nodes": [], "edges": [], "error": f"manifest parse error: {exc}"}
|
||||
if not info or not info.get("name"):
|
||||
return {"nodes": [], "edges": []}
|
||||
|
||||
name = info["name"]
|
||||
str_path = str(path)
|
||||
pkg_nid = _pkg_id(name)
|
||||
node: dict[str, Any] = {
|
||||
"id": pkg_nid,
|
||||
"label": name,
|
||||
"file_type": "code", # valid schema type; `type` distinguishes packages
|
||||
"type": "package",
|
||||
"ecosystem": eco,
|
||||
"source_file": str_path,
|
||||
"source_location": "L1",
|
||||
}
|
||||
if info.get("version"):
|
||||
node["version"] = info["version"]
|
||||
nodes: list[dict] = [node]
|
||||
edges: list[dict] = []
|
||||
|
||||
seen: set[str] = set()
|
||||
for dep in info.get("deps", []):
|
||||
if not dep:
|
||||
continue
|
||||
dep_nid = _pkg_id(dep)
|
||||
if dep_nid == pkg_nid or dep_nid in seen:
|
||||
continue
|
||||
seen.add(dep_nid)
|
||||
# The edge targets the dependency's canonical package id. If that package's
|
||||
# own manifest is in the corpus, the edge resolves to its (single) node; if
|
||||
# the dependency is external, build_from_json prunes the dangling edge. We
|
||||
# deliberately do NOT emit a stub node — a stub with an empty source_file
|
||||
# would risk clobbering the real node's source_file under id-dedup.
|
||||
edges.append({
|
||||
"source": pkg_nid,
|
||||
"target": dep_nid,
|
||||
"relation": "depends_on",
|
||||
"context": "dependency",
|
||||
"confidence": "EXTRACTED",
|
||||
"confidence_score": 1.0,
|
||||
"source_file": str_path,
|
||||
"source_location": "L1",
|
||||
"weight": 1.0,
|
||||
})
|
||||
return {"nodes": nodes, "edges": edges}
|
||||
|
||||
|
||||
# ── per-ecosystem parsers: text -> {"name", "version"?, "deps": [str]} | None ──
|
||||
|
||||
def _coerce_deps(value: Any) -> list[str]:
|
||||
"""A dependency block may be a list of names or a name->spec map."""
|
||||
if isinstance(value, dict):
|
||||
return [str(k) for k in value]
|
||||
if isinstance(value, list):
|
||||
out: list[str] = []
|
||||
for item in value:
|
||||
if isinstance(item, str):
|
||||
out.append(item)
|
||||
elif isinstance(item, dict) and item:
|
||||
out.append(str(next(iter(item))))
|
||||
return out
|
||||
return []
|
||||
|
||||
|
||||
def _parse_apm(text: str) -> dict | None:
|
||||
try:
|
||||
import yaml
|
||||
except ImportError:
|
||||
return _parse_apm_fallback(text)
|
||||
data = yaml.safe_load(text)
|
||||
if not isinstance(data, dict):
|
||||
return None
|
||||
return {
|
||||
"name": data.get("name"),
|
||||
"version": data.get("version"),
|
||||
"deps": _coerce_deps(data.get("dependencies")),
|
||||
}
|
||||
|
||||
|
||||
def _parse_apm_fallback(text: str) -> dict | None:
|
||||
"""Minimal line parser for apm.yml when PyYAML is unavailable: a top-level
|
||||
``name:`` plus a simple ``dependencies:`` block (list items or a name map)."""
|
||||
name = None
|
||||
deps: list[str] = []
|
||||
in_deps = False
|
||||
for line in text.splitlines():
|
||||
if not in_deps:
|
||||
m = re.match(r'^name:\s*["\']?([^"\'\s#]+)', line)
|
||||
if m:
|
||||
name = m.group(1)
|
||||
continue
|
||||
if re.match(r'^dependencies:\s*$', line):
|
||||
in_deps = True
|
||||
continue
|
||||
if in_deps:
|
||||
dm = (re.match(r'^\s*-\s*["\']?([^"\'\s#:]+)', line)
|
||||
or re.match(r'^\s{2,}([A-Za-z0-9._/@-]+)\s*:', line))
|
||||
if dm:
|
||||
deps.append(dm.group(1))
|
||||
elif re.match(r'^\S', line): # next top-level key ends the block
|
||||
in_deps = False
|
||||
return {"name": name, "version": None, "deps": deps} if name else None
|
||||
|
||||
|
||||
def _pep508_name(spec: str) -> str:
|
||||
"""`requests>=2.0` -> `requests`; `pkg[extra]==1; python_version<'3.9'` -> `pkg`."""
|
||||
return re.split(r'[\s<>=!~;\[\(]', spec.strip(), maxsplit=1)[0]
|
||||
|
||||
|
||||
def _parse_pyproject(text: str) -> dict | None:
|
||||
try:
|
||||
import tomllib as _toml
|
||||
except ImportError:
|
||||
try:
|
||||
import tomli as _toml # type: ignore
|
||||
except ImportError:
|
||||
return None
|
||||
data = _toml.loads(text)
|
||||
proj = data.get("project", {}) if isinstance(data.get("project"), dict) else {}
|
||||
poetry = (data.get("tool", {}) or {}).get("poetry", {}) if isinstance(data.get("tool"), dict) else {}
|
||||
name = proj.get("name") or (poetry.get("name") if isinstance(poetry, dict) else None)
|
||||
if not name:
|
||||
return None
|
||||
deps: list[str] = [_pep508_name(s) for s in (proj.get("dependencies") or []) if isinstance(s, str)]
|
||||
if isinstance(poetry, dict):
|
||||
for dep in (poetry.get("dependencies") or {}):
|
||||
if str(dep).lower() != "python":
|
||||
deps.append(str(dep))
|
||||
return {"name": name, "version": proj.get("version") or (poetry.get("version") if isinstance(poetry, dict) else None), "deps": deps}
|
||||
|
||||
|
||||
def _parse_gomod(text: str) -> dict | None:
|
||||
name = None
|
||||
deps: list[str] = []
|
||||
in_block = False
|
||||
for line in text.splitlines():
|
||||
s = line.strip()
|
||||
if name is None:
|
||||
m = re.match(r'^module\s+(\S+)', s)
|
||||
if m:
|
||||
name = m.group(1)
|
||||
continue
|
||||
if re.match(r'^require\s*\(', s):
|
||||
in_block = True
|
||||
continue
|
||||
if in_block:
|
||||
if s.startswith(')'):
|
||||
in_block = False
|
||||
continue
|
||||
dm = re.match(r'^(\S+)\s+v\S+', s)
|
||||
if dm:
|
||||
deps.append(dm.group(1))
|
||||
else:
|
||||
dm = re.match(r'^require\s+(\S+)\s+v\S+', s)
|
||||
if dm:
|
||||
deps.append(dm.group(1))
|
||||
return {"name": name, "version": None, "deps": deps} if name else None
|
||||
|
||||
|
||||
def _parse_pom(text: str) -> dict | None:
|
||||
# Drop the default namespace so findtext/findall don't need the {uri} prefix.
|
||||
text = re.sub(r'\sxmlns="[^"]*"', '', text, count=1)
|
||||
root = ET.fromstring(text)
|
||||
aid = root.findtext("artifactId")
|
||||
gid = root.findtext("groupId")
|
||||
if not aid:
|
||||
return None
|
||||
name = f"{gid}:{aid}" if gid else aid
|
||||
deps: list[str] = []
|
||||
for dep in root.findall(".//dependencies/dependency"):
|
||||
da = dep.findtext("artifactId")
|
||||
dg = dep.findtext("groupId")
|
||||
if da:
|
||||
deps.append(f"{dg}:{da}" if dg else da)
|
||||
return {"name": name, "version": root.findtext("version"), "deps": deps}
|
||||
|
||||
|
||||
_PARSERS = {
|
||||
"apm": _parse_apm,
|
||||
"python": _parse_pyproject,
|
||||
"go": _parse_gomod,
|
||||
"maven": _parse_pom,
|
||||
}
|
||||
@@ -63,6 +63,7 @@ import unicodedata
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from graphify.ids import make_id as _shared_make_id
|
||||
from graphify.security import sanitize_label
|
||||
|
||||
|
||||
@@ -376,12 +377,8 @@ def _add_edge(
|
||||
|
||||
|
||||
def _make_id(*parts: str) -> str:
|
||||
"""Build a stable node ID. Must match extract._make_id's normalisation rules."""
|
||||
combined = "_".join(p.strip("_.") for p in parts if p)
|
||||
combined = unicodedata.normalize("NFKC", combined)
|
||||
cleaned = re.sub(r"[^\w]+", "_", combined, flags=re.UNICODE)
|
||||
cleaned = re.sub(r"_+", "_", cleaned)
|
||||
return cleaned.strip("_").casefold()
|
||||
"""Build a stable node ID via the single shared recipe (#1378)."""
|
||||
return _shared_make_id(*parts)
|
||||
|
||||
|
||||
def _file_stem(path: Path) -> str:
|
||||
|
||||
@@ -10,6 +10,7 @@ from pathlib import Path
|
||||
from collections.abc import Sequence
|
||||
from typing import Any
|
||||
|
||||
from graphify.ids import make_id as _shared_make_id
|
||||
from graphify.security import sanitize_metadata
|
||||
|
||||
|
||||
@@ -357,12 +358,12 @@ def resolve_cross_file_raw_calls(
|
||||
|
||||
|
||||
def _bash_make_id(*parts: str) -> str:
|
||||
"""Exact copy of extract._make_id — kept here to avoid an import cycle."""
|
||||
combined = "_".join(p.strip("_.") for p in parts if p)
|
||||
combined = unicodedata.normalize("NFKC", combined)
|
||||
cleaned = re.sub(r"[^\w]+", "_", combined, flags=re.UNICODE)
|
||||
cleaned = re.sub(r"_+", "_", cleaned)
|
||||
return cleaned.strip("_").casefold()
|
||||
"""Bash symbol node ID via the single shared recipe (#1378).
|
||||
|
||||
Previously an inline copy to dodge an import cycle; ``graphify.ids`` is
|
||||
dependency-free, so it can be imported directly.
|
||||
"""
|
||||
return _shared_make_id(*parts)
|
||||
|
||||
|
||||
def _bash_file_stem(rel_path: Path) -> str:
|
||||
|
||||
+4
-4
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "graphifyy"
|
||||
version = "0.8.42"
|
||||
version = "0.8.43"
|
||||
description = "AI coding assistant skill (Claude Code, CodeBuddy, Codex, OpenCode, Kilo Code, Cursor, Gemini CLI, Aider, OpenClaw, Factory Droid, Trae, Hermes, Kiro, Pi, Devin CLI, Google Antigravity) - turn any folder of code, docs, papers, images, or videos into a queryable knowledge graph"
|
||||
readme = "README.md"
|
||||
license = { file = "LICENSE" }
|
||||
@@ -51,14 +51,14 @@ Issues = "https://github.com/safishamsi/graphify/issues"
|
||||
mcp = ["mcp"]
|
||||
neo4j = ["neo4j"]
|
||||
falkordb = ["falkordb"]
|
||||
pdf = ["pypdf", "markdownify"]
|
||||
pdf = ["pypdf>=6.12.0", "markdownify"]
|
||||
watch = ["watchdog"]
|
||||
svg = ["matplotlib", "numpy>=2.0; python_version >= '3.13'"]
|
||||
leiden = ["graspologic; python_version < '3.13'"]
|
||||
office = ["python-docx", "openpyxl"]
|
||||
google = ["openpyxl"]
|
||||
postgres = ["psycopg[binary]"]
|
||||
video = ["faster-whisper; python_version >= '3.11'", "yt-dlp"]
|
||||
video = ["faster-whisper; python_version >= '3.11'", "yt-dlp>=2026.6.9"]
|
||||
kimi = ["openai", "tiktoken"]
|
||||
ollama = ["openai"]
|
||||
bedrock = ["boto3"]
|
||||
@@ -72,7 +72,7 @@ sql = ["tree-sitter-sql"]
|
||||
# avoids breaking the default `uv tool install graphifyy` for everyone (#1104).
|
||||
dm = ["tree-sitter-dm"]
|
||||
terraform = ["tree-sitter-hcl"]
|
||||
all = ["mcp", "neo4j", "falkordb", "pypdf", "markdownify", "watchdog", "graspologic; python_version < '3.13'", "python-docx", "openpyxl", "faster-whisper; python_version >= '3.11'", "yt-dlp", "matplotlib", "numpy>=2.0; python_version >= '3.13'", "openai", "tiktoken", "boto3", "anthropic", "tree-sitter-sql", "jieba", "tree-sitter-dm", "tree-sitter-hcl"]
|
||||
all = ["mcp", "neo4j", "falkordb", "pypdf>=6.12.0", "markdownify", "watchdog", "graspologic; python_version < '3.13'", "python-docx", "openpyxl", "faster-whisper; python_version >= '3.11'", "yt-dlp>=2026.6.9", "matplotlib", "numpy>=2.0; python_version >= '3.13'", "openai", "tiktoken", "boto3", "anthropic", "tree-sitter-sql", "jieba", "tree-sitter-dm", "tree-sitter-hcl"]
|
||||
|
||||
[project.scripts]
|
||||
graphify = "graphify.__main__:main"
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from graphify.extract import (
|
||||
extract,
|
||||
_api_normalize_path,
|
||||
_api_verbs_compatible,
|
||||
_api_path_is_specific,
|
||||
)
|
||||
|
||||
|
||||
# ── path normalization (unit) ───────────────────────────────────────────────
|
||||
|
||||
def test_param_styles_normalize_equal():
|
||||
# Flask, FastAPI/Spring, Express/React, and a JS template literal must all
|
||||
# canonicalize to the same path so a client matches its route.
|
||||
forms = [
|
||||
"/api/users/<int:id>", # Flask
|
||||
"/api/users/{id}", # FastAPI / Spring
|
||||
"/api/users/:id", # Express / React
|
||||
"/api/users/${id}", # JS template
|
||||
"/api/users/42", # concrete numeric id
|
||||
"https://host/api/users/7?x=1#f", # scheme/host/query/fragment stripped
|
||||
]
|
||||
norms = {_api_normalize_path(f) for f in forms}
|
||||
assert norms == {"/api/users/{}"}
|
||||
|
||||
|
||||
def test_specificity_guard():
|
||||
assert not _api_path_is_specific("/")
|
||||
assert not _api_path_is_specific("/{}")
|
||||
assert _api_path_is_specific("/api/users/{}")
|
||||
|
||||
|
||||
def test_verb_compatibility():
|
||||
assert _api_verbs_compatible("GET", "GET")
|
||||
assert _api_verbs_compatible("ANY", "POST") # fetch/route default
|
||||
assert not _api_verbs_compatible("GET", "POST")
|
||||
|
||||
|
||||
# ── end-to-end resolution ───────────────────────────────────────────────────
|
||||
|
||||
def _write(p: Path, text: str) -> Path:
|
||||
p.parent.mkdir(parents=True, exist_ok=True)
|
||||
p.write_text(text, encoding="utf-8")
|
||||
return p
|
||||
|
||||
|
||||
def _api_edges(result: dict) -> set[tuple[str, str]]:
|
||||
by_id = {n["id"]: n.get("label", "") for n in result["nodes"]}
|
||||
return {
|
||||
(by_id.get(e["source"], ""), by_id.get(e["target"], ""))
|
||||
for e in result["edges"]
|
||||
if e.get("resolution") == "api_contract"
|
||||
}
|
||||
|
||||
|
||||
def _two_service_fixture(base: Path):
|
||||
_write(base / "frontend/src/api.ts",
|
||||
"export async function loadUser(id: number) {\n"
|
||||
" const res = await fetch(`/api/users/${id}`);\n"
|
||||
" return res.json();\n"
|
||||
"}\n\n"
|
||||
"export async function createUser(data: any) {\n"
|
||||
" return axios.post('/api/users', data);\n"
|
||||
"}\n")
|
||||
_write(base / "backend/app.py",
|
||||
"from flask import Flask\napp = Flask(__name__)\n\n"
|
||||
"@app.get('/api/users/<int:id>')\n"
|
||||
"def get_user(id):\n return {'id': id}\n\n"
|
||||
"@app.post('/api/users')\n"
|
||||
"def create_user():\n return {'created': True}\n")
|
||||
return sorted([p for p in base.rglob("*") if p.suffix in (".ts", ".py")])
|
||||
|
||||
|
||||
def test_cross_language_api_edges_resolve(tmp_path, monkeypatch):
|
||||
monkeypatch.setenv("GRAPHIFY_API_CONTRACT_EDGES", "1")
|
||||
files = _two_service_fixture(tmp_path / "src")
|
||||
result = extract(files, cache_root=tmp_path / "src")
|
||||
edges = _api_edges(result)
|
||||
assert ("loadUser()", "get_user()") in edges # GET /api/users/{}
|
||||
assert ("createUser()", "create_user()") in edges # POST /api/users
|
||||
|
||||
|
||||
def test_api_edges_off_by_default(tmp_path, monkeypatch):
|
||||
monkeypatch.delenv("GRAPHIFY_API_CONTRACT_EDGES", raising=False)
|
||||
files = _two_service_fixture(tmp_path / "src")
|
||||
result = extract(files, cache_root=tmp_path / "src")
|
||||
assert _api_edges(result) == set()
|
||||
|
||||
|
||||
def test_same_file_call_and_route_not_linked(tmp_path, monkeypatch):
|
||||
# A fetch and a route in the SAME file are not an API contract across services.
|
||||
monkeypatch.setenv("GRAPHIFY_API_CONTRACT_EDGES", "1")
|
||||
_write(tmp_path / "src/app.py",
|
||||
"from flask import Flask\napp = Flask(__name__)\n\n"
|
||||
"@app.get('/api/ping')\n"
|
||||
"def ping():\n return 'ok'\n\n"
|
||||
"def caller():\n return requests.get('/api/ping')\n")
|
||||
files = sorted((tmp_path / "src").rglob("*.py"))
|
||||
result = extract(files, cache_root=tmp_path / "src")
|
||||
assert _api_edges(result) == set()
|
||||
|
||||
|
||||
def test_ambiguous_route_path_not_linked(tmp_path, monkeypatch):
|
||||
# Same path served by two different backend files -> ambiguous -> skip.
|
||||
monkeypatch.setenv("GRAPHIFY_API_CONTRACT_EDGES", "1")
|
||||
_write(tmp_path / "src/frontend/c.ts",
|
||||
"function go() { return fetch('/api/data'); }\n")
|
||||
_write(tmp_path / "src/svcA/a.py",
|
||||
"@app.get('/api/data')\ndef a():\n return 1\n")
|
||||
_write(tmp_path / "src/svcB/b.py",
|
||||
"@app.get('/api/data')\ndef b():\n return 2\n")
|
||||
files = sorted([p for p in (tmp_path / "src").rglob("*") if p.suffix in (".ts", ".py")])
|
||||
result = extract(files, cache_root=tmp_path / "src")
|
||||
assert _api_edges(result) == set()
|
||||
@@ -0,0 +1,95 @@
|
||||
"""Drift guard for the node-ID spec shown to LLM semantic subagents.
|
||||
|
||||
`tools/skillgen/fragments/references/shared/extraction-spec.md` (and the per-host
|
||||
copies skillgen renders from it) tell the subagents how to build node IDs, with
|
||||
worked examples like::
|
||||
|
||||
`src/auth/session.py` + `ValidateToken` → `auth_session_validatetoken`
|
||||
|
||||
Those examples are the LLM's ground truth, and they must reproduce exactly what
|
||||
the AST extractor emits (`extract._file_stem` + `extract._make_id`) or the two
|
||||
producers generate different IDs for the same symbol and the graph splits it into
|
||||
disconnected ghost nodes — the bug class the prose itself warns about
|
||||
(#811/#550/#1033/#1104).
|
||||
|
||||
The prose is hand-maintained, so it can silently drift from the code. This test
|
||||
parses every example straight out of the shipped specs and asserts the real
|
||||
functions reproduce each one. It fails if the spec examples are edited to a wrong
|
||||
value, OR if the ID functions change so the documented examples no longer hold.
|
||||
"""
|
||||
import re
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from graphify.extract import _file_stem, _make_id
|
||||
|
||||
REPO_ROOT = Path(__file__).resolve().parents[1]
|
||||
|
||||
# `path` + `entity` → `id` (arrow is U+2192). Backtick-delimited so prose around
|
||||
# the examples never leaks in.
|
||||
_EXAMPLE_RE = re.compile(r"`([^`]+)`\s*\+\s*`([^`]+)`\s*→\s*`([^`]+)`")
|
||||
|
||||
|
||||
def _spec_files() -> list[Path]:
|
||||
roots = [REPO_ROOT / "graphify" / "skills", REPO_ROOT / "tools" / "skillgen" / "fragments"]
|
||||
files: list[Path] = []
|
||||
for root in roots:
|
||||
for p in root.rglob("extraction-spec.md"):
|
||||
# build/ is a packaging artifact; expected/ is skillgen's own golden
|
||||
# output and is already covered by `skillgen --check`.
|
||||
if "/build/" in p.as_posix() or "/expected/" in p.as_posix():
|
||||
continue
|
||||
files.append(p)
|
||||
return sorted(files)
|
||||
|
||||
|
||||
def _examples() -> list[tuple[Path, str, str, str]]:
|
||||
out: list[tuple[Path, str, str, str]] = []
|
||||
for f in _spec_files():
|
||||
text = f.read_text(encoding="utf-8")
|
||||
for path, entity, expected in _EXAMPLE_RE.findall(text):
|
||||
out.append((f, path, entity, expected))
|
||||
return out
|
||||
|
||||
|
||||
def _ast_symbol_id(path: str, entity: str) -> str:
|
||||
"""Reproduce the symbol ID the AST extractor emits for a file + symbol, using
|
||||
the real production helpers (not a re-implementation)."""
|
||||
return _make_id(_file_stem(Path(path)), entity)
|
||||
|
||||
|
||||
def test_spec_files_are_discoverable():
|
||||
"""Guard the guard: if the spec moves or the example format changes so nothing
|
||||
parses, fail loudly rather than passing vacuously."""
|
||||
files = _spec_files()
|
||||
assert files, "no extraction-spec.md files found — did the skills tree move?"
|
||||
examples = _examples()
|
||||
assert len(examples) >= 13, (
|
||||
f"expected the documented node-ID examples across host specs, parsed only "
|
||||
f"{len(examples)} — the example format may have changed"
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"path,entity,expected",
|
||||
[(p, e, x) for (_f, p, e, x) in _examples()],
|
||||
ids=[f"{f.parent.parent.name}:{p}+{e}" for (f, p, e, x) in _examples()],
|
||||
)
|
||||
def test_spec_node_id_examples_match_ast_extractor(path, entity, expected):
|
||||
got = _ast_symbol_id(path, entity)
|
||||
assert got == expected, (
|
||||
f"node-ID spec drift: spec says `{path}` + `{entity}` → `{expected}`, but "
|
||||
f"extract._make_id(_file_stem(...), ...) produces `{got}`. Update the spec "
|
||||
f"examples and the ID functions together."
|
||||
)
|
||||
|
||||
|
||||
def test_cautionary_wrong_forms_are_actually_wrong():
|
||||
"""The canonical spec warns against the filename-only and full-path ID forms.
|
||||
Lock those anti-examples to the code too, so the warning can't go stale."""
|
||||
correct = _ast_symbol_id("src/auth/session.py", "ValidateToken")
|
||||
assert correct == "auth_session_validatetoken"
|
||||
# filename-only (drops the parent dir) and full-path (keeps every segment)
|
||||
assert _make_id("session", "ValidateToken") != correct
|
||||
assert _make_id("src", "auth", "session", "ValidateToken") != correct
|
||||
@@ -333,3 +333,44 @@ def test_installed_hooks_contain_no_nohup(tmp_path):
|
||||
text = (repo / ".git" / "hooks" / name).read_text(encoding="utf-8")
|
||||
assert "nohup" not in text, f"installed {name} still references nohup"
|
||||
assert "start_new_session=True" in text
|
||||
|
||||
|
||||
# ── #1385: reject Windows-style hooks paths instead of creating a junk dir ───
|
||||
|
||||
def _set_hookspath(repo: Path, value: str) -> None:
|
||||
subprocess.run(["git", "-C", str(repo), "config", "--local", "core.hooksPath", value],
|
||||
check=True, capture_output=True)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("winpath", [
|
||||
r"C:\Users\u\repo\.git\hooks",
|
||||
r"c:/Users/u/.git/hooks",
|
||||
r"D:\hooks",
|
||||
r"some\back\slashed\path",
|
||||
])
|
||||
def test_windows_hookspath_rejected_no_junk_dir(tmp_path, winpath):
|
||||
"""A Windows-style core.hooksPath must raise (loud failure), not silently
|
||||
create a backslash-named junk directory and report success (#1385)."""
|
||||
repo = _make_git_repo(tmp_path)
|
||||
_set_hookspath(repo, winpath)
|
||||
with pytest.raises(RuntimeError, match="Windows path"):
|
||||
install(repo)
|
||||
# no junk directory got created anywhere under the repo
|
||||
junk = [p for p in repo.rglob("*") if "\\" in p.name or p.name.startswith(("C:", "c:", "D:"))]
|
||||
assert junk == [], f"junk dir created: {junk}"
|
||||
|
||||
|
||||
def test_posix_custom_hookspath_still_works(tmp_path):
|
||||
"""A legitimate POSIX core.hooksPath (Husky-style) must still install."""
|
||||
repo = _make_git_repo(tmp_path)
|
||||
_set_hookspath(repo, ".husky")
|
||||
msg = install(repo)
|
||||
assert "post-commit" in msg
|
||||
assert (repo / ".husky" / "post-commit").exists()
|
||||
|
||||
|
||||
def test_default_hooks_dir_unaffected(tmp_path):
|
||||
"""No core.hooksPath -> normal .git/hooks install, no rejection."""
|
||||
repo = _make_git_repo(tmp_path)
|
||||
install(repo)
|
||||
assert (repo / ".git" / "hooks" / "post-commit").exists()
|
||||
@@ -0,0 +1,119 @@
|
||||
"""Drift guard for the node-ID normalization contract.
|
||||
|
||||
Three independent producers must agree on node IDs or the graph splits one entity
|
||||
into disconnected ghost nodes: the AST extractor (``extract._make_id``), the
|
||||
semantic subagents (the skill prompt's node-ID spec), and the graph builder
|
||||
(``build._normalize_id``, which reconciles edge endpoints). The recipe used to be
|
||||
copy-pasted into ``_make_id`` and ``_normalize_id`` and kept in sync only by
|
||||
mirrored docstrings — exactly how the recurring ID-drift bug class crept in
|
||||
(#811 Unicode collapse, #550 same-filename collisions, #1033 AST-vs-LLM file-node
|
||||
mismatch, #1104).
|
||||
|
||||
Both callers now delegate to :mod:`graphify.ids`, so they share one
|
||||
implementation and cannot diverge. These tests lock that contract: if a future
|
||||
change re-forks the normalization (a new local helper, an inlined regex, a
|
||||
dropped ``casefold``), they fail.
|
||||
"""
|
||||
import re
|
||||
|
||||
import pytest
|
||||
|
||||
from graphify.build import _normalize_id
|
||||
from graphify.extract import _make_id
|
||||
from graphify.ids import make_id, normalize_id
|
||||
|
||||
# Inputs that previously diverged or are easy to get wrong. The single-part form
|
||||
# of `_make_id` must equal `_normalize_id` for every one of these.
|
||||
CONTRACT_CASES = [
|
||||
"Session_ValidateToken", # casing
|
||||
"session.validate-token", # punctuation -> underscore
|
||||
"foo__bar..baz", # repeated separators collapse
|
||||
" Leading_Trailing__ ", # strip stray underscores/space
|
||||
"A/B\\C", # path separators both directions
|
||||
"MixedCASE", # #811: casefold
|
||||
"café", # composed accented Latin (NFKC)
|
||||
"café", # decomposed e + combining acute -> same as 'café'
|
||||
"日本語クラス", # #811: CJK letters survive, not collapsed
|
||||
"Кириллица", # Cyrillic survives
|
||||
"naïve_Über", # mixed accented Latin
|
||||
"x_c1", # must NOT be treated as a chunk suffix here
|
||||
"__dunder__", # leading/trailing underscores stripped
|
||||
"tab\tnewline\nspace ", # whitespace runs -> single underscore
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("raw", CONTRACT_CASES)
|
||||
def test_make_id_matches_normalize_id(raw):
|
||||
"""The AST id-maker and the builder's reconciler must agree, char for char."""
|
||||
assert _make_id(raw) == _normalize_id(raw), (
|
||||
f"ID drift for {raw!r}: extract._make_id -> {_make_id(raw)!r} but "
|
||||
f"build._normalize_id -> {_normalize_id(raw)!r}"
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("raw", CONTRACT_CASES)
|
||||
def test_normalize_id_is_idempotent(raw):
|
||||
once = normalize_id(raw)
|
||||
assert normalize_id(once) == once, f"normalize_id not idempotent for {raw!r}"
|
||||
|
||||
|
||||
def test_make_id_joins_then_normalizes():
|
||||
"""Multi-part make_id == normalize_id of the joined parts (the builder only
|
||||
ever sees the joined string, so these must coincide)."""
|
||||
parts = ("auth", "session.py", "ValidateToken")
|
||||
assert make_id(*parts) == normalize_id("_".join(parts))
|
||||
# Documented spec example.
|
||||
assert make_id("src/auth/session.py".split("/")[-2], "session", "ValidateToken") == \
|
||||
"auth_session_validatetoken"
|
||||
|
||||
|
||||
def test_unicode_identifiers_do_not_collapse_to_empty():
|
||||
"""#811: non-ASCII identifiers must yield distinct, non-empty IDs rather than
|
||||
collapsing to a single per-file node."""
|
||||
a = _make_id("クラスА")
|
||||
b = _make_id("クラスB")
|
||||
assert a and b and a != b
|
||||
|
||||
|
||||
def test_normalized_ids_are_safe_node_ids():
|
||||
"""Output is lowercase and contains no path/punctuation separators."""
|
||||
for raw in CONTRACT_CASES:
|
||||
out = normalize_id(raw)
|
||||
assert out == out.casefold()
|
||||
assert not re.search(r"[./\\\s]", out), f"unsafe char in id {out!r}"
|
||||
assert not out.startswith("_") and not out.endswith("_")
|
||||
|
||||
|
||||
def test_both_callers_share_one_implementation():
|
||||
"""Guard against re-forking: the two public callers must resolve to the same
|
||||
underlying function object as graphify.ids.normalize_id."""
|
||||
# build._normalize_id is imported directly from graphify.ids.
|
||||
assert _normalize_id is normalize_id
|
||||
# extract._make_id wraps make_id; prove it round-trips through the shared core.
|
||||
assert _make_id("Foo.Bar") == normalize_id("Foo.Bar")
|
||||
# The other two live ID producers — MCP config ingestion and bash symbol
|
||||
# resolution — must also resolve to the shared recipe, or the "single source
|
||||
# of truth" leaks back into copy-pasted forks (#1378).
|
||||
from graphify.mcp_ingest import _make_id as _mcp_make_id
|
||||
from graphify.symbol_resolution import _bash_make_id
|
||||
for fn in (_make_id, _mcp_make_id, _bash_make_id):
|
||||
assert fn("Foo.Bar", "baz") == make_id("Foo.Bar", "baz")
|
||||
assert fn("Ångström", "Ⅳ") == make_id("Ångström", "Ⅳ")
|
||||
|
||||
|
||||
# Optional property-based fuzzing — hypothesis is a dev dependency. Skip cleanly
|
||||
# if it is unavailable so the deterministic cases above still run everywhere.
|
||||
hypothesis = pytest.importorskip("hypothesis")
|
||||
from hypothesis import given # noqa: E402
|
||||
from hypothesis import strategies as st # noqa: E402
|
||||
|
||||
|
||||
@given(st.text())
|
||||
def test_property_make_id_equals_normalize_id(s):
|
||||
assert _make_id(s) == _normalize_id(s)
|
||||
|
||||
|
||||
@given(st.text())
|
||||
def test_property_normalize_id_idempotent(s):
|
||||
once = normalize_id(s)
|
||||
assert normalize_id(once) == once
|
||||
@@ -0,0 +1,46 @@
|
||||
"""Tests for graphify.llm._label_batch_with_retry — adaptive split-and-retry
|
||||
on JSON parse failure during community labeling (#1278).
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import re
|
||||
|
||||
from graphify import llm as llm_mod
|
||||
|
||||
|
||||
def test_label_batch_recovers_via_split_on_invalid_json(monkeypatch):
|
||||
"""Demonstrates the bug fix.
|
||||
|
||||
The full batch of 4 communities triggers malformed JSON from the LLM.
|
||||
The helper splits in half (2+2) and retries each half. Both sub-batches
|
||||
succeed. Every community ends up labeled — none silently dropped.
|
||||
"""
|
||||
batch_cids = [42, 99, 137, 201]
|
||||
batch_lines = [
|
||||
"Community 42: validate_token, get_session",
|
||||
"Community 99: create_order, add_to_cart",
|
||||
"Community 137: build_graph, cluster_nodes",
|
||||
"Community 201: render_route, handle_request",
|
||||
]
|
||||
call_count = {"n": 0}
|
||||
|
||||
def fake_call_llm(prompt: str, **_kwargs) -> str:
|
||||
"""First call (4 communities): returns broken JSON to trigger retry.
|
||||
Subsequent calls (<=2 communities): return a clean JSON object
|
||||
labeling whatever community IDs appear in the prompt.
|
||||
"""
|
||||
call_count["n"] += 1
|
||||
cids_in_prompt = [int(m) for m in re.findall(r"Community (\d+):", prompt)]
|
||||
if call_count["n"] == 1:
|
||||
return "{this is not valid json, missing quotes"
|
||||
return json.dumps({str(cid): f"Label {cid}" for cid in cids_in_prompt})
|
||||
|
||||
monkeypatch.setattr(llm_mod, "_call_llm", fake_call_llm)
|
||||
|
||||
result = llm_mod._label_batch_with_retry(
|
||||
batch_cids, batch_lines, backend="gemini", model=None,
|
||||
)
|
||||
|
||||
assert result == {42: "Label 42", 99: "Label 99", 137: "Label 137", 201: "Label 201"}
|
||||
assert call_count["n"] >= 2
|
||||
@@ -1421,6 +1421,68 @@ def test_markdown_no_dangling_edges():
|
||||
assert e["source"] in node_ids, f"Dangling source: {e}"
|
||||
|
||||
|
||||
def _md_link_fixture(tmp_path):
|
||||
"""A hub doc linking to sibling docs, plus those docs (#1376)."""
|
||||
pkg = tmp_path / "packages" / "coding-standards-csharp"
|
||||
pkg.mkdir(parents=True)
|
||||
(pkg / "index.md").write_text(
|
||||
"# C# Coding Standards\n\n"
|
||||
"| Topic | Doc |\n| --- | --- |\n"
|
||||
"| Repository | [C# Repository Standards](./repository.md) |\n"
|
||||
"| HTTP Client | [C# HTTP Client Standards](http-client.md) |\n"
|
||||
"| Unit Tests | [C# Unit Test Standards](unit-tests.md) |\n\n"
|
||||
"See also [external](https://example.com/x) and .\n"
|
||||
"Anchor: [section](./repository.md#setup).\n"
|
||||
"Wikilink: [[http-client]].\n"
|
||||
)
|
||||
(pkg / "repository.md").write_text("# C# Repository Standards\nContent.\n")
|
||||
(pkg / "http-client.md").write_text("# C# HTTP Client Standards\nContent.\n")
|
||||
(pkg / "unit-tests.md").write_text("# C# Unit Test Standards\nContent.\n")
|
||||
return pkg
|
||||
|
||||
|
||||
def test_markdown_link_edges_emitted(tmp_path):
|
||||
"""Inline/wikilink markdown links to sibling docs become references edges (#1376)."""
|
||||
pkg = _md_link_fixture(tmp_path)
|
||||
r = extract_markdown(pkg / "index.md")
|
||||
refs = [e for e in r["edges"] if e["relation"] == "references"]
|
||||
targets = {e["target"] for e in refs}
|
||||
# repository, http-client, unit-tests — each exactly once (deduped despite
|
||||
# the anchor link and wikilink pointing at repository/http-client again).
|
||||
assert len(refs) == 3, f"expected 3 reference edges, got {refs}"
|
||||
assert any("repository" in t for t in targets)
|
||||
assert any("http_client" in t for t in targets)
|
||||
assert any("unit_tests" in t for t in targets)
|
||||
|
||||
|
||||
def test_markdown_link_skips_external_and_images(tmp_path):
|
||||
"""External URLs, in-page anchors and images must not produce edges (#1376)."""
|
||||
pkg = _md_link_fixture(tmp_path)
|
||||
r = extract_markdown(pkg / "index.md")
|
||||
refs = [e for e in r["edges"] if e["relation"] == "references"]
|
||||
for e in refs:
|
||||
assert "example.com" not in e["target"]
|
||||
assert "logo" not in e["target"]
|
||||
|
||||
|
||||
def test_markdown_link_edges_resolve_to_real_nodes(tmp_path):
|
||||
"""End-to-end: after extract()'s ID remap, link targets are real doc nodes,
|
||||
so the hub doc gains edges into existing nodes instead of ghost nodes (#1376)."""
|
||||
from graphify.extract import extract
|
||||
pkg = _md_link_fixture(tmp_path)
|
||||
paths = sorted(pkg.glob("*.md"))
|
||||
res = extract(paths, cache_root=tmp_path, parallel=False)
|
||||
node_ids = {n["id"] for n in res["nodes"]}
|
||||
refs = [e for e in res["edges"] if e["relation"] == "references"]
|
||||
assert refs, "expected reference edges after full extract"
|
||||
for e in refs:
|
||||
assert e["target"] in node_ids, f"link target is a ghost node: {e}"
|
||||
# index.md must connect to all three sibling docs.
|
||||
index_id = next(n["id"] for n in res["nodes"] if n["label"] == "index.md")
|
||||
index_refs = {e["target"] for e in refs if e["source"] == index_id}
|
||||
assert len(index_refs) == 3, f"hub doc under-connected: {index_refs}"
|
||||
|
||||
|
||||
# ── Groovy ───────────────────────────────────────────────────────────────────
|
||||
|
||||
|
||||
|
||||
@@ -132,6 +132,58 @@ def test_missing_gemini_key_names_both_supported_env_vars(monkeypatch):
|
||||
assert "GEMINI_API_KEY or GOOGLE_API_KEY" in str(exc.value)
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# #1386: public entry points accept str paths, not just pathlib.Path
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
def test_extract_files_direct_accepts_str_paths(tmp_path, monkeypatch):
|
||||
_clear_backend_env(monkeypatch)
|
||||
monkeypatch.setenv("GOOGLE_API_KEY", "google-key")
|
||||
source = tmp_path / "note.md"
|
||||
source.write_text("# Architecture\n\nThe runner emits a snapshot.\n")
|
||||
result = {"nodes": [], "edges": [], "hyperedges": [], "input_tokens": 1, "output_tokens": 1}
|
||||
|
||||
# str path must not raise AttributeError: 'str' object has no attribute 'suffix'
|
||||
with patch("graphify.llm._call_openai_compat", return_value=result):
|
||||
assert llm.extract_files_direct([str(source)], backend="gemini", root=tmp_path) is result
|
||||
|
||||
|
||||
def test_extract_corpus_parallel_accepts_str_and_mixed_paths(tmp_path, monkeypatch):
|
||||
_clear_backend_env(monkeypatch)
|
||||
monkeypatch.setenv("GOOGLE_API_KEY", "google-key")
|
||||
f1 = tmp_path / "a.md"
|
||||
f1.write_text("# A\n\nNode one.\n")
|
||||
f2 = tmp_path / "b.md"
|
||||
f2.write_text("# B\n\nNode two.\n")
|
||||
result = {"nodes": [], "edges": [], "hyperedges": [], "input_tokens": 1, "output_tokens": 1}
|
||||
|
||||
with patch("graphify.llm._call_openai_compat", return_value=result):
|
||||
# all-str, all-Path, and mixed must each pack + run without AttributeError
|
||||
for files in ([str(f1), str(f2)], [f1, f2], [str(f1), f2]):
|
||||
merged = llm.extract_corpus_parallel(
|
||||
files, backend="gemini", root=tmp_path, max_concurrency=1
|
||||
)
|
||||
assert merged["failed_chunks"] == 0
|
||||
|
||||
|
||||
def test_str_path_entry_points_handle_edge_cases(tmp_path, monkeypatch):
|
||||
_clear_backend_env(monkeypatch)
|
||||
monkeypatch.setenv("GOOGLE_API_KEY", "google-key")
|
||||
result = {"nodes": [], "edges": [], "hyperedges": [], "input_tokens": 1, "output_tokens": 1}
|
||||
|
||||
with patch("graphify.llm._call_openai_compat", return_value=result):
|
||||
# empty list: no chunks, nothing to extract, no crash
|
||||
empty = llm.extract_corpus_parallel([], backend="gemini", root=tmp_path)
|
||||
assert empty["nodes"] == [] and empty["failed_chunks"] == 0
|
||||
# a Path subclass is still a Path and must pass through unchanged
|
||||
class _SubPath(type(Path())): # concrete OS-specific Path subclass
|
||||
pass
|
||||
sub = _SubPath(tmp_path / "c.md")
|
||||
sub.write_text("# C\n\nNode.\n")
|
||||
assert llm.extract_files_direct([sub], backend="gemini", root=tmp_path) is result
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Adaptive retry: context-window overflow recovery
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,114 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from graphify.build import build_from_json
|
||||
from graphify.detect import FileType, classify_file
|
||||
from graphify.extract import extract
|
||||
from graphify.manifest_ingest import (
|
||||
extract_package_manifest,
|
||||
is_package_manifest_path,
|
||||
)
|
||||
|
||||
|
||||
def _write(p: Path, text: str) -> Path:
|
||||
p.parent.mkdir(parents=True, exist_ok=True)
|
||||
p.write_text(text, encoding="utf-8")
|
||||
return p
|
||||
|
||||
|
||||
# ── routing: manifests are deterministic (CODE), not LLM documents ───────────
|
||||
|
||||
def test_manifests_classify_as_code_not_document(tmp_path):
|
||||
for name in ("apm.yml", "pyproject.toml", "go.mod", "pom.xml"):
|
||||
p = _write(tmp_path / name, "x")
|
||||
assert is_package_manifest_path(p)
|
||||
assert classify_file(p) is FileType.CODE, name
|
||||
# a generic yaml stays a document
|
||||
assert classify_file(_write(tmp_path / "config.yaml", "a: 1")) is FileType.DOCUMENT
|
||||
|
||||
|
||||
# ── per-format parsing ───────────────────────────────────────────────────────
|
||||
|
||||
def _pkg_nodes(result):
|
||||
return [n for n in result["nodes"] if n.get("type") == "package"]
|
||||
|
||||
|
||||
def test_apm_parses_name_and_deps(tmp_path):
|
||||
p = _write(tmp_path / "apm.yml",
|
||||
"name: my-pkg\nversion: 1.2.3\ndependencies:\n - dep-a\n - dep-b\n")
|
||||
r = extract_package_manifest(p)
|
||||
pkg = _pkg_nodes(r)[0]
|
||||
assert pkg["label"] == "my-pkg" and pkg["version"] == "1.2.3"
|
||||
deps = {e["target"] for e in r["edges"] if e["relation"] == "depends_on"}
|
||||
assert {"pkg_dep_a", "pkg_dep_b"} <= deps
|
||||
|
||||
|
||||
def test_pyproject_parses_pep508_deps(tmp_path):
|
||||
p = _write(tmp_path / "pyproject.toml",
|
||||
'[project]\nname = "cool-lib"\nversion = "0.1"\n'
|
||||
'dependencies = ["requests>=2.0", "rich[jupyter]==13.0", "tomli; python_version<\'3.11\'"]\n')
|
||||
r = extract_package_manifest(p)
|
||||
assert _pkg_nodes(r)[0]["label"] == "cool-lib"
|
||||
deps = {e["target"] for e in r["edges"]}
|
||||
assert {"pkg_requests", "pkg_rich", "pkg_tomli"} <= deps # versions/extras/markers stripped
|
||||
|
||||
|
||||
def test_gomod_parses_module_and_requires(tmp_path):
|
||||
p = _write(tmp_path / "go.mod",
|
||||
"module example.com/me/app\n\ngo 1.22\n\nrequire (\n"
|
||||
"\tgithub.com/x/y v1.2.3\n\tgithub.com/a/b v0.4.0\n)\n")
|
||||
r = extract_package_manifest(p)
|
||||
assert _pkg_nodes(r)[0]["label"] == "example.com/me/app"
|
||||
deps = {e["target"] for e in r["edges"]}
|
||||
assert "pkg_github_com_x_y" in deps and "pkg_github_com_a_b" in deps
|
||||
|
||||
|
||||
def test_pom_parses_artifact_and_deps(tmp_path):
|
||||
p = _write(tmp_path / "pom.xml",
|
||||
'<project xmlns="http://maven.apache.org/POM/4.0.0">\n'
|
||||
' <groupId>com.acme</groupId>\n <artifactId>widget</artifactId>\n <version>2.0</version>\n'
|
||||
' <dependencies>\n <dependency><groupId>org.lib</groupId><artifactId>core</artifactId></dependency>\n'
|
||||
' </dependencies>\n</project>\n')
|
||||
r = extract_package_manifest(p)
|
||||
assert _pkg_nodes(r)[0]["label"] == "com.acme:widget"
|
||||
assert any(e["target"] == "pkg_org_lib_core" for e in r["edges"])
|
||||
|
||||
|
||||
# ── #1377: a package referenced by N manifests is ONE node ───────────────────
|
||||
|
||||
def test_apm_dependency_collapses_to_single_canonical_node(tmp_path):
|
||||
base = tmp_path / "packages"
|
||||
_write(base / "core/apm.yml", "name: coding-standards-core\nversion: 1.0.4\n")
|
||||
_write(base / "csharp/apm.yml",
|
||||
"name: coding-standards-csharp\ndependencies:\n - coding-standards-core\n")
|
||||
_write(base / "python/apm.yml",
|
||||
'name: coding-standards-python\ndependencies:\n coding-standards-core: ">=1.0"\n')
|
||||
files = sorted(base.rglob("apm.yml"))
|
||||
result = extract(files, cache_root=tmp_path)
|
||||
|
||||
core = [n for n in result["nodes"]
|
||||
if n.get("type") == "package" and n["label"] == "coding-standards-core"]
|
||||
assert len(core) == 1, "core package must be a single canonical node"
|
||||
assert core[0]["id"] == "pkg_coding_standards_core" and core[0]["source_file"]
|
||||
|
||||
g = build_from_json(result)
|
||||
core_ids = [n for n, d in g.nodes(data=True) if d.get("label") == "coding-standards-core"]
|
||||
dep_edges = [(u, v) for u, v, d in g.edges(data=True) if d.get("relation") == "depends_on"]
|
||||
assert len(core_ids) == 1
|
||||
assert len(dep_edges) == 2 # both dependents point at the one core node
|
||||
|
||||
|
||||
def test_external_dependency_edge_pruned_not_orphaned(tmp_path):
|
||||
# A dep whose manifest isn't in the corpus: the edge dangles and build prunes it.
|
||||
p = _write(tmp_path / "apm.yml", "name: leaf\ndependencies:\n - some-external-pkg\n")
|
||||
result = extract([p], cache_root=tmp_path)
|
||||
g = build_from_json(result)
|
||||
assert "pkg_some_external_pkg" not in set(g.nodes()) # no fabricated external node
|
||||
assert [n for n, d in g.nodes(data=True) if d.get("label") == "leaf"]
|
||||
|
||||
|
||||
def test_malformed_manifest_does_not_crash(tmp_path):
|
||||
p = _write(tmp_path / "pom.xml", "<project><not closed")
|
||||
r = extract_package_manifest(p) # parse error -> empty, no exception
|
||||
assert r["nodes"] == [] and r["edges"] == []
|
||||
@@ -74,6 +74,15 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/7b/98/f6aa7fe0783e42be3093d8ef1b0ecdc22c34c0d69640dfb37f56925cb141/anytree-2.13.0-py3-none-any.whl", hash = "sha256:4cbcf10df36b1f1cba131b7e487ff3edafc9d6e932a3c70071b5b768bab901ff", size = 45077, upload-time = "2025-04-08T21:06:29.494Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "async-timeout"
|
||||
version = "5.0.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/a5/ae/136395dfbfe00dfc94da3f3e136d0b13f394cba8f4841120e34226265780/async_timeout-5.0.1.tar.gz", hash = "sha256:d9321a7a3d5a6a5e187e824d2fa0793ce379a202935782d555d6e9d2735677d3", size = 9274, upload-time = "2024-11-06T16:41:39.6Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/fe/ba/e2081de779ca30d473f21f5b30e0e737c438205440784c7dfc81efc2b029/async_timeout-5.0.1-py3-none-any.whl", hash = "sha256:39e3809566ff85354557ec2398b55e096c8364bacac9405a7a1fa429e77fe76c", size = 6233, upload-time = "2024-11-06T16:41:37.9Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "attrs"
|
||||
version = "26.1.0"
|
||||
@@ -791,62 +800,59 @@ toml = [
|
||||
|
||||
[[package]]
|
||||
name = "cryptography"
|
||||
version = "48.0.0"
|
||||
version = "49.0.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "cffi", marker = "platform_python_implementation != 'PyPy'" },
|
||||
{ name = "typing-extensions", marker = "python_full_version < '3.11'" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/9f/a9/db8f313fdcd85d767d4973515e1db101f9c71f95fced83233de224673757/cryptography-48.0.0.tar.gz", hash = "sha256:5c3932f4436d1cccb036cb0eaef46e6e2db91035166f1ad6505c3c9d5a635920", size = 832984, upload-time = "2026-05-04T22:59:38.133Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/1f/99/d1c90d6041656cc6ee229dc99cd67fd0cd5aec3c5f7d72fffc27cc750054/cryptography-49.0.0.tar.gz", hash = "sha256:f89660a348f4f78a92366240a61404e337586ef7f5909a2fef59ca88ef505493", size = 854345, upload-time = "2026-06-12T20:02:30.512Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/df/3d/01f6dd9190170a5a241e0e98c2d04be3664a9e6f5b9b872cde63aff1c3dd/cryptography-48.0.0-cp311-abi3-macosx_10_9_universal2.whl", hash = "sha256:0c558d2cdffd8f4bbb30fc7134c74d2ca9a476f830bb053074498fbc86f41ed6", size = 8001587, upload-time = "2026-05-04T22:57:36.803Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b2/6e/e90527eef33f309beb811cf7c982c3aeffcce8e3edb178baa4ca3ae4a6fa/cryptography-48.0.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f5333311663ea94f75dd408665686aaf426563556bb5283554a3539177e03b8c", size = 4690433, upload-time = "2026-05-04T22:57:40.373Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/90/04/673510ed51ddff56575f306cf1617d80411ee76831ccd3097599140efdfe/cryptography-48.0.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:7995ef305d7165c3f11ae07f2517e5a4f1d5c18da1376a0a9ed496336b69e5f3", size = 4710620, upload-time = "2026-05-04T22:57:42.935Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/14/d5/e9c4ef932c8d800490c34d8bd589d64a31d5890e27ec9e9ad532be893294/cryptography-48.0.0-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:40ba1f85eaa6959837b1d51c9767e230e14612eea4ef110ee8854ada22da1bf5", size = 4696283, upload-time = "2026-05-04T22:57:45.294Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0c/29/174b9dfb60b12d59ecfc6cfa04bc88c21b42a54f01b8aae09bb6e51e4c7f/cryptography-48.0.0-cp311-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:369a6348999f94bbd53435c894377b20ab95f25a9065c283570e70150d8abc3c", size = 5296573, upload-time = "2026-05-04T22:57:47.933Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/95/38/0d29a6fd7d0d1373f0c0c88a04ba20e359b257753ac497564cd660fc1d55/cryptography-48.0.0-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:a0e692c683f4df67815a2d258b324e66f4738bd7a96a218c826dce4f4bd05d8f", size = 4743677, upload-time = "2026-05-04T22:57:50.067Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/30/be/eef653013d5c63b6a490529e0316f9ac14a37602965d4903efed1399f32b/cryptography-48.0.0-cp311-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:18349bbc56f4743c8b12dc32e2bccb2cf83ee8b69a3bba74ef8ae857e26b3d25", size = 4330808, upload-time = "2026-05-04T22:57:52.301Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/84/9e/500463e87abb7a0a0f9f256ec21123ecde0a7b5541a15e840ea54551fd81/cryptography-48.0.0-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:7e8eac43dfca5c4cccc6dad9a80504436fca53bb9bc3100a2386d730fbe6b602", size = 4695941, upload-time = "2026-05-04T22:57:54.603Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e3/dc/7303087450c2ec9e7fbb750e17c2abfbc658f23cbd0e54009509b7cc4091/cryptography-48.0.0-cp311-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:9ccdac7d40688ecb5a3b4a604b8a88c8002e3442d6c60aead1db2a89a041560c", size = 5252579, upload-time = "2026-05-04T22:57:57.207Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d0/c0/7101d3b7215edcdc90c45da544961fd8ed2d6448f77577460fa75a8443f7/cryptography-48.0.0-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:bd72e68b06bb1e96913f97dd4901119bc17f39d4586a5adf2d3e47bc2b9d58b5", size = 4743326, upload-time = "2026-05-04T22:57:59.535Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ac/d8/5b833bad13016f562ab9d063d68199a4bd121d18458e439515601d3357ec/cryptography-48.0.0-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:59baa2cb386c4f0b9905bd6eb4c2a79a69a128408fd31d32ca4d7102d4156321", size = 4826672, upload-time = "2026-05-04T22:58:01.996Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/98/e1/7074eb8bf3c135558c73fc2bcf0f5633f912e6fb87e868a55c454080ef09/cryptography-48.0.0-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:9249e3cd978541d665967ac2cb2787fd6a62bddf1e75b3e347a594d7dacf4f74", size = 4972574, upload-time = "2026-05-04T22:58:03.968Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/04/70/e5a1b41d325f797f39427aa44ef8baf0be500065ab6d8e10369d850d4a4f/cryptography-48.0.0-cp311-abi3-win32.whl", hash = "sha256:9c459db21422be75e2809370b829a87eb37f74cd785fc4aa9ea1e5f43b47cda4", size = 3294868, upload-time = "2026-05-04T22:58:06.467Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f4/ac/8ac51b4a5fc5932eb7ee5c517ba7dc8cd834f0048962b6b352f00f41ebf9/cryptography-48.0.0-cp311-abi3-win_amd64.whl", hash = "sha256:5b012212e08b8dd5edc78ef54da83dd9892fd9105323b3993eff6bea65dc21d7", size = 3817107, upload-time = "2026-05-04T22:58:08.845Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6b/84/70e3feea9feea87fd7cbe77efb2712ae1e3e6edf10749dc6e95f4e60e455/cryptography-48.0.0-cp314-cp314t-macosx_10_9_universal2.whl", hash = "sha256:3cb07a3ed6431663cd321ea8a000a1314c74211f823e4177fefa2255e057d1ec", size = 7986556, upload-time = "2026-05-04T22:58:11.172Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/89/6e/18e07a618bb5442ba10cf4df16e99c071365528aa570dfcb8c02e25a303b/cryptography-48.0.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:8c7378637d7d88016fa6791c159f698b3d3eed28ebf844ac36b9dc04a14dae18", size = 4684776, upload-time = "2026-05-04T22:58:13.712Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/be/6a/4ea3b4c6c6759794d5ee2103c304a5076dc4b19ae1f9fe47dba439e159e9/cryptography-48.0.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:cc90c0b39b2e3c65ef52c804b72e3c58f8a04ab2a1871272798e5f9572c17d20", size = 4698121, upload-time = "2026-05-04T22:58:16.448Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2f/59/6ff6ad6cae03bb887da2a5860b2c9805f8dac969ef01ce563336c49bd1d1/cryptography-48.0.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:76341972e1eff8b4bea859f09c0d3e64b96ce931b084f9b9b7db8ef364c30eff", size = 4690042, upload-time = "2026-05-04T22:58:18.544Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ca/b4/fc334ed8cfd705aca282fe4d8f5ae64a8e0f74932e9feecb344610cf6e4d/cryptography-48.0.0-cp314-cp314t-manylinux_2_28_ppc64le.whl", hash = "sha256:55b7718303bf06a5753dcdccf2f3945cf18ad7bffde41b61226e4db31ab89a9c", size = 5282526, upload-time = "2026-05-04T22:58:20.75Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/11/08/9f8c5386cc4cd90d8255c7cdd0f5baf459a08502a09de30dc51f553d38dc/cryptography-48.0.0-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:a64697c641c7b1b2178e573cbc31c7c6684cd56883a478d75143dbb7118036db", size = 4733116, upload-time = "2026-05-04T22:58:23.627Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b8/77/99307d7574045699f8805aa500fa0fb83422d115b5400a064ddd306d7750/cryptography-48.0.0-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:561215ea3879cb1cbbf272867e2efda62476f240fb58c64de6b393ae19246741", size = 4316030, upload-time = "2026-05-04T22:58:25.581Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fd/36/a608b98337af3cb2aff4818e406649d30572b7031918b04c87d979495348/cryptography-48.0.0-cp314-cp314t-manylinux_2_34_aarch64.whl", hash = "sha256:ad64688338ed4bc1a6618076ba75fd7194a5f1797ac60b47afe926285adb3166", size = 4689640, upload-time = "2026-05-04T22:58:27.747Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/dd/a6/825010a291b4438aecc1f568bc428189fc1175515223632477c07dc0a6df/cryptography-48.0.0-cp314-cp314t-manylinux_2_34_ppc64le.whl", hash = "sha256:906cbf0670286c6e0044156bc7d4af9cbb0ef6db9f73e52c3ec56ba6bdde5336", size = 5237657, upload-time = "2026-05-04T22:58:29.848Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b9/09/4e76a09b4caa29aad535ddc806f5d4c5d01885bd978bd984fbc6ca032cae/cryptography-48.0.0-cp314-cp314t-manylinux_2_34_x86_64.whl", hash = "sha256:ea8990436d914540a40ab24b6a77c0969695ed52f4a4874c5137ccf7045a7057", size = 4732362, upload-time = "2026-05-04T22:58:32.009Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/18/78/444fa04a77d0cb95f417dda20d450e13c56ba8e5220fc892a1658f44f882/cryptography-48.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:c18684a7f0cc9a3cb60328f496b8e3372def7c5d2df39ac267878b05565aaaae", size = 4819580, upload-time = "2026-05-04T22:58:34.254Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/38/85/ea67067c70a1fd4be2c63d35eeed82658023021affccc7b17705f8527dd2/cryptography-48.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:9be5aafa5736574f8f15f262adc81b2a9869e2cfe9014d52a44633905b40d52c", size = 4963283, upload-time = "2026-05-04T22:58:36.376Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/75/54/cc6d0f3deac3e81c7f847e8a189a12b6cdd65059b43dad25d4316abd849a/cryptography-48.0.0-cp314-cp314t-win32.whl", hash = "sha256:c17dfe85494deaeddc5ce251aebd1d60bbe6afc8b62071bb0b469431a000124f", size = 3270954, upload-time = "2026-05-04T22:58:38.791Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/49/67/cc947e288c0758a4e5473d1dcb743037ab7785541265a969240b8885441a/cryptography-48.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:27241b1dc9962e056062a8eef1991d02c3a24569c95975bd2322a8a52c6e5e12", size = 3797313, upload-time = "2026-05-04T22:58:40.746Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f2/63/61d4a4e1c6b6bab6ce1e213cd36a24c415d90e76d78c5eb8577c5541d2e8/cryptography-48.0.0-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:58d00498e8933e4a194f3076aee1b4a97dfec1a6da444535755822fe5d8b0b86", size = 7983482, upload-time = "2026-05-04T22:58:43.769Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d5/ac/f5b5995b87770c693e2596559ffafe195b4033a57f14a82268a2842953f3/cryptography-48.0.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:614d0949f4790582d2cc25553abd09dd723025f0c0e7c67376a1d77196743d6e", size = 4683266, upload-time = "2026-05-04T22:58:46.064Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ec/c6/8b14f67e18338fbc4adb76f66c001f5c3610b3e2d1837f268f47a347dbbb/cryptography-48.0.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:7ce4bfae76319a532a2dc68f82cc32f5676ee792a983187dac07183690e5c66f", size = 4696228, upload-time = "2026-05-04T22:58:48.22Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ea/73/f808fbae9514bd91b47875b003f13e284c8c6bdfd904b7944e803937eec1/cryptography-48.0.0-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:2eb992bbd4661238c5a397594c83f5b4dc2bc5b848c365c8f991b6780efcc5c7", size = 4689097, upload-time = "2026-05-04T22:58:50.9Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/93/01/d86632d7d28db8ae83221995752eeb6639ffb374c2d22955648cf8d52797/cryptography-48.0.0-cp39-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:22a5cb272895dce158b2cacdfdc3debd299019659f42947dbdac6f32d68fe832", size = 5283582, upload-time = "2026-05-04T22:58:53.017Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/02/e1/50edc7a50334807cc4791fc4a0ce7468b4a1416d9138eab358bfc9a3d70b/cryptography-48.0.0-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:2b4d59804e8408e2fea7d1fbaf218e5ec984325221db76e6a241a9abd6cdd95c", size = 4730479, upload-time = "2026-05-04T22:58:55.611Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6f/af/99a582b1b1641ff5911ac559beb45097cf79efd4ead4657f578ef1af2d47/cryptography-48.0.0-cp39-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:984a20b0f62a26f48a3396c72e4bc34c66e356d356bf370053066b3b6d54634a", size = 4326481, upload-time = "2026-05-04T22:58:57.607Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/90/ee/89aa26a06ef0a7d7611788ffd571a7c50e368cc6a4d5eef8b4884e866edb/cryptography-48.0.0-cp39-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:5a5ed8fde7a1d09376ca0b40e68cd59c69fe23b1f9768bd5824f54681626032a", size = 4688713, upload-time = "2026-05-04T22:59:00.077Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/70/ba/bcb1b0bb7a33d4c7c0c4d4c7874b4a62ae4f56113a5f4baefa362dfb1f0f/cryptography-48.0.0-cp39-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:8cd666227ef7af430aa5914a9910e0ddd703e75f039cef0825cd0da71b6b711a", size = 5238165, upload-time = "2026-05-04T22:59:02.317Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c9/70/ca4003b1ce5ca3dc3186ada51908c8a9b9ff7d5cab83cc0d43ee14ec144f/cryptography-48.0.0-cp39-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:9071196d81abc88b3516ac8cdfad32e2b66dd4a5393a8e68a961e9161ddc6239", size = 4729947, upload-time = "2026-05-04T22:59:05.255Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/44/a0/4ec7cf774207905aef1a8d11c3750d5a1db805eb380ee4e16df317870128/cryptography-48.0.0-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:1e2d54c8be6152856a36f0882ab231e70f8ec7f14e93cf87db8a2ed056bf160c", size = 4822059, upload-time = "2026-05-04T22:59:07.802Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1e/75/a2e55f99c16fcac7b5d6c1eb19ad8e00799854d6be5ca845f9259eae1681/cryptography-48.0.0-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:a5da777e32ffed6f85a7b2b3f7c5cbc88c146bfcd0a1d7baf5fcc6c52ee35dd4", size = 4960575, upload-time = "2026-05-04T22:59:09.851Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b8/23/6e6f32143ab5d8b36ca848a502c4bcd477ae75b9e1677e3530d669062578/cryptography-48.0.0-cp39-abi3-win32.whl", hash = "sha256:77a2ccbbe917f6710e05ba9adaa25fb5075620bf3ea6fb751997875aff4ae4bd", size = 3279117, upload-time = "2026-05-04T22:59:12.019Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9d/9a/0fea98a70cf1749d41d738836f6349d97945f7c89433a259a6c2642eefeb/cryptography-48.0.0-cp39-abi3-win_amd64.whl", hash = "sha256:16cd65b9330583e4619939b3a3843eec1e6e789744bb01e7c7e2e62e33c239c8", size = 3792100, upload-time = "2026-05-04T22:59:14.884Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/be/d2/024b5e06be9d44cb021fb0e1a03d34d63989cf56a0fe62f3dfbab695b9b4/cryptography-48.0.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:84cf79f0dc8b36ac5da873481716e87aef31fcfa0444f9e1d8b4b2cece142855", size = 3950391, upload-time = "2026-05-04T22:59:17.415Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bc/17/3861e17c56fa0fd37491a14a8673fdb77c57fc5693cafe745ea8b06dba75/cryptography-48.0.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:fdfef35d751d510fcef5252703621574364fec16418c4a1e5e1055248401054b", size = 4637126, upload-time = "2026-05-04T22:59:20.197Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f0/0a/7e226dbff530f21480727eb764973a7bff2b912f8e15cd4f129e71b56d1d/cryptography-48.0.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:0890f502ddf7d9c6426129c3f49f5c0a39278ed7cd6322c8755ffca6ee675a13", size = 4667270, upload-time = "2026-05-04T22:59:22.647Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3b/f2/5a72274ca9f1b2a8b44a662ee0bf1b435909deb473d6f97bcd035bcdbc71/cryptography-48.0.0-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl", hash = "sha256:ecde28a596bead48b0cfd2a1b4416c3d43074c2d785e3a398d7ec1fc4d0f7fbb", size = 4636797, upload-time = "2026-05-04T22:59:24.912Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b4/e1/48cedb2fe63626e91ded1edad159e2a4fb8b6906c4425eb7749673077ce7/cryptography-48.0.0-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl", hash = "sha256:4defde8685ae324a9eb9d818717e93b4638ef67070ac9bc15b8ca85f63048355", size = 4666800, upload-time = "2026-05-04T22:59:27.474Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a2/ca/7e8365deec19afb2b2c7be7c1c0aa8f99633b54e90c570999acda93260fc/cryptography-48.0.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:db63bf618e5dea46c07de12e900fe1cdd2541e6dc9dbae772a70b7d4d4765f6a", size = 3739536, upload-time = "2026-05-04T22:59:29.61Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9b/22/adf66990e63584a68dfb50c24f48a125c07b1699899381c8151e63ed458c/cryptography-49.0.0-cp311-abi3-macosx_11_0_arm64.whl", hash = "sha256:966fe0e9c67490071f14c0d2b1cb2dfb3023c5ce39457343931415f08382f2db", size = 4032100, upload-time = "2026-06-12T20:02:32.143Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/09/41/3797cfaf69cae04a13ee78ebd83f0678d9c02b4779d21ce24445326f1a69/cryptography-49.0.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:36d1709f992593689b45bda411498d62c6e365f2ca00b84657d4dadd24de16db", size = 4692978, upload-time = "2026-06-12T20:01:21.305Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e6/8b/43011f7ebe515a8aa20d61f290a326cd890c2e738e16e59eaff8d9c3a412/cryptography-49.0.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:0e959b578856a3924bc0cbb710fc12c387b9412a951389f3ca61704a9e25f325", size = 4716422, upload-time = "2026-06-12T20:01:48.566Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4a/91/01ce7303a4579e6d3a6abef01bd322848e9ea7a219adcabc5048b9033571/cryptography-49.0.0-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:53ecee2e23f7169b6117e99fc8a944e5e50f79e69758a83b52a00cb98ab2b2d2", size = 4700503, upload-time = "2026-06-12T20:02:47.091Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/62/99/a2c95cf8293f07491e9e27c20cc4dcd18176d944e674679adeb1d0173fd6/cryptography-49.0.0-cp311-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:2eda353d8a27bcbcaa4cbed18994a74ab4d19a2ca897db188ea269ab9b71419b", size = 5309779, upload-time = "2026-06-12T20:02:08.987Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/20/2c/0622f20ff02b2ef32558733443805dc82fd4c275be01b2d19d14676f3a1b/cryptography-49.0.0-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:2afe9051da7ae7bd5905da5a949280c7d2bb75682e188f650a9d0f2756b834c6", size = 4749683, upload-time = "2026-06-12T20:02:03.335Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a3/5b/c5246635d5fd3b64e0d45ae10e99fd32fe9676a79915ccfe5a61ba9af1a5/cryptography-49.0.0-cp311-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:0b82e28ee398a386f0807bba7884d30f25218855690f45115831bcce5d90822c", size = 4337874, upload-time = "2026-06-12T20:02:54.323Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6d/88/05563c7fe2e914e87d1a536d06fe83e66b4e1d95cb593e05aea375531da8/cryptography-49.0.0-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:ccac2bfebc306b862133e3bb71f3f6ee8bb525240089b2d952e4144b3a6d5da7", size = 4700283, upload-time = "2026-06-12T20:01:34.822Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c4/b6/d7696e4e890d6ae1469935164c9e5215c557671cb78d6e3f458ccceaa632/cryptography-49.0.0-cp311-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:d0527ce944105f257f605a827d6ebead966c752038b6e8656abb9c5edee6fc68", size = 5265844, upload-time = "2026-06-12T20:01:24.09Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a9/3c/f3ad17eecc1a57b0ba236dc01f90e783c51f4a2f35f64777cc4f47a184b2/cryptography-49.0.0-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:cbc77da8c523d5abd028635ba850a6966fcee2c82e2bf65a41d1d8afe0f98be9", size = 4749290, upload-time = "2026-06-12T20:01:30.848Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4f/01/339573cf1023163a400b0b5d16f6d507de413b9f60be6fd1b77feeaf6737/cryptography-49.0.0-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:b87e65d263b3e5d3bb92a57e2a6638e2f31110fa7aa890c7b2dbba42248d0a3f", size = 4834612, upload-time = "2026-06-12T20:01:29.246Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/71/fd/577302e213a1be9468f92d1afef66fcf1ef83d516819d9992ca547f592bd/cryptography-49.0.0-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:66ec79c3904820572d7e987abdf304281f141d37ad9a489b8e97066e7b9b6459", size = 4980804, upload-time = "2026-06-12T20:01:42.853Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1f/09/f42b1d190c5ba75f72062a387f8030d1d75f6ab035788f1d9c4b01de6525/cryptography-49.0.0-cp311-abi3-win_amd64.whl", hash = "sha256:e5dfc1e64de5677cec922ffa8da89c546d0415bf6efdf081842e5d44c84e1f0e", size = 3810026, upload-time = "2026-06-12T20:02:39.262Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ec/9e/db72b3ae7fc9cfad53e630e56c6ae83b9b6ff0bf3718ffb8012d20b3aabf/cryptography-49.0.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:73a205dce83953d131a4aa1e0fd917a2fd1c5b1eef251e9d7152efefcbf5caf7", size = 4013892, upload-time = "2026-06-12T20:02:10.735Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/86/12/c48a424f38db03027be9f7ed5c7dc5de9933dbee992865f98b13727a009d/cryptography-49.0.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:196ecd6a36e4e9aa10270393bb98d8df88fccee0bf1e5128b91ae4eb4375896d", size = 4678835, upload-time = "2026-06-12T20:02:48.743Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/68/28/8a3ad4653662c93fc44dc4e5d8fd374c25c42e07b34bbfbadf49cf57a5a8/cryptography-49.0.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:7abcee80084cda3f7691f3eb1ce480d8df49cec637b429aa35986c1de71738aa", size = 4697239, upload-time = "2026-06-12T20:02:56.03Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a8/b2/2193fc74f81aee4f9b62733133b73b5176718932ed8f2e4b03fa040480a6/cryptography-49.0.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:4ae387c9cb68ea569ca17e490d66d8142b81c3cc814bf179974b7d146e490bbb", size = 4685593, upload-time = "2026-06-12T20:02:50.666Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/47/f1/1d3eaa243bfc5de4a187b22aa8c048b3e4980bfbe830ac46e6bac2e66947/cryptography-49.0.0-cp314-cp314t-manylinux_2_28_ppc64le.whl", hash = "sha256:f37d847238971164fdbc68ade6f6574aecc9c0af714190e2083429ff68f4ce9d", size = 5289961, upload-time = "2026-06-12T20:01:46.468Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/58/39/2d51306721330c486495853eda1c567880ff036de15a14c4b74f399934af/cryptography-49.0.0-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:c2bc30226390d60ea19d9f82b19db005fe0452154a23c1c410c12ea801e43561", size = 4731145, upload-time = "2026-06-12T20:02:16.832Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/17/50/983e838c7fd0d87fd8c969bcdd328edaf5f756e38df5281637424c155873/cryptography-49.0.0-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:07cab27cc7b7e0fd28e5e26bb9eeedde5c135c868b46de4a27845abe94af6122", size = 4321719, upload-time = "2026-06-12T20:02:52.611Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a7/f5/8f571d7e27c55bce9f76f026143bcb1e040a4233149ecca0bea5fa5dd5f7/cryptography-49.0.0-cp314-cp314t-manylinux_2_34_aarch64.whl", hash = "sha256:b20133d204d2bb56ba047642199603876c872026ca53e79c35b83772ab2cc505", size = 4685209, upload-time = "2026-06-12T20:02:07.282Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e7/84/0e27016a6fc5a0886f797018b26aa42f40c09a82332bff77822a451deaaa/cryptography-49.0.0-cp314-cp314t-manylinux_2_34_ppc64le.whl", hash = "sha256:b970c6da94d5bb18629db453d14f2a1300f6bf59b61e9b82377931ef95504866", size = 5246285, upload-time = "2026-06-12T20:01:32.439Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/11/2d/5e1fb307cb5931881516b464c98774b3f2c36b5d4bb9a2830253cf553cad/cryptography-49.0.0-cp314-cp314t-manylinux_2_34_x86_64.whl", hash = "sha256:d8ecde755e2e91bf773fc94e8c9d730cd7f2007004cb492263a794ec3899a1c8", size = 4730441, upload-time = "2026-06-12T20:02:01.469Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e4/c0/bff5a02ee731d207d6a1ed51732549d8c53d2bc8da1d10ec6f2844201d68/cryptography-49.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e3fb64c420688e5319ae25113a354015abbd8dffbfbc41781a1ea66fc7622ac3", size = 4815869, upload-time = "2026-06-12T20:01:36.574Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b9/26/814681d14248d95d73d5c3eea0c39a94eb8302df966f670a2c60de90974b/cryptography-49.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:32703d93296f5c1f4b53349ad3a250c2cae0fdecd3a3dd5d47e616d8d616af27", size = 4960948, upload-time = "2026-06-12T20:02:18.688Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4c/fe/93ecac273d3738939d023612ad12cca9a3740a5345d69fda04134c43fd96/cryptography-49.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:33cd0565932807baddb67b96dbee92f2c374b5c89dee09fd74079aeb8c8dba61", size = 3799153, upload-time = "2026-06-12T20:01:39.059Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/19/2a/5bb823f5bedcf80718cea7fbc95ec5515cca3769633c4b01a32be7f30e7c/cryptography-49.0.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:ec5e529fb80935c94fe7b729f9972b50e351a0e6b50aa294fd5cabb109fcc29a", size = 4025947, upload-time = "2026-06-12T20:01:25.745Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3d/df/40577043ca124e17012f408ddddaeb213b856336ac82ddb3bc915f39e29f/cryptography-49.0.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f78ff2c9ed8dc2d036b0f4d640e22522213d047c1b14e61205a7e55c80a494d4", size = 4692429, upload-time = "2026-06-12T20:01:53.628Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2c/99/2d13299eb3dd27b02dcfaafcc91d6b5cb3329f7cbd6d8f51921acd566c1a/cryptography-49.0.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:35b151772baff2c74cba7fa290ceaff4c3b11c0c881eb93eb5dbc05a7cfbba18", size = 4700968, upload-time = "2026-06-12T20:02:45.383Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a5/4d/9c0cd02f95e2602dd5e563da149ee0830abef3537be8b34dc56281ebe27a/cryptography-49.0.0-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:0f21641cf4b30fca7aee061ced0ec7ad7b073518088b7c9969a297c0ae796c69", size = 4697758, upload-time = "2026-06-12T20:01:41.13Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/24/01/186c825898477d77e2324d5360fefe622ff1d8d1963ec0554e2cada8ec77/cryptography-49.0.0-cp39-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:9e82dcc8e56052715fb18b2429e3bca4823b1629136a2084fc45a9a5cecb9b64", size = 5298863, upload-time = "2026-06-12T20:02:24.579Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b8/7b/62cbbab75d0659865bf0273790031544a0b16c8072d258f9428dcd8190dc/cryptography-49.0.0-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:6f2debedf9ca60cf1d5bd466475638af5130f89965605cd818484d19987d3a21", size = 4735983, upload-time = "2026-06-12T20:01:50.14Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6c/72/3e798c064bc39e471008075d0f9bc9daf77a80879c092e4a8e170c585ed4/cryptography-49.0.0-cp39-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:8c25ceb16df5b9435f3f6a9829204985b0e0cbee3b48aacd432c7d2c850b44d9", size = 4334173, upload-time = "2026-06-12T20:01:44.743Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f0/ee/6fca21d1ac73e06f8bef71940abfd4d2f6472b4bca284d770f32bd4086f6/cryptography-49.0.0-cp39-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:28d8b15e6275f12c8a207dc309dfa957903c927d08d0cc937ee3f63f200693cc", size = 4697298, upload-time = "2026-06-12T20:02:20.918Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/67/d0/a5fcd3515f0bae49a7b6d0413cc1bdccdcc1fc0047037a0d480642cdc5d6/cryptography-49.0.0-cp39-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:6fc361c34fb6aac015ce19435876635e5c6d21db31998b0920f675f131e043b8", size = 5254338, upload-time = "2026-06-12T20:02:22.737Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a0/84/84fe36f19caf857d61cb7fc9c63035a47ffabd84ea12d1d393148efa3615/cryptography-49.0.0-cp39-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:2400ef9c9e2299a25614eb1dea3db54a69b1349efd043bfac9c67630d136df36", size = 4735650, upload-time = "2026-06-12T20:02:41.389Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6c/a0/db537264e234f7273a73ec020873d6d6b39dfd8a53db78b550ca8320440e/cryptography-49.0.0-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:67e1d20ad9ef3a563c59ef22e7a8a0b8210bd26604369ea4a30a7c66aefe504e", size = 4834820, upload-time = "2026-06-12T20:01:51.847Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/93/77/8df9eb486495979bccecd1062e2eaf435250e84437040295b57d09048b0b/cryptography-49.0.0-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:42b0684e0e40cf26122427802486f6d93aea593612603a94fbf260c7eb1e9c1b", size = 4967968, upload-time = "2026-06-12T20:02:12.524Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c2/e6/f60198ea8d9dfa15fff9ed4ca02ce362f6eadd9ba757dcc50634c4257b63/cryptography-49.0.0-cp39-abi3-win_amd64.whl", hash = "sha256:026ac7423e6fa66872d3bf889be5974507da3944f866f704fa200eadacd00001", size = 3785547, upload-time = "2026-06-12T20:02:26.847Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/63/d3/4a83af35d65e3fad632c926fad684c193ea4398569ccb0bbbc7fe8f5dc9a/cryptography-49.0.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:fc1e275c2f1d97b1a6450b8b0ea3ebfa6e087a611c2b26cb2404d48588abab7b", size = 3993685, upload-time = "2026-06-12T20:02:14.883Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d6/a7/f9dac0ab7f80368c56993a7bf638ef9935f825c91902798481fac0898138/cryptography-49.0.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:c83782480a4a9da4d0feb51950131ba32e12e70813848b3343f6e18c28a66838", size = 4676239, upload-time = "2026-06-12T20:02:28.793Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d7/70/2ba3769dd0ae167e2f33dfa9592d45db6ff9a61d62ca1a5b3d1bdd09068f/cryptography-49.0.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:b39efa323140595abd3ecca8529d321ae50f55f3aa3ba9cc81ea56a6011953d5", size = 4715584, upload-time = "2026-06-12T20:01:27.495Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/94/64/2923570ac1c0bd3a737aa366ac3abbbbde273042308b8cde95e2364a6e6a/cryptography-49.0.0-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl", hash = "sha256:b47db11c2c3525083296069b98ac5221907455e989ae0c2e3008bde851921615", size = 4675885, upload-time = "2026-06-12T20:01:55.49Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ab/f8/614dc7e051418cfe53d55173c1e24c6b0085e89996fe90508c2fdf769aef/cryptography-49.0.0-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl", hash = "sha256:084ef1af862eb07ec46d25f68689f2102a9fc0e05ce7b80f14f5fe51e4eef0f6", size = 4715449, upload-time = "2026-06-12T20:02:05.469Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/aa/50/a9caea39ad19c431c1a3f8a31114df65b260cdfe67786b6c7e7c040c4c44/cryptography-49.0.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:be9fcb48a55f023493482827d4f459bd263cc20efde64f204b97c123201850c6", size = 3783731, upload-time = "2026-06-12T20:02:43.319Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -987,6 +993,19 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/8a/0e/97c33bf5009bdbac74fd2beace167cab3f978feb69cc36f1ef79360d6c4e/exceptiongroup-1.3.1-py3-none-any.whl", hash = "sha256:a7a39a3bd276781e98394987d3a5701d0c4edffb633bb7a5144577f82c773598", size = 16740, upload-time = "2025-11-21T23:01:53.443Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "falkordb"
|
||||
version = "1.6.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "python-dateutil" },
|
||||
{ name = "redis" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/c8/3a/58da510e5800a5cdbf9591111e4287cbf68b475bf074db12a94e5db8bcea/falkordb-1.6.1.tar.gz", hash = "sha256:bbef448a0b43e00ff3062bd6201368618d7b36e969d16ba71e8b8e3fa90873d4", size = 103185, upload-time = "2026-04-28T13:24:44.524Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/90/02/1cf9cef72228ca2b2776b4ed0cb2645298ddcc57c1fe2c545cd46bc11eae/falkordb-1.6.1-py3-none-any.whl", hash = "sha256:cf51caeb433c04db303de5967a0c2590675fcc0354e80997870b1e0497d30c34", size = 37802, upload-time = "2026-04-28T13:24:45.677Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "faster-whisper"
|
||||
version = "1.2.1"
|
||||
@@ -1131,7 +1150,7 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "graphifyy"
|
||||
version = "0.8.37"
|
||||
version = "0.8.42"
|
||||
source = { editable = "." }
|
||||
dependencies = [
|
||||
{ name = "networkx", version = "3.4.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
|
||||
@@ -1171,6 +1190,7 @@ dependencies = [
|
||||
all = [
|
||||
{ name = "anthropic" },
|
||||
{ name = "boto3" },
|
||||
{ name = "falkordb" },
|
||||
{ name = "faster-whisper", marker = "python_full_version >= '3.11'" },
|
||||
{ name = "graspologic", marker = "python_full_version < '3.13'" },
|
||||
{ name = "jieba" },
|
||||
@@ -1202,6 +1222,9 @@ chinese = [
|
||||
dm = [
|
||||
{ name = "tree-sitter-dm" },
|
||||
]
|
||||
falkordb = [
|
||||
{ name = "falkordb" },
|
||||
]
|
||||
gemini = [
|
||||
{ name = "openai" },
|
||||
{ name = "tiktoken" },
|
||||
@@ -1284,6 +1307,8 @@ requires-dist = [
|
||||
{ name = "anthropic", marker = "extra == 'anthropic'" },
|
||||
{ name = "boto3", marker = "extra == 'all'" },
|
||||
{ name = "boto3", marker = "extra == 'bedrock'" },
|
||||
{ name = "falkordb", marker = "extra == 'all'" },
|
||||
{ name = "falkordb", marker = "extra == 'falkordb'" },
|
||||
{ name = "faster-whisper", marker = "python_full_version >= '3.11' and extra == 'all'" },
|
||||
{ name = "faster-whisper", marker = "python_full_version >= '3.11' and extra == 'video'" },
|
||||
{ name = "graspologic", marker = "python_full_version < '3.13' and extra == 'all'" },
|
||||
@@ -1311,8 +1336,8 @@ requires-dist = [
|
||||
{ name = "openpyxl", marker = "extra == 'google'" },
|
||||
{ name = "openpyxl", marker = "extra == 'office'" },
|
||||
{ name = "psycopg", extras = ["binary"], marker = "extra == 'postgres'" },
|
||||
{ name = "pypdf", marker = "extra == 'all'" },
|
||||
{ name = "pypdf", marker = "extra == 'pdf'" },
|
||||
{ name = "pypdf", marker = "extra == 'all'", specifier = ">=6.12.0" },
|
||||
{ name = "pypdf", marker = "extra == 'pdf'", specifier = ">=6.12.0" },
|
||||
{ name = "python-docx", marker = "extra == 'all'" },
|
||||
{ name = "python-docx", marker = "extra == 'office'" },
|
||||
{ name = "rapidfuzz", specifier = ">=3.0" },
|
||||
@@ -1320,44 +1345,44 @@ requires-dist = [
|
||||
{ name = "tiktoken", marker = "extra == 'gemini'" },
|
||||
{ name = "tiktoken", marker = "extra == 'kimi'" },
|
||||
{ name = "tiktoken", marker = "extra == 'openai'" },
|
||||
{ name = "tree-sitter", specifier = ">=0.23.0" },
|
||||
{ name = "tree-sitter-bash" },
|
||||
{ name = "tree-sitter-c" },
|
||||
{ name = "tree-sitter-c-sharp" },
|
||||
{ name = "tree-sitter-cpp" },
|
||||
{ name = "tree-sitter", specifier = ">=0.23.0,<0.26" },
|
||||
{ name = "tree-sitter-bash", specifier = ">=0.23,<0.27" },
|
||||
{ name = "tree-sitter-c", specifier = ">=0.23,<0.25" },
|
||||
{ name = "tree-sitter-c-sharp", specifier = ">=0.23,<0.25" },
|
||||
{ name = "tree-sitter-cpp", specifier = ">=0.23,<0.25" },
|
||||
{ name = "tree-sitter-dm", marker = "extra == 'all'" },
|
||||
{ name = "tree-sitter-dm", marker = "extra == 'dm'" },
|
||||
{ name = "tree-sitter-elixir" },
|
||||
{ name = "tree-sitter-fortran" },
|
||||
{ name = "tree-sitter-go" },
|
||||
{ name = "tree-sitter-groovy" },
|
||||
{ name = "tree-sitter-elixir", specifier = ">=0.3,<0.5" },
|
||||
{ name = "tree-sitter-fortran", specifier = ">=0.6,<0.8" },
|
||||
{ name = "tree-sitter-go", specifier = ">=0.23,<0.26" },
|
||||
{ name = "tree-sitter-groovy", specifier = ">=0.1,<0.3" },
|
||||
{ name = "tree-sitter-hcl", marker = "extra == 'all'" },
|
||||
{ name = "tree-sitter-hcl", marker = "extra == 'terraform'" },
|
||||
{ name = "tree-sitter-java" },
|
||||
{ name = "tree-sitter-javascript" },
|
||||
{ name = "tree-sitter-json" },
|
||||
{ name = "tree-sitter-julia" },
|
||||
{ name = "tree-sitter-kotlin" },
|
||||
{ name = "tree-sitter-lua" },
|
||||
{ name = "tree-sitter-objc" },
|
||||
{ name = "tree-sitter-php" },
|
||||
{ name = "tree-sitter-powershell" },
|
||||
{ name = "tree-sitter-python" },
|
||||
{ name = "tree-sitter-ruby" },
|
||||
{ name = "tree-sitter-rust" },
|
||||
{ name = "tree-sitter-scala" },
|
||||
{ name = "tree-sitter-java", specifier = ">=0.23,<0.25" },
|
||||
{ name = "tree-sitter-javascript", specifier = ">=0.23,<0.26" },
|
||||
{ name = "tree-sitter-json", specifier = ">=0.23,<0.26" },
|
||||
{ name = "tree-sitter-julia", specifier = ">=0.23,<0.25" },
|
||||
{ name = "tree-sitter-kotlin", specifier = ">=1.0,<2.0" },
|
||||
{ name = "tree-sitter-lua", specifier = ">=0.2,<0.6" },
|
||||
{ name = "tree-sitter-objc", specifier = ">=3.0,<4.0" },
|
||||
{ name = "tree-sitter-php", specifier = ">=0.23,<0.25" },
|
||||
{ name = "tree-sitter-powershell", specifier = ">=0.26,<0.28" },
|
||||
{ name = "tree-sitter-python", specifier = ">=0.23,<0.26" },
|
||||
{ name = "tree-sitter-ruby", specifier = ">=0.23,<0.25" },
|
||||
{ name = "tree-sitter-rust", specifier = ">=0.23,<0.25" },
|
||||
{ name = "tree-sitter-scala", specifier = ">=0.23,<0.27" },
|
||||
{ name = "tree-sitter-sql", marker = "extra == 'all'" },
|
||||
{ name = "tree-sitter-sql", marker = "extra == 'sql'" },
|
||||
{ name = "tree-sitter-swift" },
|
||||
{ name = "tree-sitter-typescript" },
|
||||
{ name = "tree-sitter-verilog" },
|
||||
{ name = "tree-sitter-zig" },
|
||||
{ name = "tree-sitter-swift", specifier = ">=0.7,<0.9" },
|
||||
{ name = "tree-sitter-typescript", specifier = ">=0.23,<0.25" },
|
||||
{ name = "tree-sitter-verilog", specifier = ">=1.0,<2.0" },
|
||||
{ name = "tree-sitter-zig", specifier = ">=1.0,<2.0" },
|
||||
{ name = "watchdog", marker = "extra == 'all'" },
|
||||
{ name = "watchdog", marker = "extra == 'watch'" },
|
||||
{ name = "yt-dlp", marker = "extra == 'all'" },
|
||||
{ name = "yt-dlp", marker = "extra == 'video'" },
|
||||
{ name = "yt-dlp", marker = "extra == 'all'", specifier = ">=2026.6.9" },
|
||||
{ name = "yt-dlp", marker = "extra == 'video'", specifier = ">=2026.6.9" },
|
||||
]
|
||||
provides-extras = ["mcp", "neo4j", "pdf", "watch", "svg", "leiden", "office", "google", "postgres", "video", "kimi", "ollama", "bedrock", "anthropic", "gemini", "openai", "chinese", "sql", "dm", "terraform", "all"]
|
||||
provides-extras = ["mcp", "neo4j", "falkordb", "pdf", "watch", "svg", "leiden", "office", "google", "postgres", "video", "kimi", "ollama", "bedrock", "anthropic", "gemini", "openai", "chinese", "sql", "dm", "terraform", "all"]
|
||||
|
||||
[package.metadata.requires-dev]
|
||||
dev = [
|
||||
@@ -3331,14 +3356,14 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "pyjwt"
|
||||
version = "2.12.1"
|
||||
version = "2.13.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "typing-extensions", marker = "python_full_version < '3.11'" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/c2/27/a3b6e5bf6ff856d2509292e95c8f57f0df7017cf5394921fc4e4ef40308a/pyjwt-2.12.1.tar.gz", hash = "sha256:c74a7a2adf861c04d002db713dd85f84beb242228e671280bf709d765b03672b", size = 102564, upload-time = "2026-03-13T19:27:37.25Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/3b/81/58d0ac84e1ef3a3843791d6954d94c0b33d526c75eeb1efbce9d0a4c4077/pyjwt-2.13.0.tar.gz", hash = "sha256:41571c89ca91598c79e8ef18a2d07367d4810fbbd6f637794879baf1b7703423", size = 107515, upload-time = "2026-05-21T19:54:36.618Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/e5/7a/8dd906bd22e79e47397a61742927f6747fe93242ef86645ee9092e610244/pyjwt-2.12.1-py3-none-any.whl", hash = "sha256:28ca37c070cad8ba8cd9790cd940535d40274d22f80ab87f3ac6a713e6e8454c", size = 29726, upload-time = "2026-03-13T19:27:35.677Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a3/5e/ecf12fdb62546d64385c158514e9b2b671f7832108ef2ecd2020ce0af2d1/pyjwt-2.13.0-py3-none-any.whl", hash = "sha256:66adcc2aff09b3f1bbd95fc1e1577df8ac8723c978552fd43304c8a290ac5728", size = 31274, upload-time = "2026-05-21T19:54:35.362Z" },
|
||||
]
|
||||
|
||||
[package.optional-dependencies]
|
||||
@@ -3375,14 +3400,14 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "pypdf"
|
||||
version = "6.11.0"
|
||||
version = "6.13.3"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "typing-extensions", marker = "python_full_version < '3.11'" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/bf/58/6dd97d78a4b17a7a6b9d1c6ad23895abc41f0fdc49c553cc05bdfdcc36d0/pypdf-6.11.0.tar.gz", hash = "sha256:062b51c81b0910e6d2755e99e1c5547a0a23b7d0a32322af66240d8edcfabe87", size = 6453975, upload-time = "2026-05-09T13:26:48.955Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/17/18/9947cc201af9ccf76720fd3347bf4f70eb882ce3fcf4cb05f7443e4cf871/pypdf-6.13.3.tar.gz", hash = "sha256:f3cb822769725f1bac658c406cfc9460399043f3750c2d3e4650e0a85eacabd7", size = 6484063, upload-time = "2026-06-17T15:22:00.898Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/07/b1/68feb7eb3b99f0c020b414234825f4a5d70e0126c18d933770e8c93a35fc/pypdf-6.11.0-py3-none-any.whl", hash = "sha256:769394d5756d5b304c9b6bef88b54b1816b328e7e6fc9254e625529a15ed4ab8", size = 338819, upload-time = "2026-05-09T13:26:46.904Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/94/56/2967e621598987905fb8cdfadd8f8de6b5c68c9351f0523c4df8409f28f1/pypdf-6.13.3-py3-none-any.whl", hash = "sha256:c6e3f86afb625791510b02ad5480e94b63970bb957df75d44657c282ecc52224", size = 347288, upload-time = "2026-06-17T15:21:59.512Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -3488,11 +3513,11 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "python-multipart"
|
||||
version = "0.0.28"
|
||||
version = "0.0.32"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/82/54/a85eb421fbdd5007bc5af39d0f4ed9fa609e0fedbfdc2adcf0b34526870e/python_multipart-0.0.28.tar.gz", hash = "sha256:8550da197eac0f7ab748961fc9509b999fa2662ea25cef857f05249f6893c0f8", size = 45314, upload-time = "2026-05-10T11:05:16.596Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/5b/42/55c32bb9b12693c092ad250a0e82edb5b31ddeda6eb772de5f308b3804ad/python_multipart-0.0.32.tar.gz", hash = "sha256:be54b7f3fa167bb83e4fcd936b887b708f4e57fe75911c02aebf53efaf8d938e", size = 46881, upload-time = "2026-06-04T16:18:58.647Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/f3/a2/43bbc5860b5034e2af4ef99a0e04d726ff329c43e192ef3abaa8d7ecfce5/python_multipart-0.0.28-py3-none-any.whl", hash = "sha256:10faac07eb966c3f48dc415f9dee46c04cb10d58d30a35677db8027c825ed9b6", size = 29438, upload-time = "2026-05-10T11:05:15.052Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e1/04/e8135ebd1ad02c56ec633277529b2602ff99ff634be76cdba5744cf554fd/python_multipart-0.0.32-py3-none-any.whl", hash = "sha256:ff6d3f776f16878c894e52e107296ffc890e913c611b1a4ec6c44e2821fe2e23", size = 30042, upload-time = "2026-06-04T16:18:57.319Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -3680,6 +3705,18 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/aa/b5/363906b1064fc6fe611783a61764927bbd91919aaaabe8cba82151ca93ef/rapidfuzz-3.14.5-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:dfef96543ced67d9513a422755db422ae1dc34dade0a1485e0b43e7342ed3ebf", size = 1509889, upload-time = "2026-04-07T11:16:28.487Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "redis"
|
||||
version = "8.0.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "async-timeout", marker = "python_full_version < '3.11.3'" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/53/ae/ed461cca5780b5fc8b9fe8ca0ed98d89508645fb9d880c24cc42c087678f/redis-8.0.0.tar.gz", hash = "sha256:a00c5355432051ac14e593b8b197fc76c887ee12d55a0984f69328a1115fdc49", size = 5101591, upload-time = "2026-05-28T12:45:13.5Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/27/e3/b519734372d305bd547534a9f32e4ce9f98552af753dce72cf3483a0ff0b/redis-8.0.0-py3-none-any.whl", hash = "sha256:c938c18338585009f0bc310f4c7e4e4b4d37639356c4ac072cedf3af570c8dc7", size = 499870, upload-time = "2026-05-28T12:45:11.697Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "referencing"
|
||||
version = "0.37.0"
|
||||
@@ -5350,11 +5387,11 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "yt-dlp"
|
||||
version = "2026.3.17"
|
||||
version = "2026.6.9"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/8b/34/7c6b4e3f89cb6416d2cd7ab6dab141a1df97ab0fb22d15816db2c92148c9/yt_dlp-2026.3.17.tar.gz", hash = "sha256:ba7aa31d533f1ffccfe70e421596d7ca8ff0bf1398dc6bb658b7d9dec057d2c9", size = 3119221, upload-time = "2026-03-17T23:43:00.244Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/88/a4/1b0979d28f87774bb67fbbc66bce44f9dd1aa0e547a99e22985fac945c33/yt_dlp-2026.6.9.tar.gz", hash = "sha256:d50fcb95f48d61bedde33e408c1881d4c279e51c31354a599ce09e96ba0f4b86", size = 3030590, upload-time = "2026-06-09T23:27:14.831Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/cd/13/5093bcb954878e50f7217fd2ab94282b53934022e4e4a03265582da83bf5/yt_dlp-2026.3.17-py3-none-any.whl", hash = "sha256:32992db94303a8a5d211a183f2174834fe7f8c29d83ed2e7a324eae97a8f26d8", size = 3315134, upload-time = "2026-03-17T23:42:57.863Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f3/ee/188a3dadf9dfdac713243521f919feca1cd091d4358c9ea7e8ebb710a7cc/yt_dlp-2026.6.9-py3-none-any.whl", hash = "sha256:442ba4c75724b9496144c8434b617962ee08d0ee7c26ec663848fe9b78d5a3e4", size = 3169035, upload-time = "2026-06-09T23:27:12.58Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
||||
Reference in new issue
Block a user