jvcli 2.0.10__tar.gz → 2.0.12__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 (81) hide show
  1. {jvcli-2.0.10/jvcli.egg-info → jvcli-2.0.12}/PKG-INFO +3 -2
  2. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/__init__.py +1 -1
  3. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/templates/2.0.0/project/README.md +2 -2
  4. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/templates/2.0.0/project/sh/exportenv.sh +2 -2
  5. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/templates/2.0.0/project/sh/importagent.sh +18 -7
  6. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/templates/2.0.0/project/sh/initagents.sh +2 -2
  7. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/templates/2.0.0/project/sh/inituser.sh +2 -2
  8. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/templates/2.0.0/project/sh/serve.sh +1 -1
  9. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/templates/2.0.0/project/sh/startclient.sh +1 -1
  10. {jvcli-2.0.10 → jvcli-2.0.12/jvcli.egg-info}/PKG-INFO +3 -2
  11. {jvcli-2.0.10 → jvcli-2.0.12}/LICENSE +0 -0
  12. {jvcli-2.0.10 → jvcli-2.0.12}/MANIFEST.in +0 -0
  13. {jvcli-2.0.10 → jvcli-2.0.12}/README.md +0 -0
  14. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/api.py +0 -0
  15. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/auth.py +0 -0
  16. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/cli.py +0 -0
  17. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/client/__init__.py +0 -0
  18. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/client/app.py +0 -0
  19. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/client/lib/__init__.py +0 -0
  20. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/client/lib/page.py +0 -0
  21. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/client/lib/utils.py +0 -0
  22. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/client/lib/widgets.py +0 -0
  23. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/client/pages/__init__.py +0 -0
  24. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/client/pages/analytics_page.py +0 -0
  25. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/client/pages/chat_page.py +0 -0
  26. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/client/pages/dashboard_page.py +0 -0
  27. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/client/pages/graph_page.py +0 -0
  28. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/commands/__init__.py +0 -0
  29. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/commands/auth.py +0 -0
  30. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/commands/client.py +0 -0
  31. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/commands/create.py +0 -0
  32. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/commands/download.py +0 -0
  33. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/commands/info.py +0 -0
  34. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/commands/publish.py +0 -0
  35. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/commands/startproject.py +0 -0
  36. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/commands/studio.py +0 -0
  37. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/commands/update.py +0 -0
  38. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/studio/assets/index-DDV79SDu.js +0 -0
  39. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/studio/assets/index-DdMMONxd.css +0 -0
  40. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/studio/index.html +0 -0
  41. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/studio/jac_logo.png +0 -0
  42. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/studio/tauri.svg +0 -0
  43. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/studio/vite.svg +0 -0
  44. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/studio-auth/assets/index-Bh6lyeXA.js +0 -0
  45. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/studio-auth/assets/index-DdMMONxd.css +0 -0
  46. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/studio-auth/index.html +0 -0
  47. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/studio-auth/jac_logo.png +0 -0
  48. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/studio-auth/tauri.svg +0 -0
  49. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/studio-auth/vite.svg +0 -0
  50. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/templates/2.0.0/action_info.yaml +0 -0
  51. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/templates/2.0.0/agent_descriptor.yaml +0 -0
  52. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/templates/2.0.0/agent_info.yaml +0 -0
  53. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/templates/2.0.0/agent_knowledge.yaml +0 -0
  54. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/templates/2.0.0/agent_memory.yaml +0 -0
  55. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/templates/2.0.0/project/actions/README.md +0 -0
  56. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/templates/2.0.0/project/daf/README.md +0 -0
  57. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/templates/2.0.0/project/env.example +0 -0
  58. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/templates/2.0.0/project/globals.jac +0 -0
  59. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/templates/2.0.0/project/main.jac +0 -0
  60. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/templates/2.0.0/project/tests/README.md +0 -0
  61. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/templates/CHANGELOG.md +0 -0
  62. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/templates/README.md +0 -0
  63. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli/utils.py +0 -0
  64. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli.egg-info/SOURCES.txt +0 -0
  65. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli.egg-info/dependency_links.txt +0 -0
  66. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli.egg-info/entry_points.txt +0 -0
  67. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli.egg-info/requires.txt +0 -0
  68. {jvcli-2.0.10 → jvcli-2.0.12}/jvcli.egg-info/top_level.txt +0 -0
  69. {jvcli-2.0.10 → jvcli-2.0.12}/setup.cfg +0 -0
  70. {jvcli-2.0.10 → jvcli-2.0.12}/setup.py +0 -0
  71. {jvcli-2.0.10 → jvcli-2.0.12}/tests/test_api.py +0 -0
  72. {jvcli-2.0.10 → jvcli-2.0.12}/tests/test_auth.py +0 -0
  73. {jvcli-2.0.10 → jvcli-2.0.12}/tests/test_cli.py +0 -0
  74. {jvcli-2.0.10 → jvcli-2.0.12}/tests/test_create.py +0 -0
  75. {jvcli-2.0.10 → jvcli-2.0.12}/tests/test_download.py +0 -0
  76. {jvcli-2.0.10 → jvcli-2.0.12}/tests/test_info.py +0 -0
  77. {jvcli-2.0.10 → jvcli-2.0.12}/tests/test_publish.py +0 -0
  78. {jvcli-2.0.10 → jvcli-2.0.12}/tests/test_startproject.py +0 -0
  79. {jvcli-2.0.10 → jvcli-2.0.12}/tests/test_studio.py +0 -0
  80. {jvcli-2.0.10 → jvcli-2.0.12}/tests/test_update.py +0 -0
  81. {jvcli-2.0.10 → jvcli-2.0.12}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: jvcli
3
- Version: 2.0.10
3
+ Version: 2.0.12
4
4
  Summary: CLI tool for Jivas Package Repository
5
5
  Home-page: https://github.com/TrueSelph/jvcli
6
6
  Author: TrueSelph Inc.
@@ -27,6 +27,7 @@ Dynamic: author-email
27
27
  Dynamic: description
28
28
  Dynamic: description-content-type
29
29
  Dynamic: home-page
30
+ Dynamic: license-file
30
31
  Dynamic: provides-extra
31
32
  Dynamic: requires-dist
32
33
  Dynamic: requires-python
@@ -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.10"
7
+ __version__ = "2.0.12"
8
8
  __supported__jivas__versions__ = ["2.0.0"]
@@ -15,10 +15,10 @@ sh sh/serve.sh
15
15
  To set up a demo agent, run the following command in another terminal:
16
16
 
17
17
  ```sh
18
- sh sh/importagent.sh
18
+ sh sh/importagent.sh jivas/demo_ai
19
19
  ```
20
20
 
21
- This will initialize JIVAS, download, and install a demo agent.
21
+ This will initialize JIVAS, download, and install a demo agent. If you wish to install any other agent, replace 'jivas/demo_ai' with the package name of your agent's DAF.
22
22
 
23
23
  ## Accessing the JIVAS Manager
24
24
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  # Export env vars
4
4
  set -o allexport
5
- if [ -f .env ]; then
6
- source .env
5
+ if [ -f ./.env ]; then
6
+ source ./.env
7
7
  else
8
8
  echo ".env file not found"
9
9
  exit 1
@@ -1,11 +1,26 @@
1
1
  #!/bin/bash
2
2
  # Script to create jivas user, login, and initialize jivas graph
3
3
 
4
+ # Check if DAF_NAME is passed as a parameter
5
+ if [ -z "$1" ]; then
6
+ echo "Usage: $0 <DAF_NAME>"
7
+ exit 1
8
+ fi
9
+
10
+ DAF_NAME="$1"
11
+
4
12
  # Export env vars
5
- source sh/exportenv.sh
13
+ source ./sh/exportenv.sh
6
14
 
7
15
  # Init the user token
8
- source sh/inituser.sh
16
+ source ./sh/inituser.sh
17
+
18
+ # Wait until JIVAS_TOKEN is set
19
+ while [ -z "$JIVAS_TOKEN" ]; do
20
+ echo "Waiting for JIVAS_TOKEN to be initialized..."
21
+ sleep 1
22
+ source ./sh/inituser.sh
23
+ done
9
24
 
10
25
  # Check if JIVAS_TOKEN is set
11
26
  if [ -n "$JIVAS_TOKEN" ]; then
@@ -17,7 +32,7 @@ if [ -n "$JIVAS_TOKEN" ]; then
17
32
  --header 'Content-Type: application/json' \
18
33
  --header 'Accept: application/json' \
19
34
  --header "Authorization: Bearer $JIVAS_TOKEN" \
20
- --data '{"daf_name": "jivas/eldon_ai"}' \
35
+ --data "{\"daf_name\": \"$DAF_NAME\"}" \
21
36
  "http://localhost:$JIVAS_PORT/walker/import_agent" | grep -o '"id":"[^"]*' | sed 's/"id":"//')
22
37
 
23
38
  if [ -z "$AGENT_ID" ]; then
@@ -30,7 +45,3 @@ else
30
45
  echo "Failed to initialize user token. Exiting..."
31
46
  exit 1
32
47
  fi
33
-
34
-
35
-
36
-
@@ -2,10 +2,10 @@
2
2
  # Script to authenticate and initialize jivas agents
3
3
 
4
4
  # Export env vars
5
- source sh/exportenv.sh
5
+ source ./sh/exportenv.sh
6
6
 
7
7
  # Init the user token
8
- source sh/inituser.sh
8
+ source ./sh/inituser.sh
9
9
 
10
10
  # Check if JIVAS_TOKEN is set
11
11
  if [ -n "$JIVAS_TOKEN" ]; then
@@ -7,7 +7,7 @@ if [ -z "$JIVAS_PORT" ] || [ -z "$JIVAS_PASSWORD" ] || [ -z "$JIVAS_USER" ]; the
7
7
  exit 1
8
8
  fi
9
9
 
10
- if lsof -i :$JIVAS_PORT >/dev/null; then
10
+ if lsof -i :$JIVAS_PORT >/dev/null || netstat -an | grep -q ":$JIVAS_PORT .*LISTEN"; then
11
11
 
12
12
  # Try to login first
13
13
  JIVAS_TOKEN=$(curl --silent --show-error --no-progress-meter \
@@ -38,7 +38,7 @@ if lsof -i :$JIVAS_PORT >/dev/null; then
38
38
  --header 'Content-Type: application/json' \
39
39
  --header 'Accept: application/json' \
40
40
  --data '{"password": "'"$JIVAS_PASSWORD"'","email": "'"$JIVAS_USER"'"}' \
41
- "http://localhost:$JIVAS_PORT/user/login" | grep -oP '(?<="token":")[^"]*')
41
+ "http://localhost:$JIVAS_PORT/user/login" | grep -o '"token":"[^"]*' | sed 's/"token":"//')
42
42
  fi
43
43
 
44
44
  # Print token
@@ -1,7 +1,7 @@
1
1
  #!/bin/bash
2
2
  # Script to serve jivas app
3
3
 
4
- source sh/exportenv.sh
4
+ source ./sh/exportenv.sh
5
5
 
6
6
  # serve jivas app
7
7
  jac jvserve main.jac
@@ -1,7 +1,7 @@
1
1
  #!/bin/bash
2
2
  # Script to serve jivas client app
3
3
 
4
- source sh/exportenv.sh
4
+ source ./sh/exportenv.sh
5
5
 
6
6
  # launch jivas client app
7
7
  jvcli client launch
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: jvcli
3
- Version: 2.0.10
3
+ Version: 2.0.12
4
4
  Summary: CLI tool for Jivas Package Repository
5
5
  Home-page: https://github.com/TrueSelph/jvcli
6
6
  Author: TrueSelph Inc.
@@ -27,6 +27,7 @@ Dynamic: author-email
27
27
  Dynamic: description
28
28
  Dynamic: description-content-type
29
29
  Dynamic: home-page
30
+ Dynamic: license-file
30
31
  Dynamic: provides-extra
31
32
  Dynamic: requires-dist
32
33
  Dynamic: requires-python
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
File without changes