ailtir-cli 2.1.2__tar.gz → 2.2.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 (28) hide show
  1. {ailtir_cli-2.1.2/src/ailtir_cli.egg-info → ailtir_cli-2.2.0}/PKG-INFO +1 -1
  2. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/pyproject.toml +1 -1
  3. ailtir_cli-2.2.0/src/ailtir_cli/commands/agents/__init__.py +6 -0
  4. ailtir_cli-2.2.0/src/ailtir_cli/commands/agents/profiler.py +42 -0
  5. ailtir_cli-2.1.2/src/ailtir_cli/commands/agents/research.py → ailtir_cli-2.2.0/src/ailtir_cli/commands/agents/researcher.py +4 -4
  6. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0/src/ailtir_cli.egg-info}/PKG-INFO +1 -1
  7. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/src/ailtir_cli.egg-info/SOURCES.txt +2 -1
  8. ailtir_cli-2.1.2/src/ailtir_cli/commands/agents/__init__.py +0 -5
  9. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/LICENSE +0 -0
  10. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/README.md +0 -0
  11. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/setup.cfg +0 -0
  12. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/src/ailtir_cli/__init__.py +0 -0
  13. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/src/ailtir_cli/app.py +0 -0
  14. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/src/ailtir_cli/commands/__init__.py +0 -0
  15. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/src/ailtir_cli/commands/kbs/__init__.py +0 -0
  16. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/src/ailtir_cli/commands/kbs/analyse.py +0 -0
  17. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/src/ailtir_cli/commands/kbs/chat.py +0 -0
  18. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/src/ailtir_cli/commands/kbs/list_kbs.py +0 -0
  19. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/src/ailtir_cli/commands/kbs/upload.py +0 -0
  20. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/src/ailtir_cli/commands/profiles/__init__.py +0 -0
  21. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/src/ailtir_cli/commands/profiles/get.py +0 -0
  22. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/src/ailtir_cli/commands/version.py +0 -0
  23. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/src/ailtir_cli/config.py +0 -0
  24. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/src/ailtir_cli/main.py +0 -0
  25. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/src/ailtir_cli.egg-info/dependency_links.txt +0 -0
  26. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/src/ailtir_cli.egg-info/entry_points.txt +0 -0
  27. {ailtir_cli-2.1.2 → ailtir_cli-2.2.0}/src/ailtir_cli.egg-info/requires.txt +0 -0
  28. {ailtir_cli-2.1.2 → ailtir_cli-2.2.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.1.2
3
+ Version: 2.2.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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ailtir-cli"
3
- version = "2.1.2"
3
+ version = "2.2.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"
@@ -0,0 +1,6 @@
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
@@ -0,0 +1,42 @@
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
+ data = resp.json()
41
+ _log.info("agents.profiler.complete", prompt=prompt)
42
+ _console.print(data.get("result", "No result returned."))
@@ -11,10 +11,10 @@ _console = Console()
11
11
 
12
12
 
13
13
  @agents_app.command()
14
- def research(
14
+ def researcher(
15
15
  topic: str = typer.Argument(..., help="The topic to research."),
16
16
  ) -> None:
17
- """Run the research agent on a given topic."""
17
+ """Run the researcher agent on a given topic."""
18
18
  _console.print(f"Researching: [bold]{topic}[/bold]...")
19
19
 
20
20
  token = settings.ailtir_cli_api_token
@@ -22,7 +22,7 @@ def research(
22
22
  with httpx.Client(base_url=settings.cli_api_url, timeout=120.0) as http:
23
23
  try:
24
24
  resp = http.post(
25
- "/agents/research",
25
+ "/agents/researcher",
26
26
  json={"topic": topic},
27
27
  headers={"Authorization": f"Bearer {token}"},
28
28
  )
@@ -32,5 +32,5 @@ def research(
32
32
  raise typer.Exit(1) from exc
33
33
 
34
34
  data = resp.json()
35
- _log.info("agents.research.complete", topic=topic)
35
+ _log.info("agents.researcher.complete", topic=topic)
36
36
  _console.print(data.get("result", "No result returned."))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ailtir-cli
3
- Version: 2.1.2
3
+ Version: 2.2.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
@@ -14,7 +14,8 @@ 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
16
  src/ailtir_cli/commands/agents/__init__.py
17
- src/ailtir_cli/commands/agents/research.py
17
+ src/ailtir_cli/commands/agents/profiler.py
18
+ src/ailtir_cli/commands/agents/researcher.py
18
19
  src/ailtir_cli/commands/kbs/__init__.py
19
20
  src/ailtir_cli/commands/kbs/analyse.py
20
21
  src/ailtir_cli/commands/kbs/chat.py
@@ -1,5 +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.research # noqa: F401, E402
File without changes
File without changes
File without changes