jvcli 2.0.19__py3-none-any.whl → 2.0.20__py3-none-any.whl
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.
- jvcli/__init__.py +1 -1
- jvcli/commands/server.py +3 -1
- jvcli/templates/2.0.0/project/README.md +509 -16
- jvcli/templates/2.0.0/project/env.example +2 -2
- jvcli-2.0.20.dist-info/METADATA +644 -0
- {jvcli-2.0.19.dist-info → jvcli-2.0.20.dist-info}/RECORD +10 -10
- {jvcli-2.0.19.dist-info → jvcli-2.0.20.dist-info}/WHEEL +1 -1
- jvcli-2.0.19.dist-info/METADATA +0 -422
- {jvcli-2.0.19.dist-info → jvcli-2.0.20.dist-info}/entry_points.txt +0 -0
- {jvcli-2.0.19.dist-info → jvcli-2.0.20.dist-info}/licenses/LICENSE +0 -0
- {jvcli-2.0.19.dist-info → jvcli-2.0.20.dist-info}/top_level.txt +0 -0
jvcli-2.0.19.dist-info/METADATA
DELETED
@@ -1,422 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.4
|
2
|
-
Name: jvcli
|
3
|
-
Version: 2.0.19
|
4
|
-
Summary: CLI tool for Jivas Package Repository
|
5
|
-
Home-page: https://github.com/TrueSelph/jvcli
|
6
|
-
Author: TrueSelph Inc.
|
7
|
-
Author-email: admin@trueselph.com
|
8
|
-
Requires-Python: >=3.12
|
9
|
-
Description-Content-Type: text/markdown
|
10
|
-
License-File: LICENSE
|
11
|
-
Requires-Dist: click>=8.1.8
|
12
|
-
Requires-Dist: requests>=2.32.3
|
13
|
-
Requires-Dist: packaging>=24.2
|
14
|
-
Requires-Dist: pyaml>=25.1.0
|
15
|
-
Requires-Dist: jac-cloud==0.1.20
|
16
|
-
Requires-Dist: streamlit>=1.42.0
|
17
|
-
Requires-Dist: streamlit-elements>=0.1.0
|
18
|
-
Requires-Dist: streamlit-router>=0.1.8
|
19
|
-
Requires-Dist: streamlit-javascript>=0.1.5
|
20
|
-
Requires-Dist: python-dotenv>=1.0.0
|
21
|
-
Provides-Extra: dev
|
22
|
-
Requires-Dist: pre-commit; extra == "dev"
|
23
|
-
Requires-Dist: pytest; extra == "dev"
|
24
|
-
Requires-Dist: pytest-mock; extra == "dev"
|
25
|
-
Requires-Dist: pytest-cov; extra == "dev"
|
26
|
-
Dynamic: author
|
27
|
-
Dynamic: author-email
|
28
|
-
Dynamic: description
|
29
|
-
Dynamic: description-content-type
|
30
|
-
Dynamic: home-page
|
31
|
-
Dynamic: license-file
|
32
|
-
Dynamic: provides-extra
|
33
|
-
Dynamic: requires-dist
|
34
|
-
Dynamic: requires-python
|
35
|
-
Dynamic: summary
|
36
|
-
|
37
|
-
# JIVAS Command Line Interface (JVCLI)
|
38
|
-
|
39
|
-

|
40
|
-

|
41
|
-

|
42
|
-

|
43
|
-

|
44
|
-
|
45
|
-
`jvcli` is a powerful command-line interface tool designed to streamline interactions with the Jivas Package Repository ([https://jpr.trueselph.com/](https://jpr.trueselph.com/)). It simplifies package management, user authentication, and namespace operations, ensuring seamless software development and deployment. It allows you to create, publish, update, download, and get information about various resources such as actions and agents.
|
46
|
-
|
47
|
-
## Installation
|
48
|
-
|
49
|
-
To install `jvcli`, use `pip`:
|
50
|
-
|
51
|
-
```sh
|
52
|
-
pip install jvcli
|
53
|
-
```
|
54
|
-
|
55
|
-
## Usage
|
56
|
-
|
57
|
-
To use `jvcli`, you need to log in first:
|
58
|
-
|
59
|
-
```sh
|
60
|
-
jvcli login
|
61
|
-
```
|
62
|
-
|
63
|
-
After logging in, you can use any of the available commands. For example, to create a new action:
|
64
|
-
|
65
|
-
```sh
|
66
|
-
jvcli create action --name my_action --version 0.0.1 --description "My first action"
|
67
|
-
```
|
68
|
-
|
69
|
-
## Command Reference
|
70
|
-
|
71
|
-
Here's a comprehensive guide to all available JVCLI commands:
|
72
|
-
|
73
|
-
### Authentication Commands
|
74
|
-
|
75
|
-
#### `jvcli login`
|
76
|
-
Login to the Jivas Package Repository.
|
77
|
-
|
78
|
-
```sh
|
79
|
-
jvcli login
|
80
|
-
```
|
81
|
-
|
82
|
-
#### `jvcli signup`
|
83
|
-
Create a new account on the Jivas Package Repository.
|
84
|
-
|
85
|
-
```sh
|
86
|
-
jvcli signup
|
87
|
-
```
|
88
|
-
|
89
|
-
#### `jvcli logout`
|
90
|
-
Log out from the Jivas Package Repository.
|
91
|
-
|
92
|
-
```sh
|
93
|
-
jvcli logout
|
94
|
-
```
|
95
|
-
|
96
|
-
### Project Management
|
97
|
-
|
98
|
-
#### `jvcli startproject`
|
99
|
-
Create a new Jivas project with scaffolding.
|
100
|
-
|
101
|
-
```sh
|
102
|
-
jvcli startproject my_project
|
103
|
-
# With specific version
|
104
|
-
jvcli startproject my_project --version 2.0.0
|
105
|
-
# Without .env file
|
106
|
-
jvcli startproject my_project --no-env
|
107
|
-
```
|
108
|
-
|
109
|
-
Options:
|
110
|
-
- `--version`: Jivas project version to use for scaffolding (default: latest)
|
111
|
-
- `--no-env`: Skip generating the .env file
|
112
|
-
|
113
|
-
#### `jvcli clean`
|
114
|
-
Clean the Jac files in the current directory and subdirectories.
|
115
|
-
|
116
|
-
```sh
|
117
|
-
jvcli clean
|
118
|
-
```
|
119
|
-
|
120
|
-
### Create Commands
|
121
|
-
|
122
|
-
#### `jvcli create action`
|
123
|
-
Create a new action with its folder structure and files.
|
124
|
-
|
125
|
-
```sh
|
126
|
-
jvcli create action --name custom_action
|
127
|
-
# With more options
|
128
|
-
jvcli create action --name custom_action --version 1.0.0 --description "A custom action" --type interact_action --path ./my_actions
|
129
|
-
```
|
130
|
-
|
131
|
-
Options:
|
132
|
-
- `--name`: Name of the action (must be snake_case)
|
133
|
-
- `--version`: Version of the action (default: 0.0.1)
|
134
|
-
- `--jivas_version`: Version of Jivas (default: latest supported)
|
135
|
-
- `--description`: Description of the action
|
136
|
-
- `--type`: Type of action (action, interact_action, vector_store_action)
|
137
|
-
- `--singleton`: Indicate if the action is singleton (default: true)
|
138
|
-
- `--path`: Directory to create the action folder in (default: ./actions)
|
139
|
-
- `--namespace`: Namespace for the action (default: from token)
|
140
|
-
|
141
|
-
#### `jvcli create agent`
|
142
|
-
Create a new agent with its folder and associated files.
|
143
|
-
|
144
|
-
```sh
|
145
|
-
jvcli create agent --name custom_agent
|
146
|
-
# With more options
|
147
|
-
jvcli create agent --name custom_agent --version 1.0.0 --description "A custom agent" --path ./my_agents
|
148
|
-
```
|
149
|
-
|
150
|
-
Options:
|
151
|
-
- `--name`: Name of the agent (must be snake_case)
|
152
|
-
- `--version`: Version of the agent (default: 0.0.1)
|
153
|
-
- `--jivas_version`: Version of Jivas (default: latest supported)
|
154
|
-
- `--description`: Description of the agent (default: "A jivas agent autocreated by the jvcli")
|
155
|
-
- `--path`: Directory to create the agent (default: ./daf)
|
156
|
-
- `--namespace`: Namespace for the agent (default: from token)
|
157
|
-
|
158
|
-
#### `jvcli create namespace`
|
159
|
-
Create a new namespace through the API.
|
160
|
-
|
161
|
-
```sh
|
162
|
-
jvcli create namespace --name my-namespace
|
163
|
-
```
|
164
|
-
|
165
|
-
Options:
|
166
|
-
- `--name`: Name of the namespace
|
167
|
-
|
168
|
-
### Publish Commands
|
169
|
-
|
170
|
-
#### `jvcli publish action`
|
171
|
-
Publish an action to the Jivas environment.
|
172
|
-
|
173
|
-
```sh
|
174
|
-
jvcli publish action --path ./actions/my_action
|
175
|
-
# With visibility option
|
176
|
-
jvcli publish action --path ./actions/my_action --visibility private
|
177
|
-
# Generate package only without publishing
|
178
|
-
jvcli publish action --path ./actions/my_action --package-only --output ./packages
|
179
|
-
```
|
180
|
-
|
181
|
-
Options:
|
182
|
-
- `--path`: Path to the directory containing the action to publish
|
183
|
-
- `--visibility`: Visibility of the published action (public/private, default: public)
|
184
|
-
- `--package-only`: Only generate the package without publishing
|
185
|
-
- `--output`, `-o`: Output path for generated package
|
186
|
-
- `--namespace`: Namespace of the package (required when --path is a tarball)
|
187
|
-
|
188
|
-
#### `jvcli publish agent`
|
189
|
-
Publish an agent to the Jivas environment.
|
190
|
-
|
191
|
-
```sh
|
192
|
-
jvcli publish agent --path ./daf/my_agent
|
193
|
-
# With visibility option
|
194
|
-
jvcli publish agent --path ./daf/my_agent --visibility private
|
195
|
-
# Generate package only without publishing
|
196
|
-
jvcli publish agent --path ./daf/my_agent --package-only --output ./packages
|
197
|
-
```
|
198
|
-
|
199
|
-
Options:
|
200
|
-
- `--path`: Path to the directory containing the agent to publish
|
201
|
-
- `--visibility`: Visibility of the published agent (public/private, default: public)
|
202
|
-
- `--package-only`: Only generate the package without publishing
|
203
|
-
- `--output`, `-o`: Output path for generated package
|
204
|
-
- `--namespace`: Namespace of the package (required when --path is a tarball)
|
205
|
-
|
206
|
-
### Download Commands
|
207
|
-
|
208
|
-
#### `jvcli download action`
|
209
|
-
Download a JIVAS action package.
|
210
|
-
|
211
|
-
```sh
|
212
|
-
jvcli download action my_namespace/custom_action
|
213
|
-
# With specific version
|
214
|
-
jvcli download action my_namespace/custom_action 1.0.0
|
215
|
-
# With custom path
|
216
|
-
jvcli download action my_namespace/custom_action --path ./my_custom_actions
|
217
|
-
```
|
218
|
-
|
219
|
-
Options:
|
220
|
-
- `name`: Name of the action to download
|
221
|
-
- `version`: Version of the action (optional, default: latest)
|
222
|
-
- `--path`: Directory to download the action (optional)
|
223
|
-
|
224
|
-
#### `jvcli download agent`
|
225
|
-
Download a JIVAS agent package.
|
226
|
-
|
227
|
-
```sh
|
228
|
-
jvcli download agent my_namespace/custom_agent
|
229
|
-
# With specific version
|
230
|
-
jvcli download agent my_namespace/custom_agent 1.0.0
|
231
|
-
# With custom path
|
232
|
-
jvcli download agent my_namespace/custom_agent --path ./my_custom_agents
|
233
|
-
```
|
234
|
-
|
235
|
-
Options:
|
236
|
-
- `name`: Name of the agent to download
|
237
|
-
- `version`: Version of the agent (optional, default: latest)
|
238
|
-
- `--path`: Directory to download the agent (optional)
|
239
|
-
|
240
|
-
### Info Commands
|
241
|
-
|
242
|
-
#### `jvcli info action`
|
243
|
-
Get information about an action package.
|
244
|
-
|
245
|
-
```sh
|
246
|
-
jvcli info action my_namespace/custom_action
|
247
|
-
# With specific version
|
248
|
-
jvcli info action my_namespace/custom_action 1.0.0
|
249
|
-
```
|
250
|
-
|
251
|
-
Options:
|
252
|
-
- `name`: Name of the action
|
253
|
-
- `version`: Version of the action (optional, default: latest)
|
254
|
-
|
255
|
-
#### `jvcli info agent`
|
256
|
-
Get information about an agent package.
|
257
|
-
|
258
|
-
```sh
|
259
|
-
jvcli info agent my_namespace/custom_agent
|
260
|
-
# With specific version
|
261
|
-
jvcli info agent my_namespace/custom_agent 1.0.0
|
262
|
-
```
|
263
|
-
|
264
|
-
Options:
|
265
|
-
- `name`: Name of the agent
|
266
|
-
- `version`: Version of the agent (optional, default: latest)
|
267
|
-
|
268
|
-
### Update Commands
|
269
|
-
|
270
|
-
#### `jvcli update namespace`
|
271
|
-
Update operations for a specified namespace.
|
272
|
-
|
273
|
-
```sh
|
274
|
-
# Invite a user to a namespace
|
275
|
-
jvcli update namespace my-namespace --invite user@example.com
|
276
|
-
# Transfer ownership of a namespace
|
277
|
-
jvcli update namespace my-namespace --transfer newowner@example.com
|
278
|
-
```
|
279
|
-
|
280
|
-
Options:
|
281
|
-
- `namespace`: Name of the namespace to update
|
282
|
-
- `--invite`: Invite a user to the namespace by their email
|
283
|
-
- `--transfer`: Transfer ownership of the namespace to a specified user by their email
|
284
|
-
|
285
|
-
### Server Commands
|
286
|
-
|
287
|
-
#### `jvcli server launch`
|
288
|
-
Launch the Jivas Server by running a JAC file.
|
289
|
-
|
290
|
-
```sh
|
291
|
-
jvcli server launch
|
292
|
-
# With custom JAC file
|
293
|
-
jvcli server launch --jac-file custom.jac
|
294
|
-
```
|
295
|
-
|
296
|
-
Options:
|
297
|
-
- `--jac-file`: Path to the JAC file to run (default: main.jac)
|
298
|
-
|
299
|
-
#### `jvcli server login`
|
300
|
-
Login to Jivas Server and get an authentication token.
|
301
|
-
|
302
|
-
```sh
|
303
|
-
jvcli server login
|
304
|
-
# With credentials
|
305
|
-
jvcli server login --email admin@example.com --password mypassword
|
306
|
-
```
|
307
|
-
|
308
|
-
Options:
|
309
|
-
- `--email`: Email address for Jivas login
|
310
|
-
- `--password`: Password for Jivas login
|
311
|
-
|
312
|
-
#### `jvcli server createadmin`
|
313
|
-
Create a system administrator account.
|
314
|
-
|
315
|
-
```sh
|
316
|
-
jvcli server createadmin
|
317
|
-
# With credentials
|
318
|
-
jvcli server createadmin --email admin@example.com --password mypassword
|
319
|
-
```
|
320
|
-
|
321
|
-
Options:
|
322
|
-
- `--email`: Email address for the system admin
|
323
|
-
- `--password`: Password for the system admin
|
324
|
-
|
325
|
-
#### `jvcli server initagents`
|
326
|
-
Initialize agents in the Jivas system.
|
327
|
-
|
328
|
-
```sh
|
329
|
-
jvcli server initagents
|
330
|
-
```
|
331
|
-
|
332
|
-
#### `jvcli server importagent`
|
333
|
-
Import an agent from a DAF package.
|
334
|
-
|
335
|
-
```sh
|
336
|
-
jvcli server importagent my_agent
|
337
|
-
# With specific version
|
338
|
-
jvcli server importagent my_agent 1.0.0
|
339
|
-
```
|
340
|
-
|
341
|
-
Options:
|
342
|
-
- `agent_name`: Name of the agent to import
|
343
|
-
- `version`: Version of the agent (optional, default: latest)
|
344
|
-
|
345
|
-
### Studio Commands
|
346
|
-
|
347
|
-
#### `jvcli studio launch`
|
348
|
-
Launch the Jivas Studio on a specified port.
|
349
|
-
|
350
|
-
```sh
|
351
|
-
jvcli studio launch
|
352
|
-
# With custom port
|
353
|
-
jvcli studio launch --port 9000
|
354
|
-
# With authentication required
|
355
|
-
jvcli studio launch --require-auth
|
356
|
-
```
|
357
|
-
|
358
|
-
Options:
|
359
|
-
- `--port`: Port for the studio to launch on (default: 8989)
|
360
|
-
- `--require-auth`: Require authentication for studio API (default: false)
|
361
|
-
|
362
|
-
### Client Commands
|
363
|
-
|
364
|
-
#### `jvcli client launch`
|
365
|
-
Launch the Jivas Client.
|
366
|
-
|
367
|
-
```sh
|
368
|
-
jvcli client launch
|
369
|
-
# With custom port
|
370
|
-
jvcli client launch --port 9001
|
371
|
-
# With custom Jivas and Studio URLs
|
372
|
-
jvcli client launch --jivas_url http://my-server:8000 --studio_url http://my-studio:8989
|
373
|
-
```
|
374
|
-
|
375
|
-
Options:
|
376
|
-
- `--port`: Port for the client to launch on (default: 8501)
|
377
|
-
- `--jivas_url`: URL for the Jivas API (default: http://localhost:8000 or JIVAS_BASE_URL env var)
|
378
|
-
- `--studio_url`: URL for the Jivas Studio (default: http://localhost:8989 or JIVAS_STUDIO_URL env var)
|
379
|
-
|
380
|
-
## 🔰 Contributing
|
381
|
-
|
382
|
-
- **🐛 [Report Issues](https://github.com/TrueSelph/jvcli/issues)**: Submit bugs found or log feature requests for the `jvcli` project.
|
383
|
-
- **💡 [Submit Pull Requests](https://github.com/TrueSelph/jvcli/blob/main/CONTRIBUTING.md)**: Review open PRs, and submit your own PRs.
|
384
|
-
|
385
|
-
<details closed>
|
386
|
-
<summary>Contributing Guidelines</summary>
|
387
|
-
|
388
|
-
1. **Fork the Repository**: Start by forking the project repository to your github account.
|
389
|
-
2. **Clone Locally**: Clone the forked repository to your local machine using a git client.
|
390
|
-
```sh
|
391
|
-
git clone https://github.com/TrueSelph/jvcli
|
392
|
-
```
|
393
|
-
3. **Create a New Branch**: Always work on a new branch, giving it a descriptive name.
|
394
|
-
```sh
|
395
|
-
git checkout -b new-feature-x
|
396
|
-
```
|
397
|
-
4. **Make Your Changes**: Develop and test your changes locally.
|
398
|
-
5. **Commit Your Changes**: Commit with a clear message describing your updates.
|
399
|
-
```sh
|
400
|
-
git commit -m 'Implemented new feature x.'
|
401
|
-
```
|
402
|
-
6. **Push to github**: Push the changes to your forked repository.
|
403
|
-
```sh
|
404
|
-
git push origin new-feature-x
|
405
|
-
```
|
406
|
-
7. **Submit a Pull Request**: Create a PR against the original project repository. Clearly describe the changes and their motivations.
|
407
|
-
8. **Review**: Once your PR is reviewed and approved, it will be merged into the main branch. Congratulations on your contribution!
|
408
|
-
</details>
|
409
|
-
|
410
|
-
<details open>
|
411
|
-
<summary>Contributor Graph</summary>
|
412
|
-
<br>
|
413
|
-
<p align="left">
|
414
|
-
<a href="https://github.com/TrueSelph/jvcli/graphs/contributors">
|
415
|
-
<img src="https://contrib.rocks/image?repo=TrueSelph/jvcli" />
|
416
|
-
</a>
|
417
|
-
</p>
|
418
|
-
</details>
|
419
|
-
|
420
|
-
## 🎗 License
|
421
|
-
|
422
|
-
This project is protected under the Apache License 2.0. See [LICENSE](./LICENSE) for more information.
|
File without changes
|
File without changes
|
File without changes
|