brownfield-cartographer 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- brownfield_cartographer-0.3.0/.env.example +23 -0
- brownfield_cartographer-0.3.0/.gitattributes +7 -0
- brownfield_cartographer-0.3.0/.github/ISSUE_TEMPLATE/bug_report.yml +56 -0
- brownfield_cartographer-0.3.0/.github/ISSUE_TEMPLATE/config.yml +5 -0
- brownfield_cartographer-0.3.0/.github/ISSUE_TEMPLATE/feature_request.yml +32 -0
- brownfield_cartographer-0.3.0/.github/dependabot.yml +19 -0
- brownfield_cartographer-0.3.0/.github/pull_request_template.md +20 -0
- brownfield_cartographer-0.3.0/.github/workflows/ci.yml +50 -0
- brownfield_cartographer-0.3.0/.github/workflows/release.yml +77 -0
- brownfield_cartographer-0.3.0/.gitignore +213 -0
- brownfield_cartographer-0.3.0/.python-version +1 -0
- brownfield_cartographer-0.3.0/CHANGELOG.md +59 -0
- brownfield_cartographer-0.3.0/CODE_OF_CONDUCT.md +84 -0
- brownfield_cartographer-0.3.0/CONTRIBUTING.md +95 -0
- brownfield_cartographer-0.3.0/LICENSE +202 -0
- brownfield_cartographer-0.3.0/PKG-INFO +204 -0
- brownfield_cartographer-0.3.0/README.md +157 -0
- brownfield_cartographer-0.3.0/SECURITY.md +37 -0
- brownfield_cartographer-0.3.0/docs/DBT.md +58 -0
- brownfield_cartographer-0.3.0/docs/MCP.md +161 -0
- brownfield_cartographer-0.3.0/examples/README.md +22 -0
- brownfield_cartographer-0.3.0/examples/sample_repo/consumer.py +5 -0
- brownfield_cartographer-0.3.0/examples/sample_repo/customer_totals.sql +4 -0
- brownfield_cartographer-0.3.0/examples/sample_repo/orders.sql +3 -0
- brownfield_cartographer-0.3.0/examples/sample_repo/producer.py +3 -0
- brownfield_cartographer-0.3.0/notes.md +27 -0
- brownfield_cartographer-0.3.0/pyproject.toml +94 -0
- brownfield_cartographer-0.3.0/scripts/check_codex_config.py +62 -0
- brownfield_cartographer-0.3.0/scripts/check_wheel.py +218 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/__init__.py +1 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/agents/__init__.py +1 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/agents/archivist.py +521 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/agents/hydrologist.py +454 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/agents/navigator.py +583 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/agents/semanticist.py +895 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/agents/surveyor.py +416 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/analyzers/__init__.py +1 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/analyzers/dag_config_parser.py +217 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/analyzers/dbt_manifest.py +113 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/analyzers/sql_lineage.py +83 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/analyzers/tree_sitter_analyzer.py +333 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/cli.py +321 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/graph/__init__.py +1 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/graph/knowledge_graph.py +492 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/mcp_server.py +69 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/models/__init__.py +29 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/models/schemas.py +207 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/orchestrator.py +226 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/persistence.py +23 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/py.typed +0 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/query_api.py +290 -0
- brownfield_cartographer-0.3.0/src/brownfield_cartographer/scanner.py +196 -0
- brownfield_cartographer-0.3.0/tests/__init__.py +0 -0
- brownfield_cartographer-0.3.0/tests/conftest.py +4 -0
- brownfield_cartographer-0.3.0/tests/test_dbt_manifest.py +178 -0
- brownfield_cartographer-0.3.0/tests/test_foundation.py +315 -0
- brownfield_cartographer-0.3.0/tests/test_hydrologist.py +267 -0
- brownfield_cartographer-0.3.0/tests/test_mcp.py +56 -0
- brownfield_cartographer-0.3.0/tests/test_queries.py +157 -0
- brownfield_cartographer-0.3.0/tests/test_repository_outputs.py +54 -0
- brownfield_cartographer-0.3.0/tests/test_semanticist.py +175 -0
- brownfield_cartographer-0.3.0/uv.lock +2335 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Optional: legacy LLM enrichment only (`uv sync --extra llm`).
|
|
2
|
+
#
|
|
3
|
+
# Core analysis, CLI queries, and the MCP server never read these variables and
|
|
4
|
+
# never call a model. They apply only to programmatic use of
|
|
5
|
+
# `Orchestrator(enable_llm=True)`. Export them in your shell or load this file
|
|
6
|
+
# yourself; the CLI does not read `.env`. Enabling enrichment sends source
|
|
7
|
+
# excerpts to the configured provider.
|
|
8
|
+
|
|
9
|
+
# Providers (first configured wins)
|
|
10
|
+
# OPENAI_API_KEY=
|
|
11
|
+
# GEMINI_API_KEY=
|
|
12
|
+
# OPENROUTER_API_KEY=
|
|
13
|
+
# OLLAMA_BASE_URL=http://localhost:11434
|
|
14
|
+
|
|
15
|
+
# Model tiers: fast for bulk purpose extraction, strong for synthesis.
|
|
16
|
+
# LLM_MODEL_FAST=
|
|
17
|
+
# LLM_MODEL_STRONG=
|
|
18
|
+
# LLM_MODEL= # overrides both tiers
|
|
19
|
+
|
|
20
|
+
# Limits
|
|
21
|
+
# SEMANTICIST_MAX_MODULES=60
|
|
22
|
+
# SEMANTICIST_MAX_SECONDS=900
|
|
23
|
+
# SEMANTICIST_MAX_CONSECUTIVE_FAILURES=5
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Incorrect analysis, a crash, or behavior that contradicts the docs
|
|
3
|
+
labels: [bug]
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
Report security issues privately; see SECURITY.md.
|
|
9
|
+
Please do not paste proprietary source code. A minimal repository that reproduces the problem is ideal.
|
|
10
|
+
- type: textarea
|
|
11
|
+
id: what-happened
|
|
12
|
+
attributes:
|
|
13
|
+
label: What happened?
|
|
14
|
+
description: Include the exact command or MCP tool call and its output.
|
|
15
|
+
validations:
|
|
16
|
+
required: true
|
|
17
|
+
- type: textarea
|
|
18
|
+
id: expected
|
|
19
|
+
attributes:
|
|
20
|
+
label: What did you expect?
|
|
21
|
+
description: For analysis results, name the expected edge, dataset, or source location.
|
|
22
|
+
validations:
|
|
23
|
+
required: true
|
|
24
|
+
- type: textarea
|
|
25
|
+
id: reproduce
|
|
26
|
+
attributes:
|
|
27
|
+
label: Minimal reproduction
|
|
28
|
+
description: Files (or a public repository and commit) plus commands that reproduce the problem.
|
|
29
|
+
render: text
|
|
30
|
+
- type: dropdown
|
|
31
|
+
id: interface
|
|
32
|
+
attributes:
|
|
33
|
+
label: Interface
|
|
34
|
+
options: [CLI, MCP server, Python API, Other]
|
|
35
|
+
validations:
|
|
36
|
+
required: true
|
|
37
|
+
- type: input
|
|
38
|
+
id: version
|
|
39
|
+
attributes:
|
|
40
|
+
label: Cartographer version or commit
|
|
41
|
+
placeholder: output of `cartographer --version`, or a commit SHA
|
|
42
|
+
validations:
|
|
43
|
+
required: true
|
|
44
|
+
- type: input
|
|
45
|
+
id: environment
|
|
46
|
+
attributes:
|
|
47
|
+
label: OS and Python version
|
|
48
|
+
placeholder: Ubuntu 24.04, Python 3.12.7
|
|
49
|
+
validations:
|
|
50
|
+
required: true
|
|
51
|
+
- type: textarea
|
|
52
|
+
id: summary
|
|
53
|
+
attributes:
|
|
54
|
+
label: analysis_summary.json (status and diagnostics)
|
|
55
|
+
description: The status, coverage, and diagnostics sections are usually enough.
|
|
56
|
+
render: json
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: Propose a capability, analyzer, or query
|
|
3
|
+
labels: [enhancement]
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
Cartographer is local-first and deterministic: core features must work offline, without API keys or model calls.
|
|
9
|
+
- type: textarea
|
|
10
|
+
id: problem
|
|
11
|
+
attributes:
|
|
12
|
+
label: Problem
|
|
13
|
+
description: What are you trying to learn about a repository, and what do you do today?
|
|
14
|
+
validations:
|
|
15
|
+
required: true
|
|
16
|
+
- type: textarea
|
|
17
|
+
id: proposal
|
|
18
|
+
attributes:
|
|
19
|
+
label: Proposed behavior
|
|
20
|
+
description: Example command, MCP tool, or output. For new analyzers, include a small sample input and the expected relationships.
|
|
21
|
+
validations:
|
|
22
|
+
required: true
|
|
23
|
+
- type: textarea
|
|
24
|
+
id: alternatives
|
|
25
|
+
attributes:
|
|
26
|
+
label: Alternatives considered
|
|
27
|
+
- type: checkboxes
|
|
28
|
+
id: contribute
|
|
29
|
+
attributes:
|
|
30
|
+
label: Contribution
|
|
31
|
+
options:
|
|
32
|
+
- label: I would be willing to open a pull request for this.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: github-actions
|
|
4
|
+
directory: /
|
|
5
|
+
schedule:
|
|
6
|
+
interval: monthly
|
|
7
|
+
commit-message:
|
|
8
|
+
prefix: chore
|
|
9
|
+
- package-ecosystem: uv
|
|
10
|
+
directory: /
|
|
11
|
+
schedule:
|
|
12
|
+
interval: monthly
|
|
13
|
+
commit-message:
|
|
14
|
+
prefix: chore
|
|
15
|
+
groups:
|
|
16
|
+
# Major versions arrive as individual pull requests.
|
|
17
|
+
python-dependencies:
|
|
18
|
+
patterns: ["*"]
|
|
19
|
+
update-types: [minor, patch]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
## Problem
|
|
2
|
+
|
|
3
|
+
<!-- What is wrong or missing? Link the issue if there is one. -->
|
|
4
|
+
|
|
5
|
+
## Change
|
|
6
|
+
|
|
7
|
+
<!-- What behavior changes for CLI, MCP, or Python API users? -->
|
|
8
|
+
|
|
9
|
+
## Validation
|
|
10
|
+
|
|
11
|
+
<!-- Commands run and new or updated tests. -->
|
|
12
|
+
|
|
13
|
+
- [ ] `uv run --no-sync pytest -q`
|
|
14
|
+
- [ ] `uv run --no-sync ruff check src tests scripts`
|
|
15
|
+
- [ ] Tests cover extraction and query results, including evidence or incomplete-analysis behavior where relevant
|
|
16
|
+
- [ ] `CHANGELOG.md` updated under `Unreleased` for user-visible changes
|
|
17
|
+
|
|
18
|
+
## Limitations
|
|
19
|
+
|
|
20
|
+
<!-- Known gaps, unsupported cases, or follow-up work. -->
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [main]
|
|
6
|
+
push:
|
|
7
|
+
branches: [main, 'feat/**', 'fix/**', 'docs/**', 'chore/**']
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
core:
|
|
14
|
+
strategy:
|
|
15
|
+
fail-fast: false
|
|
16
|
+
matrix:
|
|
17
|
+
os: [ubuntu-latest, windows-latest]
|
|
18
|
+
python: ['3.12', '3.13']
|
|
19
|
+
runs-on: ${{ matrix.os }}
|
|
20
|
+
env:
|
|
21
|
+
PYTHONUTF8: '1'
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v7
|
|
24
|
+
with:
|
|
25
|
+
persist-credentials: false
|
|
26
|
+
- uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
|
|
27
|
+
with:
|
|
28
|
+
python-version: ${{ matrix.python }}
|
|
29
|
+
- run: uv sync --frozen
|
|
30
|
+
- run: uv run --no-sync pytest -q
|
|
31
|
+
- run: uv run --no-sync ruff check src tests scripts
|
|
32
|
+
- run: uv run --no-sync mypy -p brownfield_cartographer.scanner -p brownfield_cartographer.persistence -p brownfield_cartographer.query_api --follow-imports=skip
|
|
33
|
+
- run: uv run --no-sync cartographer --help
|
|
34
|
+
- run: uv build
|
|
35
|
+
- if: matrix.python != '3.12'
|
|
36
|
+
run: uv run --no-sync python scripts/check_wheel.py
|
|
37
|
+
- if: matrix.python == '3.12'
|
|
38
|
+
run: uv run --no-sync python scripts/check_wheel.py --mcp
|
|
39
|
+
|
|
40
|
+
legacy-extra:
|
|
41
|
+
runs-on: ubuntu-latest
|
|
42
|
+
steps:
|
|
43
|
+
- uses: actions/checkout@v7
|
|
44
|
+
with:
|
|
45
|
+
persist-credentials: false
|
|
46
|
+
- uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
|
|
47
|
+
with:
|
|
48
|
+
python-version: '3.12'
|
|
49
|
+
- run: uv sync --frozen --extra llm --extra mcp
|
|
50
|
+
- run: uv run --no-sync pytest -q
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags: ['v*']
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
env:
|
|
14
|
+
PYTHONUTF8: '1'
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
17
|
+
with:
|
|
18
|
+
persist-credentials: false
|
|
19
|
+
- uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
|
|
20
|
+
with:
|
|
21
|
+
python-version: '3.12'
|
|
22
|
+
- name: Check tag matches project version
|
|
23
|
+
run: |
|
|
24
|
+
version=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
|
|
25
|
+
test "v$version" = "$GITHUB_REF_NAME" || { echo "Tag $GITHUB_REF_NAME does not match version $version"; exit 1; }
|
|
26
|
+
- name: Extract release notes from CHANGELOG.md
|
|
27
|
+
run: |
|
|
28
|
+
version="${GITHUB_REF_NAME#v}"
|
|
29
|
+
awk -v heading="## [$version]" 'index($0, heading) == 1 {found=1; next} found && /^## \[/ {exit} found' CHANGELOG.md > notes.md
|
|
30
|
+
grep -q '[^[:space:]]' notes.md || { echo "No CHANGELOG.md section for $version"; exit 1; }
|
|
31
|
+
- run: uv sync --frozen
|
|
32
|
+
- run: uv run --no-sync pytest -q
|
|
33
|
+
- run: uv build
|
|
34
|
+
- run: uv run --no-sync python scripts/check_wheel.py --mcp
|
|
35
|
+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
36
|
+
with:
|
|
37
|
+
name: dist
|
|
38
|
+
path: dist/
|
|
39
|
+
if-no-files-found: error
|
|
40
|
+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
41
|
+
with:
|
|
42
|
+
name: release-notes
|
|
43
|
+
path: notes.md
|
|
44
|
+
if-no-files-found: error
|
|
45
|
+
|
|
46
|
+
publish:
|
|
47
|
+
needs: build
|
|
48
|
+
runs-on: ubuntu-latest
|
|
49
|
+
environment:
|
|
50
|
+
name: pypi
|
|
51
|
+
url: https://pypi.org/project/brownfield-cartographer/
|
|
52
|
+
permissions:
|
|
53
|
+
id-token: write
|
|
54
|
+
steps:
|
|
55
|
+
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
56
|
+
with:
|
|
57
|
+
name: dist
|
|
58
|
+
path: dist/
|
|
59
|
+
- uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
|
|
60
|
+
|
|
61
|
+
github-release:
|
|
62
|
+
needs: publish
|
|
63
|
+
runs-on: ubuntu-latest
|
|
64
|
+
permissions:
|
|
65
|
+
contents: write
|
|
66
|
+
steps:
|
|
67
|
+
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
68
|
+
with:
|
|
69
|
+
name: dist
|
|
70
|
+
path: dist/
|
|
71
|
+
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
72
|
+
with:
|
|
73
|
+
name: release-notes
|
|
74
|
+
- name: Create GitHub release
|
|
75
|
+
env:
|
|
76
|
+
GH_TOKEN: ${{ github.token }}
|
|
77
|
+
run: gh release create "$GITHUB_REF_NAME" dist/* --repo "$GITHUB_REPOSITORY" --title "$GITHUB_REF_NAME" --notes-file notes.md --verify-tag
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
#uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
#poetry.lock
|
|
109
|
+
#poetry.toml
|
|
110
|
+
|
|
111
|
+
# pdm
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
113
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
114
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
115
|
+
#pdm.lock
|
|
116
|
+
#pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# pixi
|
|
121
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
122
|
+
#pixi.lock
|
|
123
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
124
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
125
|
+
.pixi
|
|
126
|
+
|
|
127
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
128
|
+
__pypackages__/
|
|
129
|
+
|
|
130
|
+
# Celery stuff
|
|
131
|
+
celerybeat-schedule
|
|
132
|
+
celerybeat.pid
|
|
133
|
+
|
|
134
|
+
# SageMath parsed files
|
|
135
|
+
*.sage.py
|
|
136
|
+
|
|
137
|
+
# Environments
|
|
138
|
+
.env
|
|
139
|
+
.envrc
|
|
140
|
+
.venv
|
|
141
|
+
env/
|
|
142
|
+
venv/
|
|
143
|
+
ENV/
|
|
144
|
+
env.bak/
|
|
145
|
+
venv.bak/
|
|
146
|
+
|
|
147
|
+
# Spyder project settings
|
|
148
|
+
.spyderproject
|
|
149
|
+
.spyproject
|
|
150
|
+
|
|
151
|
+
# Rope project settings
|
|
152
|
+
.ropeproject
|
|
153
|
+
|
|
154
|
+
# mkdocs documentation
|
|
155
|
+
/site
|
|
156
|
+
|
|
157
|
+
# mypy
|
|
158
|
+
.mypy_cache/
|
|
159
|
+
.dmypy.json
|
|
160
|
+
dmypy.json
|
|
161
|
+
|
|
162
|
+
# Pyre type checker
|
|
163
|
+
.pyre/
|
|
164
|
+
|
|
165
|
+
# pytype static type analyzer
|
|
166
|
+
.pytype/
|
|
167
|
+
|
|
168
|
+
# Cython debug symbols
|
|
169
|
+
cython_debug/
|
|
170
|
+
|
|
171
|
+
# PyCharm
|
|
172
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
173
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
174
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
175
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
176
|
+
#.idea/
|
|
177
|
+
|
|
178
|
+
# Abstra
|
|
179
|
+
# Abstra is an AI-powered process automation framework.
|
|
180
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
181
|
+
# Learn more at https://abstra.io/docs
|
|
182
|
+
.abstra/
|
|
183
|
+
|
|
184
|
+
# Visual Studio Code
|
|
185
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
186
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
187
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
188
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
189
|
+
# .vscode/
|
|
190
|
+
|
|
191
|
+
# Ruff stuff:
|
|
192
|
+
.ruff_cache/
|
|
193
|
+
|
|
194
|
+
# PyPI configuration file
|
|
195
|
+
.pypirc
|
|
196
|
+
|
|
197
|
+
# Cursor
|
|
198
|
+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
|
|
199
|
+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
|
|
200
|
+
# refer to https://docs.cursor.com/context/ignore-files
|
|
201
|
+
.cursorignore
|
|
202
|
+
.cursorindexingignore
|
|
203
|
+
|
|
204
|
+
# Marimo
|
|
205
|
+
marimo/_static/
|
|
206
|
+
marimo/_lsp/
|
|
207
|
+
__marimo__/
|
|
208
|
+
|
|
209
|
+
# Routine generated analysis (tracked historical examples remain tracked)
|
|
210
|
+
.cartography/
|
|
211
|
+
guide.md
|
|
212
|
+
/docs/FOUNDATION_MILESTONE.md
|
|
213
|
+
/docs/OPEN_SOURCE_REVIEW.md
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.12
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented here. The format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project uses
|
|
5
|
+
[Semantic Versioning](https://semver.org/spec/v2.0.0.html). Before 1.0, minor
|
|
6
|
+
versions may contain breaking changes.
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.3.0] - 2026-10-12
|
|
11
|
+
|
|
12
|
+
First release published to PyPI as `brownfield-cartographer`.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- `cartographer --version`.
|
|
17
|
+
- Tag-triggered release workflow publishing to PyPI through trusted publishing.
|
|
18
|
+
- Apache-2.0 license, code of conduct, security policy, issue and pull request
|
|
19
|
+
templates, and Dependabot configuration.
|
|
20
|
+
- Package metadata: license, project URLs, keywords, and classifiers.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- The distribution is renamed from `the-brownfield-cartographer` to
|
|
25
|
+
`brownfield-cartographer`, matching the `brownfield_cartographer` import name.
|
|
26
|
+
- The CLI no longer loads a `.env` file. Core analysis never reads API keys.
|
|
27
|
+
- `.env.example` now documents only the optional legacy `llm` extra.
|
|
28
|
+
- Ruff checks pyflakes, pycodestyle, import order, bugbear, and pyupgrade rules.
|
|
29
|
+
|
|
30
|
+
### Removed
|
|
31
|
+
|
|
32
|
+
- Unused `gitpython` and `python-dotenv` core dependencies.
|
|
33
|
+
- The top-level `src` compatibility package and `src/cli.py` shim. Use the
|
|
34
|
+
`cartographer` entry point or `python -m brownfield_cartographer.cli`.
|
|
35
|
+
- Committed `.cartography/` output samples, which contained machine-specific
|
|
36
|
+
paths, the standalone `visualize.html` demo, and `RECONNAISSANCE.md`.
|
|
37
|
+
|
|
38
|
+
## [0.2.0] - untagged
|
|
39
|
+
|
|
40
|
+
### Added
|
|
41
|
+
|
|
42
|
+
- Bounded, ignore-aware repository scanner shared by all analysis stages.
|
|
43
|
+
- Versioned `index.json` with source spans, coverage, and diagnostics.
|
|
44
|
+
- Deterministic `QueryEngine` and `overview`, `find`, `impact`, and `lineage`
|
|
45
|
+
CLI commands with JSON output.
|
|
46
|
+
- Read-only MCP stdio server (`cartographer-mcp`) exposing six query tools.
|
|
47
|
+
- dbt manifest v12 ingestion with artifact provenance.
|
|
48
|
+
- CI across Linux and Windows on Python 3.12 and 3.13, with installed-wheel checks.
|
|
49
|
+
|
|
50
|
+
### Fixed
|
|
51
|
+
|
|
52
|
+
- Import impact now returns reverse dependents; lineage traversal follows only
|
|
53
|
+
lineage relationships.
|
|
54
|
+
- Distinct transformation IDs and statement-specific SQL sources and targets.
|
|
55
|
+
- Failed or partial runs no longer advance the successful checkpoint.
|
|
56
|
+
|
|
57
|
+
[Unreleased]: https://github.com/Sanoy24/the-brownfield-cartographer/compare/v0.3.0...HEAD
|
|
58
|
+
[0.3.0]: https://github.com/Sanoy24/the-brownfield-cartographer/releases/tag/v0.3.0
|
|
59
|
+
[0.2.0]: https://github.com/Sanoy24/the-brownfield-cartographer/tree/6079f70
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
|
|
2
|
+
# Contributor Covenant Code of Conduct
|
|
3
|
+
|
|
4
|
+
## Our Pledge
|
|
5
|
+
|
|
6
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
|
|
7
|
+
|
|
8
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
|
9
|
+
|
|
10
|
+
## Our Standards
|
|
11
|
+
|
|
12
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
|
13
|
+
|
|
14
|
+
* Demonstrating empathy and kindness toward other people
|
|
15
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
|
16
|
+
* Giving and gracefully accepting constructive feedback
|
|
17
|
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
|
18
|
+
* Focusing on what is best not just for us as individuals, but for the overall community
|
|
19
|
+
|
|
20
|
+
Examples of unacceptable behavior include:
|
|
21
|
+
|
|
22
|
+
* The use of sexualized language or imagery, and sexual attention or advances of any kind
|
|
23
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
24
|
+
* Public or private harassment
|
|
25
|
+
* Publishing others' private information, such as a physical or email address, without their explicit permission
|
|
26
|
+
* Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
27
|
+
|
|
28
|
+
## Enforcement Responsibilities
|
|
29
|
+
|
|
30
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
|
31
|
+
|
|
32
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
|
33
|
+
|
|
34
|
+
## Scope
|
|
35
|
+
|
|
36
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
|
37
|
+
|
|
38
|
+
## Enforcement
|
|
39
|
+
|
|
40
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at myonas886@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
|
|
41
|
+
|
|
42
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
|
43
|
+
|
|
44
|
+
## Enforcement Guidelines
|
|
45
|
+
|
|
46
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
|
47
|
+
|
|
48
|
+
### 1. Correction
|
|
49
|
+
|
|
50
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
|
51
|
+
|
|
52
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
|
53
|
+
|
|
54
|
+
### 2. Warning
|
|
55
|
+
|
|
56
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
|
57
|
+
|
|
58
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
|
59
|
+
|
|
60
|
+
### 3. Temporary Ban
|
|
61
|
+
|
|
62
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
|
63
|
+
|
|
64
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
|
65
|
+
|
|
66
|
+
### 4. Permanent Ban
|
|
67
|
+
|
|
68
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
|
69
|
+
|
|
70
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
|
71
|
+
|
|
72
|
+
## Attribution
|
|
73
|
+
|
|
74
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
|
75
|
+
|
|
76
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
|
77
|
+
|
|
78
|
+
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
|
|
79
|
+
|
|
80
|
+
[homepage]: https://www.contributor-covenant.org
|
|
81
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
|
82
|
+
[Mozilla CoC]: https://github.com/mozilla/diversity
|
|
83
|
+
[FAQ]: https://www.contributor-covenant.org/faq
|
|
84
|
+
[translations]: https://www.contributor-covenant.org/translations
|