jvcli 2.0.10__tar.gz → 2.0.11__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.11}/PKG-INFO +3 -2
  2. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/__init__.py +1 -1
  3. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/templates/2.0.0/project/README.md +2 -2
  4. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/templates/2.0.0/project/sh/importagent.sh +16 -5
  5. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/templates/2.0.0/project/sh/inituser.sh +1 -1
  6. {jvcli-2.0.10 → jvcli-2.0.11/jvcli.egg-info}/PKG-INFO +3 -2
  7. {jvcli-2.0.10 → jvcli-2.0.11}/LICENSE +0 -0
  8. {jvcli-2.0.10 → jvcli-2.0.11}/MANIFEST.in +0 -0
  9. {jvcli-2.0.10 → jvcli-2.0.11}/README.md +0 -0
  10. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/api.py +0 -0
  11. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/auth.py +0 -0
  12. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/cli.py +0 -0
  13. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/client/__init__.py +0 -0
  14. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/client/app.py +0 -0
  15. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/client/lib/__init__.py +0 -0
  16. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/client/lib/page.py +0 -0
  17. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/client/lib/utils.py +0 -0
  18. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/client/lib/widgets.py +0 -0
  19. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/client/pages/__init__.py +0 -0
  20. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/client/pages/analytics_page.py +0 -0
  21. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/client/pages/chat_page.py +0 -0
  22. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/client/pages/dashboard_page.py +0 -0
  23. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/client/pages/graph_page.py +0 -0
  24. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/commands/__init__.py +0 -0
  25. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/commands/auth.py +0 -0
  26. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/commands/client.py +0 -0
  27. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/commands/create.py +0 -0
  28. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/commands/download.py +0 -0
  29. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/commands/info.py +0 -0
  30. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/commands/publish.py +0 -0
  31. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/commands/startproject.py +0 -0
  32. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/commands/studio.py +0 -0
  33. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/commands/update.py +0 -0
  34. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/studio/assets/index-DDV79SDu.js +0 -0
  35. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/studio/assets/index-DdMMONxd.css +0 -0
  36. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/studio/index.html +0 -0
  37. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/studio/jac_logo.png +0 -0
  38. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/studio/tauri.svg +0 -0
  39. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/studio/vite.svg +0 -0
  40. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/studio-auth/assets/index-Bh6lyeXA.js +0 -0
  41. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/studio-auth/assets/index-DdMMONxd.css +0 -0
  42. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/studio-auth/index.html +0 -0
  43. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/studio-auth/jac_logo.png +0 -0
  44. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/studio-auth/tauri.svg +0 -0
  45. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/studio-auth/vite.svg +0 -0
  46. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/templates/2.0.0/action_info.yaml +0 -0
  47. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/templates/2.0.0/agent_descriptor.yaml +0 -0
  48. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/templates/2.0.0/agent_info.yaml +0 -0
  49. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/templates/2.0.0/agent_knowledge.yaml +0 -0
  50. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/templates/2.0.0/agent_memory.yaml +0 -0
  51. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/templates/2.0.0/project/actions/README.md +0 -0
  52. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/templates/2.0.0/project/daf/README.md +0 -0
  53. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/templates/2.0.0/project/env.example +0 -0
  54. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/templates/2.0.0/project/globals.jac +0 -0
  55. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/templates/2.0.0/project/main.jac +0 -0
  56. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/templates/2.0.0/project/sh/exportenv.sh +0 -0
  57. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/templates/2.0.0/project/sh/initagents.sh +0 -0
  58. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/templates/2.0.0/project/sh/serve.sh +0 -0
  59. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/templates/2.0.0/project/sh/startclient.sh +0 -0
  60. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/templates/2.0.0/project/tests/README.md +0 -0
  61. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/templates/CHANGELOG.md +0 -0
  62. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/templates/README.md +0 -0
  63. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli/utils.py +0 -0
  64. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli.egg-info/SOURCES.txt +0 -0
  65. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli.egg-info/dependency_links.txt +0 -0
  66. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli.egg-info/entry_points.txt +0 -0
  67. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli.egg-info/requires.txt +0 -0
  68. {jvcli-2.0.10 → jvcli-2.0.11}/jvcli.egg-info/top_level.txt +0 -0
  69. {jvcli-2.0.10 → jvcli-2.0.11}/setup.cfg +0 -0
  70. {jvcli-2.0.10 → jvcli-2.0.11}/setup.py +0 -0
  71. {jvcli-2.0.10 → jvcli-2.0.11}/tests/test_api.py +0 -0
  72. {jvcli-2.0.10 → jvcli-2.0.11}/tests/test_auth.py +0 -0
  73. {jvcli-2.0.10 → jvcli-2.0.11}/tests/test_cli.py +0 -0
  74. {jvcli-2.0.10 → jvcli-2.0.11}/tests/test_create.py +0 -0
  75. {jvcli-2.0.10 → jvcli-2.0.11}/tests/test_download.py +0 -0
  76. {jvcli-2.0.10 → jvcli-2.0.11}/tests/test_info.py +0 -0
  77. {jvcli-2.0.10 → jvcli-2.0.11}/tests/test_publish.py +0 -0
  78. {jvcli-2.0.10 → jvcli-2.0.11}/tests/test_startproject.py +0 -0
  79. {jvcli-2.0.10 → jvcli-2.0.11}/tests/test_studio.py +0 -0
  80. {jvcli-2.0.10 → jvcli-2.0.11}/tests/test_update.py +0 -0
  81. {jvcli-2.0.10 → jvcli-2.0.11}/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.11
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.11"
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
 
@@ -1,12 +1,27 @@
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
13
  source sh/exportenv.sh
6
14
 
7
15
  # Init the user token
8
16
  source sh/inituser.sh
9
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
24
+
10
25
  # Check if JIVAS_TOKEN is set
11
26
  if [ -n "$JIVAS_TOKEN" ]; then
12
27
 
@@ -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
-
@@ -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,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.11
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