tribune-agent 0.1.0a1__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.
- tribune_agent-0.1.0a1/.gitignore +18 -0
- tribune_agent-0.1.0a1/LICENSE +21 -0
- tribune_agent-0.1.0a1/PKG-INFO +171 -0
- tribune_agent-0.1.0a1/README.md +98 -0
- tribune_agent-0.1.0a1/pyproject.toml +95 -0
- tribune_agent-0.1.0a1/src/tribune/__init__.py +3 -0
- tribune_agent-0.1.0a1/src/tribune/cli.py +319 -0
- tribune_agent-0.1.0a1/src/tribune/cost.py +327 -0
- tribune_agent-0.1.0a1/src/tribune/error_format.py +106 -0
- tribune_agent-0.1.0a1/src/tribune/exceptions.py +86 -0
- tribune_agent-0.1.0a1/src/tribune/llm.py +381 -0
- tribune_agent-0.1.0a1/src/tribune/llm_claude_code.py +181 -0
- tribune_agent-0.1.0a1/src/tribune/llm_google.py +131 -0
- tribune_agent-0.1.0a1/src/tribune/llm_ollama.py +98 -0
- tribune_agent-0.1.0a1/src/tribune/llm_openai.py +152 -0
- tribune_agent-0.1.0a1/src/tribune/review.py +286 -0
- tribune_agent-0.1.0a1/src/tribune/schemas.py +107 -0
- tribune_agent-0.1.0a1/src/tribune/user_config.py +463 -0
- tribune_agent-0.1.0a1/src/tribune/vcs.py +79 -0
- tribune_agent-0.1.0a1/src/tribune/vcs_azure.py +72 -0
- tribune_agent-0.1.0a1/src/tribune/vcs_bitbucket.py +61 -0
- tribune_agent-0.1.0a1/src/tribune/vcs_github.py +193 -0
- tribune_agent-0.1.0a1/src/tribune/vcs_gitlab.py +218 -0
- tribune_agent-0.1.0a1/tests/conftest.py +54 -0
- tribune_agent-0.1.0a1/tests/test_review.py +139 -0
- tribune_agent-0.1.0a1/tests/test_vcs.py +88 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ThinkNext Software Solutions
|
|
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
|
|
13
|
+
all 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
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tribune-agent
|
|
3
|
+
Version: 0.1.0a1
|
|
4
|
+
Summary: AI code/PR review agent. Fetches a pull request, asks an LLM to review it, posts inline comments + summary verdict back to the VCS. Self-hosted, multi-VCS (GitHub, GitLab, Bitbucket, Azure DevOps), multi-LLM (Anthropic / OpenAI / Google / Claude Code / Ollama). Standalone: no inter-package runtime deps.
|
|
5
|
+
Project-URL: Homepage, https://thinknextsoftware.com
|
|
6
|
+
Project-URL: Documentation, https://github.com/Thinknext-Software-Solutions/Tribune
|
|
7
|
+
Project-URL: Repository, https://github.com/Thinknext-Software-Solutions/Tribune
|
|
8
|
+
Project-URL: Issues, https://github.com/Thinknext-Software-Solutions/Tribune/issues
|
|
9
|
+
Project-URL: Changelog, https://github.com/Thinknext-Software-Solutions/Tribune/releases
|
|
10
|
+
Author-email: ThinkNext Software Solutions <hello@thinknextsoftware.com>
|
|
11
|
+
License: MIT License
|
|
12
|
+
|
|
13
|
+
Copyright (c) 2026 ThinkNext Software Solutions
|
|
14
|
+
|
|
15
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
16
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
17
|
+
in the Software without restriction, including without limitation the rights
|
|
18
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
19
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
20
|
+
furnished to do so, subject to the following conditions:
|
|
21
|
+
|
|
22
|
+
The above copyright notice and this permission notice shall be included in
|
|
23
|
+
all copies or substantial portions of the Software.
|
|
24
|
+
|
|
25
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
26
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
27
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
28
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
29
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
30
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
31
|
+
THE SOFTWARE.
|
|
32
|
+
License-File: LICENSE
|
|
33
|
+
Keywords: agent,agentic-ai,ai,ai-agent,anthropic,azure-devops,bitbucket,claude,code-review,gemini,github,gitlab,llm,merge-request,open-source,openai,pr-review,pull-request,self-hosted
|
|
34
|
+
Classifier: Development Status :: 3 - Alpha
|
|
35
|
+
Classifier: Environment :: Console
|
|
36
|
+
Classifier: Intended Audience :: Developers
|
|
37
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
38
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
39
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
40
|
+
Classifier: Topic :: Software Development
|
|
41
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
42
|
+
Classifier: Topic :: Software Development :: Version Control
|
|
43
|
+
Requires-Python: >=3.11
|
|
44
|
+
Requires-Dist: click>=8.1.0
|
|
45
|
+
Requires-Dist: httpx>=0.27
|
|
46
|
+
Requires-Dist: pydantic>=2.0
|
|
47
|
+
Requires-Dist: pygithub>=2.0
|
|
48
|
+
Requires-Dist: pyyaml>=6.0
|
|
49
|
+
Requires-Dist: requests>=2.31
|
|
50
|
+
Provides-Extra: all
|
|
51
|
+
Requires-Dist: anthropic>=0.30; extra == 'all'
|
|
52
|
+
Requires-Dist: claude-agent-sdk>=0.1; extra == 'all'
|
|
53
|
+
Requires-Dist: google-generativeai>=0.7; extra == 'all'
|
|
54
|
+
Requires-Dist: openai>=1.30; extra == 'all'
|
|
55
|
+
Provides-Extra: anthropic
|
|
56
|
+
Requires-Dist: anthropic>=0.30; extra == 'anthropic'
|
|
57
|
+
Provides-Extra: claude-code
|
|
58
|
+
Requires-Dist: claude-agent-sdk>=0.1; extra == 'claude-code'
|
|
59
|
+
Provides-Extra: dev
|
|
60
|
+
Requires-Dist: black>=24.0; extra == 'dev'
|
|
61
|
+
Requires-Dist: build>=1.0; extra == 'dev'
|
|
62
|
+
Requires-Dist: mypy>=1.10; extra == 'dev'
|
|
63
|
+
Requires-Dist: pytest-cov>=5.0; extra == 'dev'
|
|
64
|
+
Requires-Dist: pytest-httpx>=0.30; extra == 'dev'
|
|
65
|
+
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
66
|
+
Requires-Dist: ruff>=0.5; extra == 'dev'
|
|
67
|
+
Requires-Dist: twine>=5.0; extra == 'dev'
|
|
68
|
+
Provides-Extra: google
|
|
69
|
+
Requires-Dist: google-generativeai>=0.7; extra == 'google'
|
|
70
|
+
Provides-Extra: openai
|
|
71
|
+
Requires-Dist: openai>=1.30; extra == 'openai'
|
|
72
|
+
Description-Content-Type: text/markdown
|
|
73
|
+
|
|
74
|
+
# Tribune
|
|
75
|
+
|
|
76
|
+
> AI code/PR review agent. Fetches a pull request, asks an LLM to review it, posts inline comments + a verdict back to the VCS.
|
|
77
|
+
|
|
78
|
+
[](https://pypi.org/project/tribune-agent/)
|
|
79
|
+
[](https://opensource.org/licenses/MIT)
|
|
80
|
+
[](#)
|
|
81
|
+
[](https://thinknextsoftware.com)
|
|
82
|
+
|
|
83
|
+
> **Status**: alpha, live on PyPI as `tribune-agent==0.1.0a1`. Standalone: no inter-package runtime deps. GitHub + GitLab fully implemented in 0.1.0a1; Bitbucket lands in 0.1.0a2; Azure DevOps in 0.1.0a3.
|
|
84
|
+
|
|
85
|
+
## What it does
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
tribune review https://github.com/owner/repo/pull/42
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Tribune fetches the PR, asks your LLM to review the diff, then posts:
|
|
92
|
+
|
|
93
|
+
- **Inline comments** anchored to specific file + line, tagged severity (blocker / warning / nit) and category (bug / security / performance / test / style / docs / design).
|
|
94
|
+
- **A top-level summary** with a verdict (approve / request_changes / comment-only).
|
|
95
|
+
|
|
96
|
+
You can also run `--no-post` to print the review to your terminal without touching the PR.
|
|
97
|
+
|
|
98
|
+
## Why this exists
|
|
99
|
+
|
|
100
|
+
ThinkNext ships an OSS agentic SDLC stack:
|
|
101
|
+
|
|
102
|
+
| Stage | Tool |
|
|
103
|
+
|---|---|
|
|
104
|
+
| Idea to code | [Cascade](https://github.com/Thinknext-Software-Solutions/Cascade) (human-gated) or [Relay](https://github.com/Thinknext-Software-Solutions/Relay) (autonomous) |
|
|
105
|
+
| **Code to review** | **Tribune** (this repo) |
|
|
106
|
+
| Code to tested running app | [Sentinel](https://github.com/Thinknext-Software-Solutions/Sentinel) |
|
|
107
|
+
|
|
108
|
+
Tribune is the only piece that touches every PR, regardless of who wrote it. Human, Cascade, Relay, Copilot, anything else.
|
|
109
|
+
|
|
110
|
+
## Install
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
pip install 'tribune-agent[anthropic]' # or [openai], [google], [claude-code], [all]
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## Configure
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
# LLM provider
|
|
120
|
+
tribune configure llm claude_code --set-default
|
|
121
|
+
# Or use a key-based provider:
|
|
122
|
+
tribune configure llm anthropic --key sk-ant-xxx --set-default
|
|
123
|
+
|
|
124
|
+
# VCS provider (token needs PR read + comment write scopes)
|
|
125
|
+
tribune configure vcs github --token ghp_xxx --set-default
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Credentials live at `~/.config/tribune/config.yaml` (mode 0600).
|
|
129
|
+
|
|
130
|
+
## Run
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
# Print the review without posting (useful for dogfooding):
|
|
134
|
+
tribune review https://github.com/owner/repo/pull/42 --no-post
|
|
135
|
+
|
|
136
|
+
# Post the review back to the PR:
|
|
137
|
+
tribune review https://github.com/owner/repo/pull/42
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## What ships in 0.1.0a1
|
|
141
|
+
|
|
142
|
+
| Capability | Status |
|
|
143
|
+
|---|---|
|
|
144
|
+
| GitHub PRs (read + inline comments + review) | Full |
|
|
145
|
+
| GitLab MRs (read + discussions + approve) | Full |
|
|
146
|
+
| Bitbucket PRs | Stub (lands in 0.1.0a2) |
|
|
147
|
+
| Azure DevOps Repos PRs | Stub (lands in 0.1.0a3) |
|
|
148
|
+
| Multi-LLM via vendored client (Anthropic / OpenAI / Google / Claude Code / Ollama) | Full |
|
|
149
|
+
| Diff chunking for large PRs | Full |
|
|
150
|
+
| Skip lockfiles, removed files, binaries | Full |
|
|
151
|
+
| Structured findings (severity + category + line anchor + optional suggestion) | Full |
|
|
152
|
+
| GitHub Actions / GitLab CI / Bitbucket Pipelines / Azure Pipelines wrappers | Planned 0.1.0a2 |
|
|
153
|
+
| Per-repo `tribune.yaml` (rules to apply, paths to skip, custom prompt) | Planned 0.1.0a2 |
|
|
154
|
+
|
|
155
|
+
## How it differs from existing tools
|
|
156
|
+
|
|
157
|
+
| | CodeRabbit / Greptile | GitHub Copilot review | Tribune |
|
|
158
|
+
|---|---|---|---|
|
|
159
|
+
| Multi-VCS (GitHub + GitLab + Bitbucket + Azure) | Limited | GitHub only | Yes |
|
|
160
|
+
| Self-hosted (your code stays on your network) | No | No | Yes |
|
|
161
|
+
| Bring your own LLM key | No | No | Yes |
|
|
162
|
+
| Free for individuals | Partial | Subscription | Yes |
|
|
163
|
+
| Open source | No | No | Yes |
|
|
164
|
+
|
|
165
|
+
## License
|
|
166
|
+
|
|
167
|
+
MIT. See [LICENSE](LICENSE).
|
|
168
|
+
|
|
169
|
+
## About
|
|
170
|
+
|
|
171
|
+
Built and maintained by [ThinkNext Software Solutions](https://thinknextsoftware.com), alongside [Cascade](https://github.com/Thinknext-Software-Solutions/Cascade), [Relay](https://github.com/Thinknext-Software-Solutions/Relay), and [Sentinel](https://github.com/Thinknext-Software-Solutions/Sentinel).
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Tribune
|
|
2
|
+
|
|
3
|
+
> AI code/PR review agent. Fetches a pull request, asks an LLM to review it, posts inline comments + a verdict back to the VCS.
|
|
4
|
+
|
|
5
|
+
[](https://pypi.org/project/tribune-agent/)
|
|
6
|
+
[](https://opensource.org/licenses/MIT)
|
|
7
|
+
[](#)
|
|
8
|
+
[](https://thinknextsoftware.com)
|
|
9
|
+
|
|
10
|
+
> **Status**: alpha, live on PyPI as `tribune-agent==0.1.0a1`. Standalone: no inter-package runtime deps. GitHub + GitLab fully implemented in 0.1.0a1; Bitbucket lands in 0.1.0a2; Azure DevOps in 0.1.0a3.
|
|
11
|
+
|
|
12
|
+
## What it does
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
tribune review https://github.com/owner/repo/pull/42
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Tribune fetches the PR, asks your LLM to review the diff, then posts:
|
|
19
|
+
|
|
20
|
+
- **Inline comments** anchored to specific file + line, tagged severity (blocker / warning / nit) and category (bug / security / performance / test / style / docs / design).
|
|
21
|
+
- **A top-level summary** with a verdict (approve / request_changes / comment-only).
|
|
22
|
+
|
|
23
|
+
You can also run `--no-post` to print the review to your terminal without touching the PR.
|
|
24
|
+
|
|
25
|
+
## Why this exists
|
|
26
|
+
|
|
27
|
+
ThinkNext ships an OSS agentic SDLC stack:
|
|
28
|
+
|
|
29
|
+
| Stage | Tool |
|
|
30
|
+
|---|---|
|
|
31
|
+
| Idea to code | [Cascade](https://github.com/Thinknext-Software-Solutions/Cascade) (human-gated) or [Relay](https://github.com/Thinknext-Software-Solutions/Relay) (autonomous) |
|
|
32
|
+
| **Code to review** | **Tribune** (this repo) |
|
|
33
|
+
| Code to tested running app | [Sentinel](https://github.com/Thinknext-Software-Solutions/Sentinel) |
|
|
34
|
+
|
|
35
|
+
Tribune is the only piece that touches every PR, regardless of who wrote it. Human, Cascade, Relay, Copilot, anything else.
|
|
36
|
+
|
|
37
|
+
## Install
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pip install 'tribune-agent[anthropic]' # or [openai], [google], [claude-code], [all]
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Configure
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# LLM provider
|
|
47
|
+
tribune configure llm claude_code --set-default
|
|
48
|
+
# Or use a key-based provider:
|
|
49
|
+
tribune configure llm anthropic --key sk-ant-xxx --set-default
|
|
50
|
+
|
|
51
|
+
# VCS provider (token needs PR read + comment write scopes)
|
|
52
|
+
tribune configure vcs github --token ghp_xxx --set-default
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Credentials live at `~/.config/tribune/config.yaml` (mode 0600).
|
|
56
|
+
|
|
57
|
+
## Run
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# Print the review without posting (useful for dogfooding):
|
|
61
|
+
tribune review https://github.com/owner/repo/pull/42 --no-post
|
|
62
|
+
|
|
63
|
+
# Post the review back to the PR:
|
|
64
|
+
tribune review https://github.com/owner/repo/pull/42
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## What ships in 0.1.0a1
|
|
68
|
+
|
|
69
|
+
| Capability | Status |
|
|
70
|
+
|---|---|
|
|
71
|
+
| GitHub PRs (read + inline comments + review) | Full |
|
|
72
|
+
| GitLab MRs (read + discussions + approve) | Full |
|
|
73
|
+
| Bitbucket PRs | Stub (lands in 0.1.0a2) |
|
|
74
|
+
| Azure DevOps Repos PRs | Stub (lands in 0.1.0a3) |
|
|
75
|
+
| Multi-LLM via vendored client (Anthropic / OpenAI / Google / Claude Code / Ollama) | Full |
|
|
76
|
+
| Diff chunking for large PRs | Full |
|
|
77
|
+
| Skip lockfiles, removed files, binaries | Full |
|
|
78
|
+
| Structured findings (severity + category + line anchor + optional suggestion) | Full |
|
|
79
|
+
| GitHub Actions / GitLab CI / Bitbucket Pipelines / Azure Pipelines wrappers | Planned 0.1.0a2 |
|
|
80
|
+
| Per-repo `tribune.yaml` (rules to apply, paths to skip, custom prompt) | Planned 0.1.0a2 |
|
|
81
|
+
|
|
82
|
+
## How it differs from existing tools
|
|
83
|
+
|
|
84
|
+
| | CodeRabbit / Greptile | GitHub Copilot review | Tribune |
|
|
85
|
+
|---|---|---|---|
|
|
86
|
+
| Multi-VCS (GitHub + GitLab + Bitbucket + Azure) | Limited | GitHub only | Yes |
|
|
87
|
+
| Self-hosted (your code stays on your network) | No | No | Yes |
|
|
88
|
+
| Bring your own LLM key | No | No | Yes |
|
|
89
|
+
| Free for individuals | Partial | Subscription | Yes |
|
|
90
|
+
| Open source | No | No | Yes |
|
|
91
|
+
|
|
92
|
+
## License
|
|
93
|
+
|
|
94
|
+
MIT. See [LICENSE](LICENSE).
|
|
95
|
+
|
|
96
|
+
## About
|
|
97
|
+
|
|
98
|
+
Built and maintained by [ThinkNext Software Solutions](https://thinknextsoftware.com), alongside [Cascade](https://github.com/Thinknext-Software-Solutions/Cascade), [Relay](https://github.com/Thinknext-Software-Solutions/Relay), and [Sentinel](https://github.com/Thinknext-Software-Solutions/Sentinel).
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "tribune-agent"
|
|
3
|
+
version = "0.1.0a1"
|
|
4
|
+
description = "AI code/PR review agent. Fetches a pull request, asks an LLM to review it, posts inline comments + summary verdict back to the VCS. Self-hosted, multi-VCS (GitHub, GitLab, Bitbucket, Azure DevOps), multi-LLM (Anthropic / OpenAI / Google / Claude Code / Ollama). Standalone: no inter-package runtime deps."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = { file = "LICENSE" }
|
|
7
|
+
requires-python = ">=3.11"
|
|
8
|
+
authors = [
|
|
9
|
+
{ name = "ThinkNext Software Solutions", email = "hello@thinknextsoftware.com" }
|
|
10
|
+
]
|
|
11
|
+
keywords = [
|
|
12
|
+
"ai", "agent", "ai-agent", "agentic-ai", "llm",
|
|
13
|
+
"code-review", "pr-review", "pull-request", "merge-request",
|
|
14
|
+
"github", "gitlab", "bitbucket", "azure-devops",
|
|
15
|
+
"self-hosted", "open-source",
|
|
16
|
+
"anthropic", "openai", "claude", "gemini",
|
|
17
|
+
]
|
|
18
|
+
classifiers = [
|
|
19
|
+
"Development Status :: 3 - Alpha",
|
|
20
|
+
"Intended Audience :: Developers",
|
|
21
|
+
"License :: OSI Approved :: MIT License",
|
|
22
|
+
"Programming Language :: Python :: 3.11",
|
|
23
|
+
"Programming Language :: Python :: 3.12",
|
|
24
|
+
"Topic :: Software Development",
|
|
25
|
+
"Topic :: Software Development :: Quality Assurance",
|
|
26
|
+
"Topic :: Software Development :: Version Control",
|
|
27
|
+
"Environment :: Console",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
# Tribune is standalone: it carries its own LLM client + VCS adapter
|
|
31
|
+
# layers so it does not depend on any other ThinkNext package at runtime.
|
|
32
|
+
dependencies = [
|
|
33
|
+
"click>=8.1.0",
|
|
34
|
+
"pydantic>=2.0",
|
|
35
|
+
"PyYAML>=6.0",
|
|
36
|
+
"PyGithub>=2.0",
|
|
37
|
+
"requests>=2.31",
|
|
38
|
+
"httpx>=0.27",
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
[project.optional-dependencies]
|
|
42
|
+
# LLM provider extras.
|
|
43
|
+
anthropic = ["anthropic>=0.30"]
|
|
44
|
+
openai = ["openai>=1.30"]
|
|
45
|
+
google = ["google-generativeai>=0.7"]
|
|
46
|
+
claude-code = ["claude-agent-sdk>=0.1"]
|
|
47
|
+
all = [
|
|
48
|
+
"anthropic>=0.30",
|
|
49
|
+
"openai>=1.30",
|
|
50
|
+
"google-generativeai>=0.7",
|
|
51
|
+
"claude-agent-sdk>=0.1",
|
|
52
|
+
]
|
|
53
|
+
dev = [
|
|
54
|
+
"pytest>=8.0",
|
|
55
|
+
"pytest-cov>=5.0",
|
|
56
|
+
"pytest-httpx>=0.30",
|
|
57
|
+
"black>=24.0",
|
|
58
|
+
"ruff>=0.5",
|
|
59
|
+
"mypy>=1.10",
|
|
60
|
+
"build>=1.0",
|
|
61
|
+
"twine>=5.0",
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
[project.scripts]
|
|
65
|
+
tribune = "tribune.cli:main"
|
|
66
|
+
|
|
67
|
+
[project.urls]
|
|
68
|
+
Homepage = "https://thinknextsoftware.com"
|
|
69
|
+
Documentation = "https://github.com/Thinknext-Software-Solutions/Tribune"
|
|
70
|
+
Repository = "https://github.com/Thinknext-Software-Solutions/Tribune"
|
|
71
|
+
Issues = "https://github.com/Thinknext-Software-Solutions/Tribune/issues"
|
|
72
|
+
Changelog = "https://github.com/Thinknext-Software-Solutions/Tribune/releases"
|
|
73
|
+
|
|
74
|
+
[build-system]
|
|
75
|
+
requires = ["hatchling"]
|
|
76
|
+
build-backend = "hatchling.build"
|
|
77
|
+
|
|
78
|
+
[tool.hatch.build.targets.wheel]
|
|
79
|
+
packages = ["src/tribune"]
|
|
80
|
+
|
|
81
|
+
[tool.ruff]
|
|
82
|
+
line-length = 100
|
|
83
|
+
target-version = "py311"
|
|
84
|
+
|
|
85
|
+
[tool.ruff.lint]
|
|
86
|
+
select = ["E", "F", "I", "B", "W", "UP", "RUF"]
|
|
87
|
+
|
|
88
|
+
[tool.black]
|
|
89
|
+
line-length = 100
|
|
90
|
+
target-version = ["py311"]
|
|
91
|
+
|
|
92
|
+
[tool.pytest.ini_options]
|
|
93
|
+
testpaths = ["tests"]
|
|
94
|
+
python_files = ["test_*.py"]
|
|
95
|
+
addopts = "-v --tb=short"
|