ragfly-cli 2.0.1__tar.gz → 2.1.0__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.
- {ragfly_cli-2.0.1/ragfly_cli.egg-info → ragfly_cli-2.1.0}/PKG-INFO +2 -2
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/README.md +1 -1
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/pyproject.toml +1 -1
- ragfly_cli-2.1.0/ragfly_cli/__init__.py +1 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/ragfly_cli/cli.py +12 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0/ragfly_cli.egg-info}/PKG-INFO +2 -2
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/tests/test_surface_parity_cli.py +12 -0
- ragfly_cli-2.0.1/ragfly_cli/__init__.py +0 -1
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/LICENSE +0 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/ragfly_cli/__main__.py +0 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/ragfly_cli/_http.py +0 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/ragfly_cli/_runtime.py +0 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/ragfly_cli/cloud_commands.py +0 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/ragfly_cli/config.py +0 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/ragfly_cli/grupo_activo.py +0 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/ragfly_cli/keyring_store.py +0 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/ragfly_cli/oop/__init__.py +0 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/ragfly_cli/oop/cli_command.py +0 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/ragfly_cli/oop/http_client.py +0 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/ragfly_cli/version_check.py +0 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/ragfly_cli.egg-info/SOURCES.txt +0 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/ragfly_cli.egg-info/dependency_links.txt +0 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/ragfly_cli.egg-info/entry_points.txt +0 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/ragfly_cli.egg-info/requires.txt +0 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/ragfly_cli.egg-info/top_level.txt +0 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/setup.cfg +0 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/tests/test_agent_context_cli.py +0 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/tests/test_api_key_group_override.py +0 -0
- {ragfly_cli-2.0.1 → ragfly_cli-2.1.0}/tests/test_login_summary_cli.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ragfly-cli
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: RAGfly CLI — operate RAGfly from the terminal and CI (login + cloud API). Lightweight, no desktop dependencies.
|
|
5
5
|
Author: CAB Ltda
|
|
6
6
|
License: MIT
|
|
@@ -76,7 +76,7 @@ ragfly
|
|
|
76
76
|
├── login / logout / version
|
|
77
77
|
└── cloud ← the English REST /v1 contract of api.ragfly.ai
|
|
78
78
|
├── me
|
|
79
|
-
├── workspace set [WORKSPACE_CODE] | set --clear
|
|
79
|
+
├── workspace set [WORKSPACE_CODE] | set --clear | unset
|
|
80
80
|
├── area set [AREA_CODE] | set --release | list
|
|
81
81
|
├── location list
|
|
82
82
|
├── group list | switch | clear (signed-in person)
|
|
@@ -55,7 +55,7 @@ ragfly
|
|
|
55
55
|
├── login / logout / version
|
|
56
56
|
└── cloud ← the English REST /v1 contract of api.ragfly.ai
|
|
57
57
|
├── me
|
|
58
|
-
├── workspace set [WORKSPACE_CODE] | set --clear
|
|
58
|
+
├── workspace set [WORKSPACE_CODE] | set --clear | unset
|
|
59
59
|
├── area set [AREA_CODE] | set --release | list
|
|
60
60
|
├── location list
|
|
61
61
|
├── group list | switch | clear (signed-in person)
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ragfly-cli"
|
|
7
|
-
version = "2.0
|
|
7
|
+
version = "2.1.0"
|
|
8
8
|
description = "RAGfly CLI — operate RAGfly from the terminal and CI (login + cloud API). Lightweight, no desktop dependencies."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.1.0"
|
|
@@ -272,6 +272,18 @@ def cloud_workspace_set(workspace_code: str | None, release: bool, output: str):
|
|
|
272
272
|
console.print(f"[green]✓ Active workspace:[/green] [bold]{active}[/bold]")
|
|
273
273
|
|
|
274
274
|
|
|
275
|
+
@cloud_workspace.command("unset")
|
|
276
|
+
@click.option("-o", "--output", type=OUTPUT_TABLE, default="table")
|
|
277
|
+
def cloud_workspace_unset(output: str):
|
|
278
|
+
"""Release the workspace focus (same as `set --clear`): use all authorized workspaces."""
|
|
279
|
+
data = _v1("DELETE", "/v1/session/active-workspace")
|
|
280
|
+
if output == "json":
|
|
281
|
+
_emit_json(data)
|
|
282
|
+
return
|
|
283
|
+
active = data.get("active_workspace") or "all authorized workspaces"
|
|
284
|
+
console.print(f"[green]✓ Active workspace:[/green] [bold]{active}[/bold]")
|
|
285
|
+
|
|
286
|
+
|
|
275
287
|
# ── cloud area / cloud location ─────────────────────────────────────────────
|
|
276
288
|
|
|
277
289
|
HIERARCHY_COLUMNS = [("Code", "code"), ("Name", "name"), ("Parent", "parent_code"), ("Depth", "depth"),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ragfly-cli
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: RAGfly CLI — operate RAGfly from the terminal and CI (login + cloud API). Lightweight, no desktop dependencies.
|
|
5
5
|
Author: CAB Ltda
|
|
6
6
|
License: MIT
|
|
@@ -76,7 +76,7 @@ ragfly
|
|
|
76
76
|
├── login / logout / version
|
|
77
77
|
└── cloud ← the English REST /v1 contract of api.ragfly.ai
|
|
78
78
|
├── me
|
|
79
|
-
├── workspace set [WORKSPACE_CODE] | set --clear
|
|
79
|
+
├── workspace set [WORKSPACE_CODE] | set --clear | unset
|
|
80
80
|
├── area set [AREA_CODE] | set --release | list
|
|
81
81
|
├── location list
|
|
82
82
|
├── group list | switch | clear (signed-in person)
|
|
@@ -114,3 +114,15 @@ def test_workspace_clear_is_the_published_flag_and_release_stays_an_alias(wire):
|
|
|
114
114
|
assert run("cloud", "workspace", "set", "--clear").exit_code == 0
|
|
115
115
|
assert run("cloud", "workspace", "set", "--release").exit_code == 0
|
|
116
116
|
assert [c["json"] for c in wire.calls] == [{"workspace_code": None}, {"workspace_code": None}]
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
def test_workspace_unset_calls_the_delete_route_and_matches_set_clear(wire):
|
|
120
|
+
"""`cloud workspace unset` is `DELETE /v1/session/active-workspace`, the same release as `set --clear`."""
|
|
121
|
+
wire.reply = httpx.Response(200, json={"active_workspace": None})
|
|
122
|
+
result = run("cloud", "workspace", "unset", "-o", "json")
|
|
123
|
+
assert result.exit_code == 0, result.output
|
|
124
|
+
[call] = wire.calls
|
|
125
|
+
assert call["method"] == "DELETE"
|
|
126
|
+
assert call["url"].endswith("/v1/session/active-workspace")
|
|
127
|
+
assert not call.get("json")
|
|
128
|
+
assert json.loads(result.output) == {"active_workspace": None}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.0.1"
|
|
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
|