naas-abi-cli 1.3.0__tar.gz → 1.4.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 (32) hide show
  1. naas_abi_cli-1.4.1/=0.9.13 +5 -0
  2. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/CHANGELOG.md +11 -0
  3. naas_abi_cli-1.4.1/PKG-INFO +242 -0
  4. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/pyproject.toml +9 -4
  5. naas_abi_cli-1.3.0/=0.9.13 +0 -6
  6. naas_abi_cli-1.3.0/PKG-INFO +0 -9
  7. naas_abi_cli-1.3.0/naas_abi_cli/cli/new/templates/project/README.md +0 -0
  8. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/.gitignore +0 -0
  9. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/Makefile +0 -0
  10. {naas_abi_cli-1.3.0/naas_abi_cli → naas_abi_cli-1.4.1}/README.md +0 -0
  11. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/__init__.py +0 -0
  12. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/cli/__init__.py +0 -0
  13. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/cli/agent.py +0 -0
  14. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/cli/chat.py +0 -0
  15. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/cli/config.py +0 -0
  16. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/cli/deploy.py +0 -0
  17. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/cli/init.py +0 -0
  18. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/cli/module.py +0 -0
  19. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/cli/new/__init__.py +0 -0
  20. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/cli/new/module.py +0 -0
  21. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/cli/new/new.py +0 -0
  22. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/cli/new/project.py +0 -0
  23. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/cli/new/templates/project/.github/workflows/release.yaml +0 -0
  24. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/cli/new/templates/project/.gitignore +0 -0
  25. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/cli/new/templates/project/Dockerfile +0 -0
  26. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1/naas_abi_cli/cli/new/templates/project}/README.md +0 -0
  27. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/cli/new/templates/project/config.yaml +0 -0
  28. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/cli/new/templates/project/pyproject.toml +0 -0
  29. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/cli/new/templates/project/{{project_name_snake}}/__init__.py +0 -0
  30. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/cli/run.py +0 -0
  31. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/cli/secret.py +0 -0
  32. {naas_abi_cli-1.3.0 → naas_abi_cli-1.4.1}/naas_abi_cli/cli/utils/Copier.py +0 -0
@@ -0,0 +1,5 @@
1
+ Collecting uv
2
+ Using cached uv-0.9.22-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
3
+ Using cached uv-0.9.22-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (22.2 MB)
4
+ Installing collected packages: uv
5
+ Successfully installed uv-0.9.22
@@ -2,6 +2,17 @@
2
2
 
3
3
  <!-- version list -->
4
4
 
5
+ ## v1.4.1 (2026-01-08)
6
+
7
+ ### Bug Fixes
8
+
9
+ - Add project urls in pyproject.toml
10
+ ([`c155efa`](https://github.com/jupyter-naas/abi/commit/c155efa2a794b44312eb90ae19ab1c0da402d3ef))
11
+
12
+
13
+ ## v1.4.0 (2026-01-08)
14
+
15
+
5
16
  ## v1.3.0 (2026-01-08)
6
17
 
7
18
  ### Features
@@ -0,0 +1,242 @@
1
+ Metadata-Version: 2.4
2
+ Name: naas-abi-cli
3
+ Version: 1.4.1
4
+ Summary: Abi cli allowing you to build your AI system.
5
+ Project-URL: Homepage, https://github.com/jupyter-naas/abi
6
+ Project-URL: Repository, https://github.com/jupyter-naas/abi/tree/main/libs/naas-abi-cli
7
+ Author-email: Maxime Jublou <maxime@naas.ai>, Florent Ravenel <florent@naas.ai>, Jeremy Ravenel <jeremy@naas.ai>
8
+ Requires-Python: <4,>=3.10
9
+ Requires-Dist: naas-abi-core[qdrant]>=1.4.0
10
+ Requires-Dist: naas-abi-marketplace[ai-chatgpt]>=1.3.3
11
+ Requires-Dist: naas-abi>=1.0.11
12
+ Description-Content-Type: text/markdown
13
+
14
+ # naas-abi-cli
15
+
16
+ Command Line Interface (CLI) tool for building and managing ABI (Agentic Brain Infrastructure) projects.
17
+
18
+ ## Overview
19
+
20
+ `naas-abi-cli` provides a comprehensive set of commands to create, configure, deploy, and interact with ABI projects. It serves as the primary entry point for developers working with the ABI framework, enabling quick project setup, agent interaction, and cloud deployment.
21
+
22
+ ## Installation
23
+
24
+ Install the CLI tool using pip:
25
+
26
+ ```bash
27
+ pip install naas-abi-cli
28
+ ```
29
+
30
+ ## Available Commands
31
+
32
+ ### Project Management
33
+
34
+ #### `abi new project <project-name> [project-path]`
35
+ Creates a new ABI project with all necessary starter files and dependencies.
36
+
37
+ **What it does:**
38
+ - Creates a new project directory (must be empty or non-existent)
39
+ - Generates project structure with configuration files, Docker setup, and Python package structure
40
+ - Automatically installs required dependencies (`naas-abi-core`, `naas-abi-marketplace`, `naas-abi`, and `naas-abi-cli`)
41
+ - Customizes project files with your project name
42
+
43
+ **Example:**
44
+ ```bash
45
+ abi new project my-abi-project
46
+ ```
47
+
48
+ #### `abi init <path>`
49
+ Initializes a new ABI project in the specified directory.
50
+
51
+ **Example:**
52
+ ```bash
53
+ abi init .
54
+ ```
55
+
56
+ ### Agent Interaction
57
+
58
+ #### `abi chat [module-name] [agent-name]`
59
+ Starts an interactive chat session with an AI agent.
60
+
61
+ **Parameters:**
62
+ - `module-name`: The module containing the agent (default: `naas_abi`)
63
+ - `agent-name`: The specific agent class to use (default: `AbiAgent`)
64
+
65
+ **What it does:**
66
+ - Loads the ABI engine and specified module
67
+ - Launches an interactive terminal chat interface
68
+ - Saves conversations to `storage/datastore/interfaces/terminal_agent/`
69
+
70
+ **Example:**
71
+ ```bash
72
+ abi chat naas_abi AbiAgent
73
+ ```
74
+
75
+ #### `abi agent list`
76
+ Lists all available agents across all loaded modules.
77
+
78
+ **What it does:**
79
+ - Loads the ABI engine with all configured modules
80
+ - Displays a formatted table showing module names and agent class names
81
+
82
+ **Example:**
83
+ ```bash
84
+ abi agent list
85
+ ```
86
+
87
+ ### Configuration Management
88
+
89
+ #### `abi config validate [--configuration-file <path>]`
90
+ Validates the ABI configuration file for correctness.
91
+
92
+ **Options:**
93
+ - `--configuration-file`: Path to configuration file (default: uses `config.yaml` from current directory)
94
+
95
+ **Example:**
96
+ ```bash
97
+ abi config validate
98
+ abi config validate --configuration-file config.prod.yaml
99
+ ```
100
+
101
+ #### `abi config render [--configuration-file <path>]`
102
+ Renders the loaded configuration as YAML output, useful for debugging and verification.
103
+
104
+ **Options:**
105
+ - `--configuration-file`: Path to configuration file (default: uses `config.yaml` from current directory)
106
+
107
+ **Example:**
108
+ ```bash
109
+ abi config render
110
+ ```
111
+
112
+ #### `abi module list`
113
+ Lists all available modules and their enabled/disabled status.
114
+
115
+ **What it does:**
116
+ - Loads the engine configuration
117
+ - Displays a formatted table showing module names and their enabled status
118
+
119
+ **Example:**
120
+ ```bash
121
+ abi module list
122
+ ```
123
+
124
+ ### Deployment
125
+
126
+ #### `abi deploy naas [-e/--env <environment>]`
127
+ Deploys your ABI project to Naas cloud infrastructure.
128
+
129
+ **Options:**
130
+ - `-e, --env`: Environment to use (default: `prod`). Determines which configuration file to load (e.g., `config.prod.yaml`, `config.yaml`)
131
+
132
+ **What it does:**
133
+ - Builds a Docker image of your ABI project
134
+ - Pushes the image to your Naas container registry
135
+ - Creates or updates a space on Naas infrastructure
136
+ - Exposes your ABI REST API at `https://{space-name}.default.space.naas.ai`
137
+
138
+ **Requirements:**
139
+ - Naas API key configured in your configuration file
140
+ - Docker installed and running
141
+ - Deploy section in your `config.yaml` file
142
+
143
+ **Example:**
144
+ ```bash
145
+ abi deploy naas
146
+ abi deploy naas --env prod
147
+ ```
148
+
149
+ ### Secret Management
150
+
151
+ #### `abi secrets naas list`
152
+ Lists all secrets stored in your Naas workspace.
153
+
154
+ **Options:**
155
+ - `--naas-api-key`: Naas API key (default: `NAAS_API_KEY` environment variable)
156
+ - `--naas-api-url`: Naas API URL (default: `https://api.naas.ai`)
157
+
158
+ **Example:**
159
+ ```bash
160
+ abi secrets naas list
161
+ ```
162
+
163
+ #### `abi secrets naas push-env-as-base64`
164
+ Pushes a local `.env` file to Naas as a base64-encoded secret.
165
+
166
+ **Options:**
167
+ - `--naas-api-key`: Naas API key (default: `NAAS_API_KEY` environment variable)
168
+ - `--naas-api-url`: Naas API URL (default: `https://api.naas.ai`)
169
+ - `--naas-secret-name`: Name for the secret in Naas (default: `abi_secrets`)
170
+ - `--env-file`: Path to the environment file (default: `.env.prod`)
171
+
172
+ **Example:**
173
+ ```bash
174
+ abi secrets naas push-env-as-base64 --env-file .env.prod
175
+ ```
176
+
177
+ #### `abi secrets naas get-base64-env`
178
+ Retrieves a base64-encoded secret from Naas and displays it as environment variables.
179
+
180
+ **Options:**
181
+ - `--naas-api-key`: Naas API key (default: `NAAS_API_KEY` environment variable)
182
+ - `--naas-api-url`: Naas API URL (default: `https://api.naas.ai`)
183
+ - `--naas-secret-name`: Name of the secret to retrieve (default: `abi_secrets`)
184
+
185
+ **Example:**
186
+ ```bash
187
+ abi secrets naas get-base64-env
188
+ ```
189
+
190
+ ### Script Execution
191
+
192
+ #### `abi run script <path>`
193
+ Runs a Python script in the context of a loaded ABI engine.
194
+
195
+ **What it does:**
196
+ - Loads the ABI engine with all configured modules
197
+ - Executes the specified Python script with access to the engine and all loaded modules
198
+
199
+ **Example:**
200
+ ```bash
201
+ abi run script scripts/my_script.py
202
+ ```
203
+
204
+ ## Architecture
205
+
206
+ The CLI is built using:
207
+ - **Click**: For command-line interface framework
208
+ - **naas-abi-core**: Core ABI engine and configuration management
209
+ - **naas-abi-marketplace**: Marketplace modules and agents
210
+ - **naas-abi**: Main ABI package
211
+
212
+ The CLI automatically detects if it's being run from within an ABI project (by checking for `pyproject.toml` with `naas-abi-cli` dependency) and uses `uv run` to ensure proper environment isolation.
213
+
214
+ ## Project Structure
215
+
216
+ When you create a new project with `abi new project`, the CLI:
217
+ 1. Uses template files from `cli/new/templates/project/`
218
+ 2. Customizes templates with your project name
219
+ 3. Sets up proper Python package structure
220
+ 4. Installs all required dependencies via `uv`
221
+
222
+ ## Integration with ABI Framework
223
+
224
+ The CLI integrates seamlessly with the ABI ecosystem:
225
+ - **Engine Loading**: Automatically loads modules and agents from your configuration
226
+ - **Configuration Management**: Validates and renders YAML configuration files
227
+ - **Cloud Deployment**: Handles Docker builds and Naas API interactions
228
+ - **Secret Management**: Integrates with Naas secret storage for secure credential management
229
+
230
+ ## Dependencies
231
+
232
+ - Python 3.10+
233
+ - `naas-abi>=1.0.6`
234
+ - `naas-abi-core[qdrant]>=1.1.2`
235
+ - `naas-abi-marketplace[ai-chatgpt]>=1.1.0`
236
+ - `uv` package manager (for dependency management)
237
+
238
+ ## See Also
239
+
240
+ - [ABI Main README](../../../README.md) - Complete ABI framework documentation
241
+ - [naas-abi-core](../naas-abi-core/) - Core engine documentation
242
+ - [naas-abi-marketplace](../naas-abi-marketplace/) - Marketplace modules documentation
@@ -1,19 +1,24 @@
1
1
  [project]
2
2
  name = "naas-abi-cli"
3
- version = "1.3.0"
3
+ version = "1.4.1"
4
4
  description = "Abi cli allowing you to build your AI system."
5
5
  authors = [{ name = "Maxime Jublou", email = "maxime@naas.ai" },{ name = "Florent Ravenel", email = "florent@naas.ai" }, { name = "Jeremy Ravenel", email = "jeremy@naas.ai" }]
6
6
  requires-python = ">=3.10,<4"
7
7
  readme = "README.md"
8
8
  dependencies = [
9
- "naas-abi>=1.0.6",
10
- "naas-abi-core[qdrant]>=1.1.2",
11
- "naas-abi-marketplace[ai-chatgpt]>=1.1.0",
9
+ "naas-abi>=1.0.11",
10
+ "naas-abi-core[qdrant]>=1.4.0",
11
+ "naas-abi-marketplace[ai-chatgpt]>=1.3.3",
12
12
  ]
13
13
 
14
14
  [project.scripts]
15
15
  abi = "naas_abi_cli.cli:main"
16
16
 
17
+ [project.urls]
18
+ Homepage = "https://github.com/jupyter-naas/abi"
19
+ Repository = "https://github.com/jupyter-naas/abi/tree/main/libs/naas-abi-cli"
20
+
21
+
17
22
  [build-system]
18
23
  requires = ["hatchling"]
19
24
  build-backend = "hatchling.build"
@@ -1,6 +0,0 @@
1
- Collecting uv
2
- Downloading uv-0.9.22-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
3
- Downloading uv-0.9.22-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (22.2 MB)
4
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 22.2/22.2 MB 252.3 MB/s 0:00:00
5
- Installing collected packages: uv
6
- Successfully installed uv-0.9.22
@@ -1,9 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: naas-abi-cli
3
- Version: 1.3.0
4
- Summary: Abi cli allowing you to build your AI system.
5
- Author-email: Maxime Jublou <maxime@naas.ai>, Florent Ravenel <florent@naas.ai>, Jeremy Ravenel <jeremy@naas.ai>
6
- Requires-Python: <4,>=3.10
7
- Requires-Dist: naas-abi-core[qdrant]>=1.1.2
8
- Requires-Dist: naas-abi-marketplace[ai-chatgpt]>=1.1.0
9
- Requires-Dist: naas-abi>=1.0.6
File without changes
File without changes