bevor-cli 0.1.3__tar.gz → 0.2.0rc1__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.
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/PKG-INFO +2 -2
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/client.py +2 -2
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/create.py +2 -4
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/main.py +2 -2
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/pyproject.toml +2 -2
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/.gitignore +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/README.md +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/__init__.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/actions.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/annotations/__init__.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/annotations/confirmations.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/annotations/query.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/apps/analyses.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/apps/chat.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/apps/codes.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/apps/findings.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/apps/main.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/apps/nodes.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/apps/projects.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/apps/sessions.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/apps/workspaces.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/callbacks/__init__.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/callbacks/notify.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/callbacks/upgrade.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/callbacks/version.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/__init__.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/__init__.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/chats/__init__.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/chats/get.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/chats/list.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/chats/messages.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/chats/new.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/chats/resume.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/chats/session.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/commit.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/delete.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/deselect.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/diff.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/entrypoints.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/fork.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/lineage.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/list.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/materialize.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/merge.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/reset.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/retry.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/run.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/select.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/set_head.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/transitions.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/analyses/view.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/auth/__init__.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/auth/login.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/auth/logout.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/auth/whoami.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/codes/__init__.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/codes/list.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/codes/push.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/codes/select.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/codes/view.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/findings/__init__.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/findings/acknowledge.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/findings/add.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/findings/delete.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/findings/edit.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/findings/get.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/findings/import_findings.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/findings/interactive.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/findings/list.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/findings/revert.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/graph/__init__.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/graph/call_chain.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/graph/edges.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/graph/interactive.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/graph/renderer.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/link/__init__.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/link/helpers.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/nodes/__init__.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/nodes/get.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/nodes/list.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/nodes/source.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/projects/__init__.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/projects/create.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/projects/list.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/projects/select.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/projects/view.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/reflog/__init__.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/sessions/__init__.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/sessions/list.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/sessions/revoke.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/status/__init__.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/sync/__init__.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/workspaces/__init__.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/workspaces/list.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/workspaces/pick.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/workspaces/select.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/commands/workspaces/view.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/configuration/__init__.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/configuration/creds.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/configuration/logs.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/configuration/state.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/configuration/update.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/findings_yaml.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/fingerprint.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/output.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/select.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/settings.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/bevor_cli/target.py +0 -0
- {bevor_cli-0.1.3 → bevor_cli-0.2.0rc1}/cli-hierarchy.py +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: bevor-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0rc1
|
|
4
4
|
Summary: Bevor CLI tool for security analysis and graph inspection
|
|
5
5
|
Classifier: Development Status :: 3 - Alpha
|
|
6
6
|
Requires-Python: >=3.13
|
|
7
|
-
Requires-Dist: bevor-sdk==0.
|
|
7
|
+
Requires-Dist: bevor-sdk==0.2.0rc1
|
|
8
8
|
Requires-Dist: click~=8.1
|
|
9
9
|
Requires-Dist: httpx~=0.28
|
|
10
10
|
Requires-Dist: packaging~=26.2
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, cast
|
|
|
7
7
|
import httpx
|
|
8
8
|
import typer
|
|
9
9
|
from bevor_sdk import BevorClient
|
|
10
|
-
from bevor_sdk.exceptions import ERROR_REGISTRY,
|
|
10
|
+
from bevor_sdk.exceptions import ERROR_REGISTRY, BevorErrorTypes
|
|
11
11
|
from bevor_sdk.types.requests.manage import CreateProjectBodyDict
|
|
12
12
|
from bevor_sdk.types.responses import ResultsResponse
|
|
13
13
|
from bevor_sdk.types.responses.manage import (
|
|
@@ -104,7 +104,7 @@ class BevorInternalBusinessClient(httpx.Client):
|
|
|
104
104
|
# couldn't parse, so raise.
|
|
105
105
|
response.raise_for_status()
|
|
106
106
|
|
|
107
|
-
exc_cls = ERROR_REGISTRY.get(cast(
|
|
107
|
+
exc_cls = ERROR_REGISTRY.get(cast(BevorErrorTypes, code))
|
|
108
108
|
if exc_cls is None:
|
|
109
109
|
response.raise_for_status()
|
|
110
110
|
return False # just for typing...
|
|
@@ -98,7 +98,6 @@ def create_from_pushed_code(
|
|
|
98
98
|
print_collision(created)
|
|
99
99
|
|
|
100
100
|
|
|
101
|
-
|
|
102
101
|
def print_collision(collision: AnalysisCollisionResult) -> None:
|
|
103
102
|
output.warning("This exact code already has a version in this project; nothing was created.")
|
|
104
103
|
for candidate in collision.candidates:
|
|
@@ -124,10 +123,9 @@ def print_collision(collision: AnalysisCollisionResult) -> None:
|
|
|
124
123
|
console.print(f" select: bevor analyses select {meta.id}")
|
|
125
124
|
console.print("\nTo create a new one anyway, pass --collision force.")
|
|
126
125
|
|
|
126
|
+
|
|
127
127
|
def create_analysis(
|
|
128
|
-
new: bool = typer.Option(
|
|
129
|
-
False, "--new", help="Start a new analysis even if one is selected."
|
|
130
|
-
),
|
|
128
|
+
new: bool = typer.Option(False, "--new", help="Start a new analysis even if one is selected."),
|
|
131
129
|
name: Optional[str] = typer.Option(None, "--name", help="Name for a new analysis."),
|
|
132
130
|
version: Optional[str] = typer.Option(
|
|
133
131
|
None, "--version", help="Add the new version on top of this version instead of HEAD."
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import sys
|
|
2
2
|
|
|
3
3
|
from bevor_sdk.exceptions import (
|
|
4
|
-
|
|
4
|
+
BevorError,
|
|
5
5
|
InvalidScopeError,
|
|
6
6
|
SessionExpiredError,
|
|
7
7
|
UnauthenticatedError,
|
|
@@ -30,7 +30,7 @@ def main() -> None:
|
|
|
30
30
|
except InvalidScopeError:
|
|
31
31
|
output.error("Unauthorized: configure a workspace and project.", hint="Run `bevor link`.")
|
|
32
32
|
sys.exit(1)
|
|
33
|
-
except
|
|
33
|
+
except BevorError as e:
|
|
34
34
|
output.error(str(e.args[0]))
|
|
35
35
|
sys.exit(1)
|
|
36
36
|
except Exception as e:
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "bevor-cli"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.2.0rc1"
|
|
4
4
|
description = "Bevor CLI tool for security analysis and graph inspection"
|
|
5
5
|
requires-python = ">=3.13"
|
|
6
6
|
dependencies = [
|
|
7
|
-
"bevor-sdk==0.
|
|
7
|
+
"bevor-sdk==0.2.0rc1",
|
|
8
8
|
"typer~=0.26",
|
|
9
9
|
"httpx~=0.28",
|
|
10
10
|
"pydantic~=2.12",
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|