devin-cli 0.0.1__tar.gz → 0.0.2__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.
- {devin_cli-0.0.1 → devin_cli-0.0.2}/PKG-INFO +3 -1
- {devin_cli-0.0.1 → devin_cli-0.0.2}/README.md +2 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/pyproject.toml +1 -1
- {devin_cli-0.0.1 → devin_cli-0.0.2}/src/devin_cli/cli.py +23 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/.github/workflows/pypi-publish.yml +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/.gitignore +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/CHANGELOG.md +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/LICENSE +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/assets/logo.png +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/setup.py +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/src/devin_cli/__init__.py +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/src/devin_cli/api/__init__.py +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/src/devin_cli/api/attachments.py +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/src/devin_cli/api/client.py +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/src/devin_cli/api/knowledge.py +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/src/devin_cli/api/playbooks.py +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/src/devin_cli/api/secrets.py +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/src/devin_cli/api/sessions.py +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/src/devin_cli/config.py +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/tests/__init__.py +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/tests/test_api/test_attachments.py +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/tests/test_api/test_knowledge.py +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/tests/test_api/test_playbooks.py +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/tests/test_api/test_secrets.py +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/tests/test_api/test_sessions.py +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/tests/test_cli.py +0 -0
- {devin_cli-0.0.1 → devin_cli-0.0.2}/tests/test_config.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: devin-cli
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.2
|
|
4
4
|
Summary: Unofficial CLI for Devin AI - The first AI Software Engineer
|
|
5
5
|
Project-URL: Homepage, https://github.com/revanthpobala/devin-cli
|
|
6
6
|
Project-URL: Repository, https://github.com/revanthpobala/devin-cli.git
|
|
@@ -41,6 +41,8 @@ Description-Content-Type: text/markdown
|
|
|
41
41
|
# Devin CLI (Unofficial) — The Professional Terminal Interface for Devin AI
|
|
42
42
|
|
|
43
43
|
<p align="center">
|
|
44
|
+
<a href="https://pypi.org/project/devin-cli/"><img src="https://img.shields.io/pypi/v/devin-cli?style=for-the-badge&color=0294DE" alt="PyPI version"></a>
|
|
45
|
+
<a href="https://github.com/revanthpobala/devin-cli/actions/workflows/pypi-publish.yml"><img src="https://github.com/revanthpobala/devin-cli/actions/workflows/pypi-publish.yml/badge.svg" alt="Build Status"></a>
|
|
44
46
|
<a href="LICENSE"><img src="https://img.shields.io/github/license/revanthpobala/devin-cli?style=for-the-badge&color=0294DE" alt="License"></a>
|
|
45
47
|
<a href="https://github.com/revanthpobala/devin-cli/stargazers"><img src="https://img.shields.io/github/stars/revanthpobala/devin-cli?style=for-the-badge&color=FAD000" alt="GitHub stars"></a>
|
|
46
48
|
</p>
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
# Devin CLI (Unofficial) — The Professional Terminal Interface for Devin AI
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
|
+
<a href="https://pypi.org/project/devin-cli/"><img src="https://img.shields.io/pypi/v/devin-cli?style=for-the-badge&color=0294DE" alt="PyPI version"></a>
|
|
9
|
+
<a href="https://github.com/revanthpobala/devin-cli/actions/workflows/pypi-publish.yml"><img src="https://github.com/revanthpobala/devin-cli/actions/workflows/pypi-publish.yml/badge.svg" alt="Build Status"></a>
|
|
8
10
|
<a href="LICENSE"><img src="https://img.shields.io/github/license/revanthpobala/devin-cli?style=for-the-badge&color=0294DE" alt="License"></a>
|
|
9
11
|
<a href="https://github.com/revanthpobala/devin-cli/stargazers"><img src="https://img.shields.io/github/stars/revanthpobala/devin-cli?style=for-the-badge&color=FAD000" alt="GitHub stars"></a>
|
|
10
12
|
</p>
|
|
@@ -14,10 +14,33 @@ from devin_cli.config import config
|
|
|
14
14
|
from devin_cli.api import sessions, knowledge, playbooks, secrets, attachments
|
|
15
15
|
from devin_cli.api.client import client, APIError
|
|
16
16
|
import functools
|
|
17
|
+
import sys
|
|
17
18
|
|
|
18
19
|
app = typer.Typer(help="Unofficial CLI for Devin AI", no_args_is_help=True)
|
|
19
20
|
console = Console()
|
|
20
21
|
|
|
22
|
+
ASCII_LOGO = """
|
|
23
|
+
[bold cyan]
|
|
24
|
+
____ _ _________ ____
|
|
25
|
+
/ __ \___ _ __(_)___ / ____/ / / _/
|
|
26
|
+
/ / / / _ \ | / / / __ \ / / / / / /
|
|
27
|
+
/ /_/ / __/ |/ / / / / / / /___/ /____/ /
|
|
28
|
+
/_____/\___/|___/_/_/ /_/ \____/_____/___/
|
|
29
|
+
[/bold cyan]
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
# Show logo on main help
|
|
33
|
+
if len(sys.argv) > 1 and sys.argv[1] in ["--help", "-h"] and len(sys.argv) == 2:
|
|
34
|
+
console.print(ASCII_LOGO)
|
|
35
|
+
|
|
36
|
+
@app.callback()
|
|
37
|
+
def main(ctx: typer.Context):
|
|
38
|
+
"""
|
|
39
|
+
Unofficial CLI for Devin AI.
|
|
40
|
+
"""
|
|
41
|
+
if ctx.invoked_subcommand is None and not any(arg in sys.argv for arg in ["--help", "-h"]):
|
|
42
|
+
console.print(ASCII_LOGO)
|
|
43
|
+
|
|
21
44
|
def handle_api_error(func):
|
|
22
45
|
"""Decorator to handle API errors gracefully."""
|
|
23
46
|
@functools.wraps(func)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|