git-sentinel 0.3.4__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.
- git_sentinel-0.3.4/.github/workflows/ci.yml +57 -0
- git_sentinel-0.3.4/.github/workflows/publish.yml +30 -0
- git_sentinel-0.3.4/.github/workflows/sentinel.yml +32 -0
- git_sentinel-0.3.4/.gitignore +20 -0
- git_sentinel-0.3.4/LICENSE +21 -0
- git_sentinel-0.3.4/PKG-INFO +546 -0
- git_sentinel-0.3.4/README.md +513 -0
- git_sentinel-0.3.4/action.yml +123 -0
- git_sentinel-0.3.4/docs/STRATEGIC_ASSESSMENT_2026-02-10.md +355 -0
- git_sentinel-0.3.4/pyproject.toml +72 -0
- git_sentinel-0.3.4/src/sentinel/__init__.py +3 -0
- git_sentinel-0.3.4/src/sentinel/cli/__init__.py +0 -0
- git_sentinel-0.3.4/src/sentinel/cli/app.py +215 -0
- git_sentinel-0.3.4/src/sentinel/cli/embed.py +120 -0
- git_sentinel-0.3.4/src/sentinel/cli/enrich.py +86 -0
- git_sentinel-0.3.4/src/sentinel/cli/feedback.py +103 -0
- git_sentinel-0.3.4/src/sentinel/cli/hive.py +274 -0
- git_sentinel-0.3.4/src/sentinel/cli/hunt.py +318 -0
- git_sentinel-0.3.4/src/sentinel/cli/mcp_setup.py +94 -0
- git_sentinel-0.3.4/src/sentinel/cli/output.py +23 -0
- git_sentinel-0.3.4/src/sentinel/cli/pr_review.py +143 -0
- git_sentinel-0.3.4/src/sentinel/cli/share.py +93 -0
- git_sentinel-0.3.4/src/sentinel/cli/swarm.py +89 -0
- git_sentinel-0.3.4/src/sentinel/cli/theme.py +75 -0
- git_sentinel-0.3.4/src/sentinel/cli/watch.py +48 -0
- git_sentinel-0.3.4/src/sentinel/core/__init__.py +0 -0
- git_sentinel-0.3.4/src/sentinel/core/analyzer.py +306 -0
- git_sentinel-0.3.4/src/sentinel/core/background.py +188 -0
- git_sentinel-0.3.4/src/sentinel/core/background_worker.py +113 -0
- git_sentinel-0.3.4/src/sentinel/core/concurrent_verifier.py +91 -0
- git_sentinel-0.3.4/src/sentinel/core/config.py +81 -0
- git_sentinel-0.3.4/src/sentinel/core/context.py +188 -0
- git_sentinel-0.3.4/src/sentinel/core/cross_project.py +134 -0
- git_sentinel-0.3.4/src/sentinel/core/embedding_provider.py +152 -0
- git_sentinel-0.3.4/src/sentinel/core/enricher.py +210 -0
- git_sentinel-0.3.4/src/sentinel/core/git.py +205 -0
- git_sentinel-0.3.4/src/sentinel/core/knowledge.py +1092 -0
- git_sentinel-0.3.4/src/sentinel/core/llm_provider.py +240 -0
- git_sentinel-0.3.4/src/sentinel/core/llm_verifier.py +171 -0
- git_sentinel-0.3.4/src/sentinel/core/pr_analyzer.py +146 -0
- git_sentinel-0.3.4/src/sentinel/core/pr_formatter.py +78 -0
- git_sentinel-0.3.4/src/sentinel/core/provider_factory.py +101 -0
- git_sentinel-0.3.4/src/sentinel/core/verifier.py +222 -0
- git_sentinel-0.3.4/src/sentinel/hooks/__init__.py +0 -0
- git_sentinel-0.3.4/src/sentinel/hooks/installer.py +145 -0
- git_sentinel-0.3.4/src/sentinel/mcp/__init__.py +1 -0
- git_sentinel-0.3.4/src/sentinel/mcp/formatters.py +407 -0
- git_sentinel-0.3.4/src/sentinel/mcp/server.py +329 -0
- git_sentinel-0.3.4/src/sentinel/models/__init__.py +0 -0
- git_sentinel-0.3.4/src/sentinel/models/enums.py +64 -0
- git_sentinel-0.3.4/src/sentinel/models/findings.py +97 -0
- git_sentinel-0.3.4/src/sentinel/models/knowledge.py +127 -0
- git_sentinel-0.3.4/tests/__init__.py +0 -0
- git_sentinel-0.3.4/tests/conftest.py +99 -0
- git_sentinel-0.3.4/tests/test_analyzer.py +115 -0
- git_sentinel-0.3.4/tests/test_background.py +145 -0
- git_sentinel-0.3.4/tests/test_cli_init.py +74 -0
- git_sentinel-0.3.4/tests/test_concurrent_verifier.py +221 -0
- git_sentinel-0.3.4/tests/test_context.py +184 -0
- git_sentinel-0.3.4/tests/test_cross_project.py +219 -0
- git_sentinel-0.3.4/tests/test_embedding_provider.py +221 -0
- git_sentinel-0.3.4/tests/test_enricher.py +322 -0
- git_sentinel-0.3.4/tests/test_feedback.py +242 -0
- git_sentinel-0.3.4/tests/test_formatters.py +117 -0
- git_sentinel-0.3.4/tests/test_git.py +67 -0
- git_sentinel-0.3.4/tests/test_hive.py +110 -0
- git_sentinel-0.3.4/tests/test_hunt.py +236 -0
- git_sentinel-0.3.4/tests/test_knowledge.py +714 -0
- git_sentinel-0.3.4/tests/test_llm_provider.py +214 -0
- git_sentinel-0.3.4/tests/test_llm_verifier.py +261 -0
- git_sentinel-0.3.4/tests/test_mcp_formatters.py +528 -0
- git_sentinel-0.3.4/tests/test_mcp_server.py +395 -0
- git_sentinel-0.3.4/tests/test_migrations.py +682 -0
- git_sentinel-0.3.4/tests/test_pr_analyzer.py +354 -0
- git_sentinel-0.3.4/tests/test_pr_review_cli.py +141 -0
- git_sentinel-0.3.4/tests/test_provider_factory.py +131 -0
- git_sentinel-0.3.4/tests/test_swarm.py +74 -0
- git_sentinel-0.3.4/tests/test_verifier.py +154 -0
- git_sentinel-0.3.4/tests/test_watch.py +94 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
python-version: ["3.10", "3.11", "3.12"]
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
20
|
+
uses: actions/setup-python@v5
|
|
21
|
+
with:
|
|
22
|
+
python-version: ${{ matrix.python-version }}
|
|
23
|
+
|
|
24
|
+
- name: Install dependencies
|
|
25
|
+
run: |
|
|
26
|
+
python -m pip install --upgrade pip
|
|
27
|
+
pip install -e ".[dev]"
|
|
28
|
+
|
|
29
|
+
- name: Lint with ruff
|
|
30
|
+
run: ruff check src/ tests/
|
|
31
|
+
|
|
32
|
+
- name: Type check with mypy
|
|
33
|
+
run: mypy src/sentinel/ --ignore-missing-imports
|
|
34
|
+
|
|
35
|
+
- name: Run tests
|
|
36
|
+
run: pytest --cov=sentinel --cov-report=term-missing -q
|
|
37
|
+
|
|
38
|
+
- name: Check coverage
|
|
39
|
+
run: pytest --cov=sentinel --cov-fail-under=85 -q --no-header
|
|
40
|
+
|
|
41
|
+
test-mcp:
|
|
42
|
+
runs-on: ubuntu-latest
|
|
43
|
+
steps:
|
|
44
|
+
- uses: actions/checkout@v4
|
|
45
|
+
|
|
46
|
+
- name: Set up Python
|
|
47
|
+
uses: actions/setup-python@v5
|
|
48
|
+
with:
|
|
49
|
+
python-version: "3.12"
|
|
50
|
+
|
|
51
|
+
- name: Install dependencies with MCP
|
|
52
|
+
run: |
|
|
53
|
+
python -m pip install --upgrade pip
|
|
54
|
+
pip install -e ".[dev,mcp]"
|
|
55
|
+
|
|
56
|
+
- name: Run MCP tests
|
|
57
|
+
run: pytest tests/test_mcp_formatters.py tests/test_mcp_server.py -v
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
id-token: write
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
publish:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
environment: pypi
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
|
|
18
|
+
- name: Set up Python
|
|
19
|
+
uses: actions/setup-python@v5
|
|
20
|
+
with:
|
|
21
|
+
python-version: "3.12"
|
|
22
|
+
|
|
23
|
+
- name: Install build tools
|
|
24
|
+
run: python -m pip install --upgrade pip build
|
|
25
|
+
|
|
26
|
+
- name: Build package
|
|
27
|
+
run: python -m build
|
|
28
|
+
|
|
29
|
+
- name: Publish to PyPI
|
|
30
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: Sentinel PR Review
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [main]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
pull-requests: write
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
review:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
with:
|
|
16
|
+
fetch-depth: 0
|
|
17
|
+
|
|
18
|
+
# Install from local checkout so we dogfood the current code,
|
|
19
|
+
# not whatever is on PyPI. The action's pip install becomes a no-op.
|
|
20
|
+
- name: Set up Python
|
|
21
|
+
uses: actions/setup-python@v5
|
|
22
|
+
with:
|
|
23
|
+
python-version: "3.12"
|
|
24
|
+
|
|
25
|
+
- name: Install from local checkout
|
|
26
|
+
run: pip install -e . --quiet
|
|
27
|
+
|
|
28
|
+
- name: Sentinel PR Review
|
|
29
|
+
uses: ./
|
|
30
|
+
with:
|
|
31
|
+
exit-code: "false"
|
|
32
|
+
post-comment: "true"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Evo Intelligence
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|