ailtir-cli 2.3.2__tar.gz → 2.4.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.
Files changed (29) hide show
  1. {ailtir_cli-2.3.2/src/ailtir_cli.egg-info → ailtir_cli-2.4.0}/PKG-INFO +8 -6
  2. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/README.md +7 -5
  3. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/pyproject.toml +1 -1
  4. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/src/ailtir_cli/app.py +2 -2
  5. ailtir_cli-2.4.0/src/ailtir_cli/commands/__init__.py +1 -0
  6. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/src/ailtir_cli/main.py +0 -1
  7. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0/src/ailtir_cli.egg-info}/PKG-INFO +8 -6
  8. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/src/ailtir_cli.egg-info/SOURCES.txt +0 -3
  9. ailtir_cli-2.3.2/src/ailtir_cli/commands/__init__.py +0 -4
  10. ailtir_cli-2.3.2/src/ailtir_cli/commands/agents/__init__.py +0 -6
  11. ailtir_cli-2.3.2/src/ailtir_cli/commands/agents/profiler.py +0 -42
  12. ailtir_cli-2.3.2/src/ailtir_cli/commands/agents/researcher.py +0 -36
  13. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/LICENSE +0 -0
  14. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/setup.cfg +0 -0
  15. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/src/ailtir_cli/__init__.py +0 -0
  16. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/src/ailtir_cli/commands/kbs/__init__.py +0 -0
  17. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/src/ailtir_cli/commands/kbs/analyse.py +0 -0
  18. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/src/ailtir_cli/commands/kbs/chat.py +0 -0
  19. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/src/ailtir_cli/commands/kbs/list_kbs.py +0 -0
  20. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/src/ailtir_cli/commands/kbs/upload.py +0 -0
  21. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/src/ailtir_cli/commands/profiles/__init__.py +0 -0
  22. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/src/ailtir_cli/commands/profiles/delete.py +0 -0
  23. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/src/ailtir_cli/commands/profiles/get.py +0 -0
  24. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/src/ailtir_cli/commands/version.py +0 -0
  25. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/src/ailtir_cli/config.py +0 -0
  26. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/src/ailtir_cli.egg-info/dependency_links.txt +0 -0
  27. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/src/ailtir_cli.egg-info/entry_points.txt +0 -0
  28. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/src/ailtir_cli.egg-info/requires.txt +0 -0
  29. {ailtir_cli-2.3.2 → ailtir_cli-2.4.0}/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.3.2
3
+ Version: 2.4.0
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
@@ -19,15 +19,17 @@ Dynamic: license-file
19
19
 
20
20
  # ailtir-cli
21
21
 
22
- A CLI tool for interacting with Ailtir knowledge bases. Upload documents, trigger analysis, and query your knowledge bases from the terminal.
22
+ A CLI tool for interacting with Ailtir knowledge bases and user profiles from
23
+ the terminal.
23
24
 
24
25
  ## What is ailtir-cli?
25
26
 
26
27
  The Ailtir CLI provides commands for:
27
- - **upload**: Upload a ZIP archive of documents to Ailtir storage
28
- - **analyse**: Trigger knowledge base creation and analysis
29
- - **list**: List all knowledge bases in your account
30
- - **chat**: Ask questions answered using documents in a knowledge base (RAG)
28
+ - **kbs upload**: Upload a ZIP archive of documents to Ailtir storage
29
+ - **kbs analyse**: Trigger knowledge base creation and analysis
30
+ - **kbs list**: List all knowledge bases in your account
31
+ - **kbs chat**: Ask questions answered using documents in a knowledge base (RAG)
32
+ - **profiles get/delete**: Manage the authenticated user's profile
31
33
  - **version**: Print the CLI version
32
34
 
33
35
  ## Installation
@@ -1,14 +1,16 @@
1
1
  # ailtir-cli
2
2
 
3
- A CLI tool for interacting with Ailtir knowledge bases. Upload documents, trigger analysis, and query your knowledge bases from the terminal.
3
+ A CLI tool for interacting with Ailtir knowledge bases and user profiles from
4
+ the terminal.
4
5
 
5
6
  ## What is ailtir-cli?
6
7
 
7
8
  The Ailtir CLI provides commands for:
8
- - **upload**: Upload a ZIP archive of documents to Ailtir storage
9
- - **analyse**: Trigger knowledge base creation and analysis
10
- - **list**: List all knowledge bases in your account
11
- - **chat**: Ask questions answered using documents in a knowledge base (RAG)
9
+ - **kbs upload**: Upload a ZIP archive of documents to Ailtir storage
10
+ - **kbs analyse**: Trigger knowledge base creation and analysis
11
+ - **kbs list**: List all knowledge bases in your account
12
+ - **kbs chat**: Ask questions answered using documents in a knowledge base (RAG)
13
+ - **profiles get/delete**: Manage the authenticated user's profile
12
14
  - **version**: Print the CLI version
13
15
 
14
16
  ## Installation
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ailtir-cli"
3
- version = "2.3.2"
3
+ version = "2.4.0"
4
4
  description = "Ailtir CLI — upload, analyse, list, and chat with knowledge bases"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.13"
@@ -3,7 +3,6 @@ import sys
3
3
  import typer
4
4
  from rich.console import Console
5
5
 
6
- from ailtir_cli.commands.agents import agents_app
7
6
  from ailtir_cli.commands.kbs import kbs_app
8
7
  from ailtir_cli.commands.profiles import profiles_app
9
8
 
@@ -11,10 +10,11 @@ _console = Console(stderr=True)
11
10
  _DOCS_URL = "https://team-ailtir.github.io/ailtir-cli/"
12
11
 
13
12
  app = typer.Typer(name="ailtir", help="The Ailtir CLI", no_args_is_help=True)
14
- app.add_typer(agents_app, name="agents")
15
13
  app.add_typer(kbs_app, name="kbs")
16
14
  app.add_typer(profiles_app, name="profiles")
17
15
 
16
+ import ailtir_cli.commands.version # noqa: E402,F401
17
+
18
18
 
19
19
  @app.callback()
20
20
  def _check_config(ctx: typer.Context) -> None:
@@ -0,0 +1 @@
1
+ """Command package for ailtir-cli."""
@@ -1,6 +1,5 @@
1
1
  """Entrypoint for the ailtir CLI."""
2
2
 
3
- import ailtir_cli.commands # noqa: F401 — registers all commands on app
4
3
  from ailtir_cli.app import app
5
4
 
6
5
  if __name__ == "__main__":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ailtir-cli
3
- Version: 2.3.2
3
+ Version: 2.4.0
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
@@ -19,15 +19,17 @@ Dynamic: license-file
19
19
 
20
20
  # ailtir-cli
21
21
 
22
- A CLI tool for interacting with Ailtir knowledge bases. Upload documents, trigger analysis, and query your knowledge bases from the terminal.
22
+ A CLI tool for interacting with Ailtir knowledge bases and user profiles from
23
+ the terminal.
23
24
 
24
25
  ## What is ailtir-cli?
25
26
 
26
27
  The Ailtir CLI provides commands for:
27
- - **upload**: Upload a ZIP archive of documents to Ailtir storage
28
- - **analyse**: Trigger knowledge base creation and analysis
29
- - **list**: List all knowledge bases in your account
30
- - **chat**: Ask questions answered using documents in a knowledge base (RAG)
28
+ - **kbs upload**: Upload a ZIP archive of documents to Ailtir storage
29
+ - **kbs analyse**: Trigger knowledge base creation and analysis
30
+ - **kbs list**: List all knowledge bases in your account
31
+ - **kbs chat**: Ask questions answered using documents in a knowledge base (RAG)
32
+ - **profiles get/delete**: Manage the authenticated user's profile
31
33
  - **version**: Print the CLI version
32
34
 
33
35
  ## Installation
@@ -13,9 +13,6 @@ src/ailtir_cli.egg-info/requires.txt
13
13
  src/ailtir_cli.egg-info/top_level.txt
14
14
  src/ailtir_cli/commands/__init__.py
15
15
  src/ailtir_cli/commands/version.py
16
- src/ailtir_cli/commands/agents/__init__.py
17
- src/ailtir_cli/commands/agents/profiler.py
18
- src/ailtir_cli/commands/agents/researcher.py
19
16
  src/ailtir_cli/commands/kbs/__init__.py
20
17
  src/ailtir_cli/commands/kbs/analyse.py
21
18
  src/ailtir_cli/commands/kbs/chat.py
@@ -1,4 +0,0 @@
1
- import ailtir_cli.commands.agents # noqa: F401
2
- import ailtir_cli.commands.kbs # noqa: F401
3
- import ailtir_cli.commands.profiles # noqa: F401
4
- import ailtir_cli.commands.version # noqa: F401
@@ -1,6 +0,0 @@
1
- import typer
2
-
3
- agents_app = typer.Typer(name="agents", help="Run AI agent workflows.", no_args_is_help=True)
4
-
5
- import ailtir_cli.commands.agents.profiler # noqa: F401, E402
6
- import ailtir_cli.commands.agents.researcher # noqa: F401, E402
@@ -1,42 +0,0 @@
1
- import httpx
2
- import structlog
3
- import typer
4
- from rich.console import Console
5
-
6
- from ailtir_cli.commands.agents import agents_app
7
- from ailtir_cli.config import settings
8
-
9
- _log = structlog.get_logger(__name__)
10
- _console = Console()
11
-
12
-
13
- @agents_app.command()
14
- def profiler(
15
- prompt: str = typer.Argument(None, help="Optional prompt for the profiler agent."),
16
- url: str = typer.Argument(None, help="Optional company URL to profile."),
17
- ) -> None:
18
- """Run the profiler agent with an optional prompt and company URL."""
19
- _console.print("Profiling...")
20
-
21
- token = settings.ailtir_cli_api_token
22
- body: dict = {}
23
- if prompt is not None:
24
- body["prompt"] = prompt
25
- if url is not None:
26
- body["company_url"] = url
27
-
28
- with httpx.Client(base_url=settings.cli_api_url, timeout=120.0) as http:
29
- try:
30
- resp = http.post(
31
- "/agents/profiler",
32
- json=body,
33
- headers={"Authorization": f"Bearer {token}"},
34
- )
35
- resp.raise_for_status()
36
- except httpx.HTTPStatusError as exc:
37
- _console.print(f"[red]Error: {exc.response.status_code}[/red]")
38
- raise typer.Exit(1) from exc
39
-
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]")
@@ -1,36 +0,0 @@
1
- import httpx
2
- import structlog
3
- import typer
4
- from rich.console import Console
5
-
6
- from ailtir_cli.commands.agents import agents_app
7
- from ailtir_cli.config import settings
8
-
9
- _log = structlog.get_logger(__name__)
10
- _console = Console()
11
-
12
-
13
- @agents_app.command()
14
- def researcher(
15
- topic: str = typer.Argument(..., help="The topic to research."),
16
- ) -> None:
17
- """Run the researcher agent on a given topic."""
18
- _console.print(f"Researching: [bold]{topic}[/bold]...")
19
-
20
- token = settings.ailtir_cli_api_token
21
-
22
- with httpx.Client(base_url=settings.cli_api_url, timeout=120.0) as http:
23
- try:
24
- resp = http.post(
25
- "/agents/researcher",
26
- json={"topic": topic},
27
- headers={"Authorization": f"Bearer {token}"},
28
- )
29
- resp.raise_for_status()
30
- except httpx.HTTPStatusError as exc:
31
- _console.print(f"[red]Error: {exc.response.status_code}[/red]")
32
- raise typer.Exit(1) from exc
33
-
34
- data = resp.json()
35
- _log.info("agents.researcher.complete", topic=topic)
36
- _console.print(data.get("result", "No result returned."))
File without changes
File without changes