cloudagent-cli 0.1.0__tar.gz → 0.1.1__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.
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/PKG-INFO +2 -2
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/pyproject.toml +2 -2
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/src/cloudagent_cli/commands/models.py +2 -3
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/src/cloudagent_cli/commands/sessions.py +3 -1
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/src/cloudagent_cli/commands/vaults.py +18 -1
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/.gitignore +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/src/cloudagent_cli/__init__.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/src/cloudagent_cli/client.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/src/cloudagent_cli/commands/__init__.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/src/cloudagent_cli/commands/agents.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/src/cloudagent_cli/commands/auth.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/src/cloudagent_cli/commands/environments.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/src/cloudagent_cli/commands/files.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/src/cloudagent_cli/config.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/src/cloudagent_cli/main.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/src/cloudagent_cli/output.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/tests/__init__.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/tests/conftest.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/tests/e2e/__init__.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/tests/e2e/conftest.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/tests/e2e/test_agents.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/tests/e2e/test_auth.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/tests/e2e/test_environments.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/tests/e2e/test_files.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/tests/e2e/test_models.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/tests/e2e/test_output_formats.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/tests/e2e/test_sessions.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/tests/e2e/test_vaults.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/tests/test_cli_commands.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/tests/test_client.py +0 -0
- {cloudagent_cli-0.1.0 → cloudagent_cli-0.1.1}/tests/test_config.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cloudagent-cli
|
|
3
|
-
Version: 0.1.
|
|
4
|
-
Summary: CLI for CloudAgent —
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: CLI for CloudAgent — CloudAgent Managed Agents compatible platform
|
|
5
5
|
Requires-Python: >=3.10
|
|
6
6
|
Requires-Dist: httpx>=0.25.0
|
|
7
7
|
Requires-Dist: rich>=13.0.0
|
|
@@ -4,8 +4,8 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "cloudagent-cli"
|
|
7
|
-
version = "0.1.
|
|
8
|
-
description = "CLI for CloudAgent —
|
|
7
|
+
version = "0.1.1"
|
|
8
|
+
description = "CLI for CloudAgent — CloudAgent Managed Agents compatible platform"
|
|
9
9
|
requires-python = ">=3.10"
|
|
10
10
|
dependencies = [
|
|
11
11
|
"typer>=0.9.0",
|
|
@@ -29,7 +29,7 @@ def register_model(
|
|
|
29
29
|
provider: str = typer.Option(..., "--provider", "-p", help="Provider name (e.g. anthropic, openai)."),
|
|
30
30
|
model_id: str = typer.Option(..., "--model", "-m", help="Model identifier (e.g. claude-opus-4-6)."),
|
|
31
31
|
api_key: str = typer.Option(..., "--api-key", "-k", help="Provider API key."),
|
|
32
|
-
display_name:
|
|
32
|
+
display_name: str = typer.Option(..., "--display-name", "-n", help="Display name for the model."),
|
|
33
33
|
base_url: Optional[str] = typer.Option(None, "--base-url", "-u"),
|
|
34
34
|
output_json: bool = JSON_FLAG,
|
|
35
35
|
) -> None:
|
|
@@ -39,9 +39,8 @@ def register_model(
|
|
|
39
39
|
"provider": provider,
|
|
40
40
|
"model_id": model_id,
|
|
41
41
|
"api_key": api_key,
|
|
42
|
+
"display_name": display_name,
|
|
42
43
|
}
|
|
43
|
-
if display_name:
|
|
44
|
-
kwargs["display_name"] = display_name
|
|
45
44
|
if base_url:
|
|
46
45
|
kwargs["base_url"] = base_url
|
|
47
46
|
try:
|
|
@@ -34,9 +34,11 @@ def create_session(
|
|
|
34
34
|
) -> None:
|
|
35
35
|
"""Create a new session."""
|
|
36
36
|
client = _client()
|
|
37
|
-
kwargs: dict = {"
|
|
37
|
+
kwargs: dict = {"agent": agent_id}
|
|
38
38
|
if environment_id:
|
|
39
39
|
kwargs["environment_id"] = environment_id
|
|
40
|
+
else:
|
|
41
|
+
kwargs["environment_id"] = "default"
|
|
40
42
|
if title:
|
|
41
43
|
kwargs["title"] = title
|
|
42
44
|
try:
|
|
@@ -90,12 +90,29 @@ def get_vault(
|
|
|
90
90
|
def create_credential(
|
|
91
91
|
vault_id: str = typer.Argument(..., help="Vault ID."),
|
|
92
92
|
display_name: str = typer.Option(..., "--name", "-n", help="Credential display name."),
|
|
93
|
+
auth_type: str = typer.Option(..., "--auth-type", "-t", help="Auth type: static_bearer or mcp_oauth."),
|
|
94
|
+
token: Optional[str] = typer.Option(None, "--token", help="Bearer token (for static_bearer)."),
|
|
95
|
+
access_token: Optional[str] = typer.Option(None, "--access-token", help="OAuth access token (for mcp_oauth)."),
|
|
96
|
+
mcp_server_url: str = typer.Option(..., "--mcp-server-url", "-s", help="MCP server URL."),
|
|
93
97
|
output_json: bool = JSON_FLAG,
|
|
94
98
|
) -> None:
|
|
95
99
|
"""Create a credential in a vault."""
|
|
100
|
+
if auth_type == "static_bearer":
|
|
101
|
+
if not token:
|
|
102
|
+
bail("--token is required for static_bearer auth type.")
|
|
103
|
+
return
|
|
104
|
+
auth: dict = {"type": "static_bearer", "token": token, "mcp_server_url": mcp_server_url}
|
|
105
|
+
elif auth_type == "mcp_oauth":
|
|
106
|
+
if not access_token:
|
|
107
|
+
bail("--access-token is required for mcp_oauth auth type.")
|
|
108
|
+
return
|
|
109
|
+
auth = {"type": "mcp_oauth", "access_token": access_token, "mcp_server_url": mcp_server_url}
|
|
110
|
+
else:
|
|
111
|
+
bail(f"Unknown auth type: {auth_type}. Use 'static_bearer' or 'mcp_oauth'.")
|
|
112
|
+
return
|
|
96
113
|
client = _client()
|
|
97
114
|
try:
|
|
98
|
-
data = client.create_credential(vault_id, display_name=display_name)
|
|
115
|
+
data = client.create_credential(vault_id, display_name=display_name, auth=auth)
|
|
99
116
|
except CloudAgentError as e:
|
|
100
117
|
bail(str(e))
|
|
101
118
|
return
|
|
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
|