jvcli 2.0.14__py3-none-any.whl → 2.0.16__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/startproject.py +15 -8
- jvcli/templates/2.0.0/project/env.example +30 -5
- {jvcli-2.0.14.dist-info → jvcli-2.0.16.dist-info}/METADATA +2 -2
- {jvcli-2.0.14.dist-info → jvcli-2.0.16.dist-info}/RECORD +9 -9
- {jvcli-2.0.14.dist-info → jvcli-2.0.16.dist-info}/WHEEL +0 -0
- {jvcli-2.0.14.dist-info → jvcli-2.0.16.dist-info}/entry_points.txt +0 -0
- {jvcli-2.0.14.dist-info → jvcli-2.0.16.dist-info}/licenses/LICENSE +0 -0
- {jvcli-2.0.14.dist-info → jvcli-2.0.16.dist-info}/top_level.txt +0 -0
jvcli/__init__.py
CHANGED
jvcli/commands/startproject.py
CHANGED
@@ -16,12 +16,18 @@ from jvcli.utils import TEMPLATES_DIR
|
|
16
16
|
show_default=True,
|
17
17
|
help="Jivas project version to use for scaffolding.",
|
18
18
|
)
|
19
|
-
|
19
|
+
@click.option(
|
20
|
+
"--no-env",
|
21
|
+
is_flag=True,
|
22
|
+
default=False,
|
23
|
+
help="Skip generating the .env file.",
|
24
|
+
)
|
25
|
+
def startproject(project_name: str, version: str, no_env: bool) -> None:
|
20
26
|
"""
|
21
27
|
Initialize a new Jivas project with the necessary structure.
|
22
28
|
|
23
29
|
Usage:
|
24
|
-
jvcli startproject <project_name> [--version <jivas_version>]
|
30
|
+
jvcli startproject <project_name> [--version <jivas_version>] [--no-env]
|
25
31
|
"""
|
26
32
|
|
27
33
|
template_path = os.path.join(TEMPLATES_DIR, version, "project")
|
@@ -69,12 +75,13 @@ def startproject(project_name: str, version: str) -> None:
|
|
69
75
|
gitignore_file.write(contents)
|
70
76
|
|
71
77
|
if file_name == "env.example":
|
72
|
-
# Write `.env`
|
73
|
-
|
74
|
-
|
75
|
-
|
78
|
+
# Write `.env` only if no-env flag is not set
|
79
|
+
if not no_env:
|
80
|
+
target_file_path_env = os.path.join(target_dir, ".env")
|
81
|
+
with open(target_file_path_env, "w") as env_file:
|
82
|
+
env_file.write(contents)
|
76
83
|
|
77
|
-
#
|
84
|
+
# Always write `env.example`
|
78
85
|
target_file_path_example = os.path.join(target_dir, "env.example")
|
79
86
|
with open(target_file_path_example, "w") as example_file:
|
80
87
|
example_file.write(contents)
|
@@ -83,7 +90,7 @@ def startproject(project_name: str, version: str) -> None:
|
|
83
90
|
project_file.write(contents)
|
84
91
|
|
85
92
|
click.secho(
|
86
|
-
f"Successfully created Jivas project: {project_name} (Version: {version})",
|
93
|
+
f"Successfully created Jivas project: {project_name} (Version: {version}){' (without .env file)' if no_env else ''}",
|
87
94
|
fg="green",
|
88
95
|
)
|
89
96
|
|
@@ -1,13 +1,38 @@
|
|
1
|
+
# JIVAS/Jaclang configuration
|
2
|
+
JIVAS_ENVIRONMENT=development
|
3
|
+
|
1
4
|
JIVAS_USER=admin@jivas.com
|
2
5
|
JIVAS_PASSWORD=password
|
3
6
|
JIVAS_PORT=8000
|
4
|
-
JIVAS_BASE_URL=http://localhost:8000
|
5
|
-
JIVAS_STUDIO_URL=http://localhost:8989
|
6
|
-
JIVAS_FILES_URL=http://localhost:9000/files
|
7
7
|
JIVAS_DESCRIPTOR_ROOT_PATH=".jvdata"
|
8
8
|
JIVAS_ACTIONS_ROOT_PATH="actions"
|
9
9
|
JIVAS_DAF_ROOT_PATH="daf"
|
10
|
+
JIVAS_BASE_URL=http://127.0.0.1:8000
|
11
|
+
JIVAS_STUDIO_URL=http://127.0.0.1:8989
|
12
|
+
JACPATH="./"
|
13
|
+
|
14
|
+
# JIVAS Files Serving Config
|
15
|
+
JIVAS_FILE_INTERFACE="local"
|
10
16
|
JIVAS_FILES_ROOT_PATH=".files"
|
17
|
+
JIVAS_FILES_URL=http://127.0.0.1:9000/files
|
18
|
+
|
19
|
+
# S3 Config
|
20
|
+
# JIVAS_S3_ENDPOINT=access_key_id # optional
|
21
|
+
# JIVAS_S3_ACCESS_KEY_ID=access_key_id
|
22
|
+
# JIVAS_S3_SECRET_ACCESS_KEY=secret_access_key
|
23
|
+
# JIVAS_S3_REGION=us-east-1
|
24
|
+
# JIVAS_S3_BUCKET_NAME=my-bucket
|
25
|
+
|
26
|
+
# Secrets Config
|
11
27
|
JIVAS_WEBHOOK_SECRET_KEY="ABCDEFGHIJK"
|
12
|
-
|
13
|
-
|
28
|
+
TOKEN_SECRET=s3cr3t
|
29
|
+
|
30
|
+
# MongoDB Config
|
31
|
+
# DATABASE_HOST=mongodb://localhost:27017/?replicaSet=my-rs
|
32
|
+
|
33
|
+
# Typesense Config
|
34
|
+
# TYPESENSE_HOST=localhost
|
35
|
+
# TYPESENSE_PORT=8108
|
36
|
+
# TYPESENSE_PROTOCOL=http
|
37
|
+
# TYPESENSE_API_KEY=abcd
|
38
|
+
# TYPESENSE_CONNECTION_TIMEOUT_SECONDS=2
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: jvcli
|
3
|
-
Version: 2.0.
|
3
|
+
Version: 2.0.16
|
4
4
|
Summary: CLI tool for Jivas Package Repository
|
5
5
|
Home-page: https://github.com/TrueSelph/jvcli
|
6
6
|
Author: TrueSelph Inc.
|
@@ -12,7 +12,7 @@ Requires-Dist: click>=8.1.8
|
|
12
12
|
Requires-Dist: requests>=2.32.3
|
13
13
|
Requires-Dist: packaging>=24.2
|
14
14
|
Requires-Dist: pyaml>=25.1.0
|
15
|
-
Requires-Dist: jac-cloud
|
15
|
+
Requires-Dist: jac-cloud==0.1.20
|
16
16
|
Requires-Dist: streamlit>=1.42.0
|
17
17
|
Requires-Dist: streamlit-elements>=0.1.0
|
18
18
|
Requires-Dist: streamlit-router>=0.1.8
|
@@ -1,4 +1,4 @@
|
|
1
|
-
jvcli/__init__.py,sha256=
|
1
|
+
jvcli/__init__.py,sha256=eG-uQ7C3VqQ3dOqru_eJI_RwVY1TSUhMM_0BeIc2J-c,171
|
2
2
|
jvcli/api.py,sha256=gd-EP1e75e7HijyrP-EF6i_jjCo6YUeSbm1l5daKLfQ,10352
|
3
3
|
jvcli/auth.py,sha256=p04T02ufqbENx_93oDPg3xsq7sv-Nabeq3YR1kLXfSg,1215
|
4
4
|
jvcli/cli.py,sha256=VM_QGPiYfSdqOZ4n0YLZbrOwXm0d5lHmzv47MqTyBMc,1060
|
@@ -21,7 +21,7 @@ jvcli/commands/create.py,sha256=-9Lcng3Ef6AMZwBcuXDgvJCuvWxB_dB_fQF5-OBCkqA,1339
|
|
21
21
|
jvcli/commands/download.py,sha256=AT6SFiJ9ysqNMDCdKsZ6CMUx96qpyzgraOk6EuNL2Qs,3417
|
22
22
|
jvcli/commands/info.py,sha256=NyIDpR_AGMMSFPE0tFZv4dIuv_gwqrfd589zQAA_Q3s,2685
|
23
23
|
jvcli/commands/publish.py,sha256=q1ihoL42GmEsU5ggHN3bcg8QD26kjRUZGfQpRzI2GMo,6630
|
24
|
-
jvcli/commands/startproject.py,sha256=
|
24
|
+
jvcli/commands/startproject.py,sha256=yLJO3MDnC5g7qyCSMLzwZomx4y0sC983G_wHjUWrdUM,3393
|
25
25
|
jvcli/commands/studio.py,sha256=avD5M3Ss7R6AtUMN3Mk6AmTyPJ7LnXcmwQ0mbRzivrQ,8192
|
26
26
|
jvcli/commands/update.py,sha256=LwCLg-W1b8WSdFkiiJ8WwTit2HJXTLpM5OQ4WBTe9C4,1997
|
27
27
|
jvcli/studio/index.html,sha256=LGhVhKwe1FF_9r_PAG7J2ZPrRLFTwFH3PpCN_KdA-10,474
|
@@ -44,7 +44,7 @@ jvcli/templates/2.0.0/agent_info.yaml,sha256=3olXRQDQG-543o7zSWWT23kJsK29QGhdx6-
|
|
44
44
|
jvcli/templates/2.0.0/agent_knowledge.yaml,sha256=hI0ifr0ICiZGce-oUFovBOmDWxGU1Z2M10WyZH_wS2g,284
|
45
45
|
jvcli/templates/2.0.0/agent_memory.yaml,sha256=_MBgObZcW1UzwWuYQVJiPZ_7TvYbGrDgd-xMuzJEkVo,9
|
46
46
|
jvcli/templates/2.0.0/project/README.md,sha256=cr6yHG1qEzO7xDFchEDpl8tKawVvF0tsUVTrWyxjiG4,1077
|
47
|
-
jvcli/templates/2.0.0/project/env.example,sha256=
|
47
|
+
jvcli/templates/2.0.0/project/env.example,sha256=xGV6My_piOIz07INK2XBwgKsrSArwtr1uHm6zul7DSU,968
|
48
48
|
jvcli/templates/2.0.0/project/gitignore.example,sha256=W-TIjt_iOIV0zI9bisMeJ4mvsD2Ko13jXnNKG2GlXIg,518
|
49
49
|
jvcli/templates/2.0.0/project/globals.jac,sha256=CEt7L25wEZfE6TupqpM1ilHbtJMQQWExDQ5GJlkHPts,56
|
50
50
|
jvcli/templates/2.0.0/project/main.jac,sha256=r37jsaGq-85YvDbHP3bQvBXk0u8w0rtRTZTNxZOjTW0,48
|
@@ -57,9 +57,9 @@ jvcli/templates/2.0.0/project/sh/inituser.sh,sha256=BYvLfFZdL0n7AGmjmoTQQcb236f5
|
|
57
57
|
jvcli/templates/2.0.0/project/sh/serve.sh,sha256=EsXOqszYD5xa8fjAEwyYCz8mSTX-v5VfiTZeKUpOKYw,105
|
58
58
|
jvcli/templates/2.0.0/project/sh/startclient.sh,sha256=3GbJtTxycLBUJGfX2_b3cfQoAPFzhvcJpWRtS2sSsRM,119
|
59
59
|
jvcli/templates/2.0.0/project/tests/README.md,sha256=-1ZXkxuUKa6tMw_jlF3rpCvUFq8ijW2L-nSuAkbCANo,917
|
60
|
-
jvcli-2.0.
|
61
|
-
jvcli-2.0.
|
62
|
-
jvcli-2.0.
|
63
|
-
jvcli-2.0.
|
64
|
-
jvcli-2.0.
|
65
|
-
jvcli-2.0.
|
60
|
+
jvcli-2.0.16.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
61
|
+
jvcli-2.0.16.dist-info/METADATA,sha256=VeHrOmIF8I4b4_DwF_9U7sFCeZMg0HBf6hlvt-DV5js,4202
|
62
|
+
jvcli-2.0.16.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
63
|
+
jvcli-2.0.16.dist-info/entry_points.txt,sha256=XunGcL0LWmIMIytaUckUA27czEf8M2Y4aTOfYIpOgrQ,42
|
64
|
+
jvcli-2.0.16.dist-info/top_level.txt,sha256=akZnN9Zy1dFT93N0ms-C8ZXUn-xlhq37nO3jSRp0Y6o,6
|
65
|
+
jvcli-2.0.16.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|