jvcli 2.0.14__tar.gz → 2.0.16__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 (83) hide show
  1. {jvcli-2.0.14/jvcli.egg-info → jvcli-2.0.16}/PKG-INFO +2 -2
  2. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/__init__.py +1 -1
  3. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/commands/startproject.py +15 -8
  4. jvcli-2.0.16/jvcli/templates/2.0.0/project/env.example +38 -0
  5. {jvcli-2.0.14 → jvcli-2.0.16/jvcli.egg-info}/PKG-INFO +2 -2
  6. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli.egg-info/requires.txt +1 -1
  7. {jvcli-2.0.14 → jvcli-2.0.16}/setup.py +1 -1
  8. jvcli-2.0.14/jvcli/templates/2.0.0/project/env.example +0 -13
  9. {jvcli-2.0.14 → jvcli-2.0.16}/LICENSE +0 -0
  10. {jvcli-2.0.14 → jvcli-2.0.16}/MANIFEST.in +0 -0
  11. {jvcli-2.0.14 → jvcli-2.0.16}/README.md +0 -0
  12. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/api.py +0 -0
  13. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/auth.py +0 -0
  14. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/cli.py +0 -0
  15. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/client/__init__.py +0 -0
  16. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/client/app.py +0 -0
  17. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/client/lib/__init__.py +0 -0
  18. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/client/lib/page.py +0 -0
  19. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/client/lib/utils.py +0 -0
  20. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/client/lib/widgets.py +0 -0
  21. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/client/pages/__init__.py +0 -0
  22. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/client/pages/analytics_page.py +0 -0
  23. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/client/pages/chat_page.py +0 -0
  24. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/client/pages/dashboard_page.py +0 -0
  25. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/client/pages/graph_page.py +0 -0
  26. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/commands/__init__.py +0 -0
  27. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/commands/auth.py +0 -0
  28. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/commands/client.py +0 -0
  29. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/commands/create.py +0 -0
  30. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/commands/download.py +0 -0
  31. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/commands/info.py +0 -0
  32. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/commands/publish.py +0 -0
  33. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/commands/studio.py +0 -0
  34. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/commands/update.py +0 -0
  35. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/studio/assets/index-DDV79SDu.js +0 -0
  36. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/studio/assets/index-DdMMONxd.css +0 -0
  37. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/studio/index.html +0 -0
  38. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/studio/jac_logo.png +0 -0
  39. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/studio/tauri.svg +0 -0
  40. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/studio/vite.svg +0 -0
  41. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/studio-auth/assets/index-Bh6lyeXA.js +0 -0
  42. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/studio-auth/assets/index-DdMMONxd.css +0 -0
  43. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/studio-auth/index.html +0 -0
  44. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/studio-auth/jac_logo.png +0 -0
  45. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/studio-auth/tauri.svg +0 -0
  46. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/studio-auth/vite.svg +0 -0
  47. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/templates/2.0.0/action_info.yaml +0 -0
  48. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/templates/2.0.0/agent_descriptor.yaml +0 -0
  49. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/templates/2.0.0/agent_info.yaml +0 -0
  50. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/templates/2.0.0/agent_knowledge.yaml +0 -0
  51. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/templates/2.0.0/agent_memory.yaml +0 -0
  52. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/templates/2.0.0/project/README.md +0 -0
  53. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/templates/2.0.0/project/actions/README.md +0 -0
  54. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/templates/2.0.0/project/daf/README.md +0 -0
  55. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/templates/2.0.0/project/gitignore.example +0 -0
  56. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/templates/2.0.0/project/globals.jac +0 -0
  57. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/templates/2.0.0/project/main.jac +0 -0
  58. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/templates/2.0.0/project/sh/exportenv.sh +0 -0
  59. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/templates/2.0.0/project/sh/importagent.sh +0 -0
  60. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/templates/2.0.0/project/sh/initagents.sh +0 -0
  61. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/templates/2.0.0/project/sh/inituser.sh +0 -0
  62. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/templates/2.0.0/project/sh/serve.sh +0 -0
  63. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/templates/2.0.0/project/sh/startclient.sh +0 -0
  64. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/templates/2.0.0/project/tests/README.md +0 -0
  65. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/templates/CHANGELOG.md +0 -0
  66. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/templates/README.md +0 -0
  67. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli/utils.py +0 -0
  68. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli.egg-info/SOURCES.txt +0 -0
  69. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli.egg-info/dependency_links.txt +0 -0
  70. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli.egg-info/entry_points.txt +0 -0
  71. {jvcli-2.0.14 → jvcli-2.0.16}/jvcli.egg-info/top_level.txt +0 -0
  72. {jvcli-2.0.14 → jvcli-2.0.16}/setup.cfg +0 -0
  73. {jvcli-2.0.14 → jvcli-2.0.16}/tests/test_api.py +0 -0
  74. {jvcli-2.0.14 → jvcli-2.0.16}/tests/test_auth.py +0 -0
  75. {jvcli-2.0.14 → jvcli-2.0.16}/tests/test_cli.py +0 -0
  76. {jvcli-2.0.14 → jvcli-2.0.16}/tests/test_create.py +0 -0
  77. {jvcli-2.0.14 → jvcli-2.0.16}/tests/test_download.py +0 -0
  78. {jvcli-2.0.14 → jvcli-2.0.16}/tests/test_info.py +0 -0
  79. {jvcli-2.0.14 → jvcli-2.0.16}/tests/test_publish.py +0 -0
  80. {jvcli-2.0.14 → jvcli-2.0.16}/tests/test_startproject.py +0 -0
  81. {jvcli-2.0.14 → jvcli-2.0.16}/tests/test_studio.py +0 -0
  82. {jvcli-2.0.14 → jvcli-2.0.16}/tests/test_update.py +0 -0
  83. {jvcli-2.0.14 → jvcli-2.0.16}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jvcli
3
- Version: 2.0.14
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>=0.1.19
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
@@ -4,5 +4,5 @@ jvcli package initialization.
4
4
  This package provides the CLI tool for Jivas Package Repository.
5
5
  """
6
6
 
7
- __version__ = "2.0.14"
7
+ __version__ = "2.0.16"
8
8
  __supported__jivas__versions__ = ["2.0.0"]
@@ -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
- def startproject(project_name: str, version: str) -> None:
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
- target_file_path_env = os.path.join(target_dir, ".env")
74
- with open(target_file_path_env, "w") as env_file:
75
- env_file.write(contents)
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
- # Write `env.example`
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
 
@@ -0,0 +1,38 @@
1
+ # JIVAS/Jaclang configuration
2
+ JIVAS_ENVIRONMENT=development
3
+
4
+ JIVAS_USER=admin@jivas.com
5
+ JIVAS_PASSWORD=password
6
+ JIVAS_PORT=8000
7
+ JIVAS_DESCRIPTOR_ROOT_PATH=".jvdata"
8
+ JIVAS_ACTIONS_ROOT_PATH="actions"
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"
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
27
+ JIVAS_WEBHOOK_SECRET_KEY="ABCDEFGHIJK"
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.14
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>=0.1.19
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
@@ -2,7 +2,7 @@ click>=8.1.8
2
2
  requests>=2.32.3
3
3
  packaging>=24.2
4
4
  pyaml>=25.1.0
5
- jac-cloud>=0.1.19
5
+ jac-cloud==0.1.20
6
6
  streamlit>=1.42.0
7
7
  streamlit-elements>=0.1.0
8
8
  streamlit-router>=0.1.8
@@ -40,7 +40,7 @@ setup(
40
40
  "requests>=2.32.3",
41
41
  "packaging>=24.2",
42
42
  "pyaml>=25.1.0",
43
- "jac-cloud>=0.1.19",
43
+ "jac-cloud==0.1.20",
44
44
  "streamlit>=1.42.0",
45
45
  "streamlit-elements>=0.1.0",
46
46
  "streamlit-router>=0.1.8",
@@ -1,13 +0,0 @@
1
- JIVAS_USER=admin@jivas.com
2
- JIVAS_PASSWORD=password
3
- 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
- JIVAS_DESCRIPTOR_ROOT_PATH=".jvdata"
8
- JIVAS_ACTIONS_ROOT_PATH="actions"
9
- JIVAS_DAF_ROOT_PATH="daf"
10
- JIVAS_FILES_ROOT_PATH=".files"
11
- JIVAS_WEBHOOK_SECRET_KEY="ABCDEFGHIJK"
12
- JIVAS_ENVIRONMENT=development
13
- JACPATH="./"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes