ailtir-cli 2.2.0__tar.gz → 2.3.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.
Files changed (28) hide show
  1. {ailtir_cli-2.2.0/src/ailtir_cli.egg-info → ailtir_cli-2.3.1}/PKG-INFO +1 -1
  2. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/pyproject.toml +1 -1
  3. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli/commands/agents/profiler.py +3 -3
  4. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli/commands/profiles/__init__.py +1 -0
  5. ailtir_cli-2.3.1/src/ailtir_cli/commands/profiles/delete.py +30 -0
  6. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli/commands/profiles/get.py +4 -6
  7. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1/src/ailtir_cli.egg-info}/PKG-INFO +1 -1
  8. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli.egg-info/SOURCES.txt +1 -0
  9. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/LICENSE +0 -0
  10. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/README.md +0 -0
  11. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/setup.cfg +0 -0
  12. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli/__init__.py +0 -0
  13. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli/app.py +0 -0
  14. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli/commands/__init__.py +0 -0
  15. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli/commands/agents/__init__.py +0 -0
  16. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli/commands/agents/researcher.py +0 -0
  17. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli/commands/kbs/__init__.py +0 -0
  18. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli/commands/kbs/analyse.py +0 -0
  19. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli/commands/kbs/chat.py +0 -0
  20. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli/commands/kbs/list_kbs.py +0 -0
  21. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli/commands/kbs/upload.py +0 -0
  22. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli/commands/version.py +0 -0
  23. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli/config.py +0 -0
  24. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli/main.py +0 -0
  25. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli.egg-info/dependency_links.txt +0 -0
  26. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli.egg-info/entry_points.txt +0 -0
  27. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli.egg-info/requires.txt +0 -0
  28. {ailtir_cli-2.2.0 → ailtir_cli-2.3.1}/src/ailtir_cli.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ailtir-cli
3
- Version: 2.2.0
3
+ Version: 2.3.1
4
4
  Summary: Ailtir CLI — upload, analyse, list, and chat with knowledge bases
5
5
  License-Expression: MIT
6
6
  Project-URL: Homepage, https://ailtir.ai
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ailtir-cli"
3
- version = "2.2.0"
3
+ version = "2.3.1"
4
4
  description = "Ailtir CLI — upload, analyse, list, and chat with knowledge bases"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.13"
@@ -37,6 +37,6 @@ def profiler(
37
37
  _console.print(f"[red]Error: {exc.response.status_code}[/red]")
38
38
  raise typer.Exit(1) from exc
39
39
 
40
- data = resp.json()
41
- _log.info("agents.profiler.complete", prompt=prompt)
42
- _console.print(data.get("result", "No result returned."))
40
+ job_id = resp.json().get("job_id", "")
41
+ _log.info("agents.profiler.started", job_id=job_id)
42
+ _console.print(f"[green]Profiler job started.[/green] job_id: [bold]{job_id}[/bold]")
@@ -2,4 +2,5 @@ import typer
2
2
 
3
3
  profiles_app = typer.Typer(name="profiles", help="Manage user profiles.", no_args_is_help=True)
4
4
 
5
+ import ailtir_cli.commands.profiles.delete # noqa: F401, E402
5
6
  import ailtir_cli.commands.profiles.get # noqa: F401, E402
@@ -0,0 +1,30 @@
1
+ import httpx
2
+ import structlog
3
+ import typer
4
+ from rich.console import Console
5
+
6
+ from ailtir_cli.commands.profiles import profiles_app
7
+ from ailtir_cli.config import settings
8
+
9
+ _log = structlog.get_logger(__name__)
10
+ _console = Console()
11
+
12
+
13
+ @profiles_app.command()
14
+ def delete() -> None:
15
+ """Delete the profile for the authenticated user."""
16
+ token = settings.ailtir_cli_api_token
17
+
18
+ with httpx.Client(base_url=settings.cli_api_url, timeout=30.0) as http:
19
+ try:
20
+ resp = http.delete(
21
+ "/profiles",
22
+ headers={"Authorization": f"Bearer {token}"},
23
+ )
24
+ resp.raise_for_status()
25
+ except httpx.HTTPStatusError as exc:
26
+ _console.print(f"[red]Error: {exc.response.status_code}[/red]")
27
+ raise typer.Exit(1) from exc
28
+
29
+ _log.info("profiles.delete.complete")
30
+ _console.print("[green]Profile deleted.[/green]")
@@ -11,16 +11,14 @@ _console = Console()
11
11
 
12
12
 
13
13
  @profiles_app.command()
14
- def get(
15
- user_id: str = typer.Argument(..., help="The user ID whose profile to fetch."),
16
- ) -> None:
17
- """Fetch the profile for a given user ID."""
14
+ def get() -> None:
15
+ """Fetch the profile for the authenticated user."""
18
16
  token = settings.ailtir_cli_api_token
19
17
 
20
18
  with httpx.Client(base_url=settings.cli_api_url, timeout=30.0) as http:
21
19
  try:
22
20
  resp = http.get(
23
- f"/profiles/{user_id}",
21
+ "/profiles",
24
22
  headers={"Authorization": f"Bearer {token}"},
25
23
  )
26
24
  resp.raise_for_status()
@@ -29,6 +27,6 @@ def get(
29
27
  raise typer.Exit(1) from exc
30
28
 
31
29
  data = resp.json()
32
- _log.info("profiles.get.complete", user_id=user_id)
30
+ _log.info("profiles.get.complete")
33
31
  _console.print(f"[green]id[/green]: {data.get('id', '')}")
34
32
  _console.print(f"[green]user_id[/green]: {data.get('user_id', '')}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ailtir-cli
3
- Version: 2.2.0
3
+ Version: 2.3.1
4
4
  Summary: Ailtir CLI — upload, analyse, list, and chat with knowledge bases
5
5
  License-Expression: MIT
6
6
  Project-URL: Homepage, https://ailtir.ai
@@ -22,4 +22,5 @@ src/ailtir_cli/commands/kbs/chat.py
22
22
  src/ailtir_cli/commands/kbs/list_kbs.py
23
23
  src/ailtir_cli/commands/kbs/upload.py
24
24
  src/ailtir_cli/commands/profiles/__init__.py
25
+ src/ailtir_cli/commands/profiles/delete.py
25
26
  src/ailtir_cli/commands/profiles/get.py
File without changes
File without changes
File without changes