superwise-sentinel-cli 0.1.2__tar.gz → 0.1.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.
- {superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/.gitlab-ci.yml +2 -1
- superwise_sentinel_cli-0.1.4/.releaserc.json +114 -0
- {superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/PKG-INFO +1 -1
- superwise_sentinel_cli-0.1.4/build.env +1 -0
- {superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/pyproject.toml +1 -1
- superwise_sentinel_cli-0.1.4/scripts/semantic-release-cli-publish.sh +28 -0
- {superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/src/superwise_sentinel_cli/cli.py +4 -1
- {superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/src/superwise_sentinel_cli/config.py +1 -1
- {superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/src/superwise_sentinel_cli/docker_manager.py +1 -1
- superwise_sentinel_cli-0.1.2/.ai/mcp/mcp.json +0 -0
- superwise_sentinel_cli-0.1.2/.claude/settings.local.json +0 -7
- {superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/.gitignore +0 -0
- {superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/.pre-commit-config.yaml +0 -0
- {superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/CLAUDE.md +0 -0
- {superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/README.md +0 -0
- {superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/poetry.lock +0 -0
- {superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/poetry.toml +0 -0
- {superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/src/superwise_sentinel_cli/__init__.py +0 -0
- {superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/src/superwise_sentinel_cli/auth.py +0 -0
- {superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/src/superwise_sentinel_cli/runner.py +0 -0
- {superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/src/superwise_sentinel_cli/shell_profile.py +0 -0
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
# Variables
|
|
3
3
|
##################################
|
|
4
4
|
variables:
|
|
5
|
-
API_GW_URL: "https://api-staging.staging.superwise.ai"
|
|
6
5
|
JOB_TAG: f0nl9KXRnY9vZaSJuQd2iigwi4nhFk
|
|
7
6
|
OPENAPI_FILE: openapi.json
|
|
8
7
|
PACKAGE_NAME: superwise_sentinel_cli
|
|
9
8
|
PYTHON_VERSION: "3.11"
|
|
9
|
+
XDG_CACHE_HOME: ${CI_PROJECT_DIR}/.cache
|
|
10
|
+
PRE_COMMIT_HOME: ${XDG_CACHE_HOME}/pre-commit
|
|
10
11
|
|
|
11
12
|
##################################
|
|
12
13
|
# Workflow
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"branches": [
|
|
3
|
+
"master",
|
|
4
|
+
{
|
|
5
|
+
"channel": false,
|
|
6
|
+
"name": "hotfix/*"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"plugins": [
|
|
10
|
+
[
|
|
11
|
+
"@semantic-release/commit-analyzer",
|
|
12
|
+
{
|
|
13
|
+
"preset": "angular",
|
|
14
|
+
"releaseRules": [
|
|
15
|
+
{
|
|
16
|
+
"breaking": true,
|
|
17
|
+
"release": "major"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"release": "patch",
|
|
21
|
+
"revert": true
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"release": false,
|
|
25
|
+
"type": "chore"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"release": false,
|
|
29
|
+
"type": "ci"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"release": false,
|
|
33
|
+
"type": "docs"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"release": "minor",
|
|
37
|
+
"type": "feat"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"release": "patch",
|
|
41
|
+
"type": "fix"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"release": "patch",
|
|
45
|
+
"type": "perf"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"release": "patch",
|
|
49
|
+
"type": "refactor"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
[
|
|
55
|
+
"@semantic-release/release-notes-generator",
|
|
56
|
+
{
|
|
57
|
+
"preset": "conventionalcommits",
|
|
58
|
+
"presetConfig": {
|
|
59
|
+
"types": [
|
|
60
|
+
{
|
|
61
|
+
"hidden": false,
|
|
62
|
+
"section": "<!-- 1. -->:rocket: New Features",
|
|
63
|
+
"type": "feat"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"hidden": false,
|
|
67
|
+
"section": "<!-- 2. -->:bug: Bug Fixes",
|
|
68
|
+
"type": "fix"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"hidden": false,
|
|
72
|
+
"section": "<!-- 3. -->:chart_with_upwards_trend: Performance Improvements",
|
|
73
|
+
"type": "perf"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"hidden": false,
|
|
77
|
+
"section": "<!-- 4. -->:tractor: Refactor",
|
|
78
|
+
"type": "refactor"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"hidden": false,
|
|
82
|
+
"section": "<!-- 5. -->:memo: Documentation",
|
|
83
|
+
"type": "docs"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"hidden": false,
|
|
87
|
+
"section": "<!-- 6. -->:broom: Chore",
|
|
88
|
+
"type": "chore"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"@semantic-release/changelog",
|
|
95
|
+
[
|
|
96
|
+
"@semantic-release/git",
|
|
97
|
+
{
|
|
98
|
+
"assets": [
|
|
99
|
+
"CHANGELOG.md",
|
|
100
|
+
"pyproject.toml",
|
|
101
|
+
"superwise_sentinel_cli/"
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"@semantic-release/gitlab",
|
|
106
|
+
[
|
|
107
|
+
"@semantic-release/exec",
|
|
108
|
+
{
|
|
109
|
+
"verifyReleaseCmd": "bash scripts/semantic-release-cli-publish.sh ${nextRelease.version}"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
],
|
|
113
|
+
"tagFormat": "${version}"
|
|
114
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: superwise-sentinel-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: Sentinel is an LLM proxy that intercepts traffic, enabling you to monitor, secure, and optimize your AI usage. This CLI tool helps you quickly set up traffic interception on this machine
|
|
5
5
|
Requires-Python: <4.0,>=3.11
|
|
6
6
|
Requires-Dist: click>=8.1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
RELEASED_VERSION=0.1.4
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "superwise-sentinel-cli"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.4"
|
|
8
8
|
description = "Sentinel is an LLM proxy that intercepts traffic, enabling you to monitor, secure, and optimize your AI usage. This CLI tool helps you quickly set up traffic interception on this machine"
|
|
9
9
|
requires-python = ">=3.11, <4.0"
|
|
10
10
|
dependencies = [
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
set -ex
|
|
3
|
+
|
|
4
|
+
# Args
|
|
5
|
+
version=$1
|
|
6
|
+
|
|
7
|
+
# Add version on release
|
|
8
|
+
echo RELEASED_VERSION=$version > build.env
|
|
9
|
+
|
|
10
|
+
# Bump Project version
|
|
11
|
+
if [ -f "pyproject.toml" ]
|
|
12
|
+
then
|
|
13
|
+
poetry version $version
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
# Publish a package
|
|
17
|
+
if [ -f "pyproject.toml" ]
|
|
18
|
+
then
|
|
19
|
+
# Set Python version
|
|
20
|
+
if [ ! -z $PYTHON_VERSION ]
|
|
21
|
+
then
|
|
22
|
+
pyenv global ${PYTHON_VERSION}
|
|
23
|
+
pyenv version
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
# publish
|
|
27
|
+
poetry publish --build -u $POETRY_HTTP_BASIC_PYPI_USERNAME -p $POETRY_HTTP_BASIC_PYPI_PASSWORD
|
|
28
|
+
fi
|
{superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/src/superwise_sentinel_cli/cli.py
RENAMED
|
@@ -185,7 +185,10 @@ def config_providers() -> None:
|
|
|
185
185
|
"""Set the LLM providers to intercept. Use 'all' to select all supported providers."""
|
|
186
186
|
cfg = AppConfig.load()
|
|
187
187
|
while True:
|
|
188
|
-
providers = click.prompt(
|
|
188
|
+
providers = click.prompt(
|
|
189
|
+
"Choose the providers you want to route to the configured gateway (space separated)",
|
|
190
|
+
default=" ".join(cfg.providers),
|
|
191
|
+
).split()
|
|
189
192
|
if providers == ["all"]:
|
|
190
193
|
providers = VALID_PROVIDERS
|
|
191
194
|
invalid = [p for p in providers if p not in VALID_PROVIDERS]
|
{superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/src/superwise_sentinel_cli/config.py
RENAMED
|
@@ -26,7 +26,7 @@ CONFIG_FILE = CONFIG_DIR / "config.json"
|
|
|
26
26
|
_PROVIDER_CONFIG: dict[str, tuple[str, str]] = {
|
|
27
27
|
"anthropic": ("ANTHROPIC_BASE_URL", "anthropic"),
|
|
28
28
|
"openai": ("OPENAI_BASE_URL", "openai"),
|
|
29
|
-
"google": ("
|
|
29
|
+
"google": ("GOOGLE_GEMINI_BASE_URL", "gemini"),
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
VALID_PROVIDERS = list(_PROVIDER_CONFIG.keys())
|
|
@@ -7,7 +7,7 @@ import click
|
|
|
7
7
|
import docker.errors
|
|
8
8
|
from docker.models.containers import Container
|
|
9
9
|
|
|
10
|
-
CONTAINER_IMAGE = "us-central1-docker.pkg.dev/admina33d6818/
|
|
10
|
+
CONTAINER_IMAGE = "us-central1-docker.pkg.dev/admina33d6818/sentinel-public/sentinel"
|
|
11
11
|
CONTAINER_NAME = "sentinel-local"
|
|
12
12
|
CONTAINER_PORT = 8000
|
|
13
13
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/src/superwise_sentinel_cli/__init__.py
RENAMED
|
File without changes
|
{superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/src/superwise_sentinel_cli/auth.py
RENAMED
|
File without changes
|
{superwise_sentinel_cli-0.1.2 → superwise_sentinel_cli-0.1.4}/src/superwise_sentinel_cli/runner.py
RENAMED
|
File without changes
|
|
File without changes
|