jvcli 2.0.8__tar.gz → 2.0.9__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 (78) hide show
  1. {jvcli-2.0.8/jvcli.egg-info → jvcli-2.0.9}/PKG-INFO +1 -1
  2. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/__init__.py +1 -1
  3. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/client/app.py +0 -2
  4. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/templates/2.0.0/project/README.md +3 -3
  5. jvcli-2.0.9/jvcli/templates/2.0.0/project/sh/exportenv.sh +12 -0
  6. jvcli-2.0.9/jvcli/templates/2.0.0/project/sh/importagent.sh +36 -0
  7. jvcli-2.0.9/jvcli/templates/2.0.0/project/sh/initagents.sh +34 -0
  8. jvcli-2.0.9/jvcli/templates/2.0.0/project/sh/inituser.sh +50 -0
  9. jvcli-2.0.9/jvcli/templates/2.0.0/project/sh/serve.sh +7 -0
  10. jvcli-2.0.9/jvcli/templates/2.0.0/project/sh/startclient.sh +7 -0
  11. {jvcli-2.0.8 → jvcli-2.0.9/jvcli.egg-info}/PKG-INFO +1 -1
  12. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli.egg-info/SOURCES.txt +5 -2
  13. {jvcli-2.0.8 → jvcli-2.0.9}/tests/test_startproject.py +6 -2
  14. jvcli-2.0.8/jvcli/templates/2.0.0/project/sh/import_agent.sh +0 -66
  15. jvcli-2.0.8/jvcli/templates/2.0.0/project/sh/init.sh +0 -70
  16. jvcli-2.0.8/jvcli/templates/2.0.0/project/sh/serve.sh +0 -7
  17. {jvcli-2.0.8 → jvcli-2.0.9}/LICENSE +0 -0
  18. {jvcli-2.0.8 → jvcli-2.0.9}/MANIFEST.in +0 -0
  19. {jvcli-2.0.8 → jvcli-2.0.9}/README.md +0 -0
  20. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/api.py +0 -0
  21. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/auth.py +0 -0
  22. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/cli.py +0 -0
  23. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/client/__init__.py +0 -0
  24. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/client/lib/__init__.py +0 -0
  25. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/client/lib/page.py +0 -0
  26. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/client/lib/utils.py +0 -0
  27. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/client/lib/widgets.py +0 -0
  28. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/client/pages/__init__.py +0 -0
  29. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/client/pages/analytics_page.py +0 -0
  30. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/client/pages/chat_page.py +0 -0
  31. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/client/pages/dashboard_page.py +0 -0
  32. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/client/pages/graph_page.py +0 -0
  33. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/commands/__init__.py +0 -0
  34. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/commands/auth.py +0 -0
  35. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/commands/client.py +0 -0
  36. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/commands/create.py +0 -0
  37. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/commands/download.py +0 -0
  38. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/commands/info.py +0 -0
  39. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/commands/publish.py +0 -0
  40. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/commands/startproject.py +0 -0
  41. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/commands/studio.py +0 -0
  42. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/commands/update.py +0 -0
  43. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/studio/assets/index-BtFItD2q.js +0 -0
  44. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/studio/assets/index-CIEsu-TC.css +0 -0
  45. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/studio/index.html +0 -0
  46. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/studio/jac_logo.png +0 -0
  47. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/studio/tauri.svg +0 -0
  48. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/studio/vite.svg +0 -0
  49. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/templates/2.0.0/action_info.yaml +0 -0
  50. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/templates/2.0.0/agent_descriptor.yaml +0 -0
  51. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/templates/2.0.0/agent_info.yaml +0 -0
  52. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/templates/2.0.0/agent_knowledge.yaml +0 -0
  53. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/templates/2.0.0/agent_memory.yaml +0 -0
  54. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/templates/2.0.0/project/actions/README.md +0 -0
  55. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/templates/2.0.0/project/daf/README.md +0 -0
  56. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/templates/2.0.0/project/env.example +0 -0
  57. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/templates/2.0.0/project/globals.jac +0 -0
  58. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/templates/2.0.0/project/main.jac +0 -0
  59. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/templates/2.0.0/project/tests/README.md +0 -0
  60. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/templates/CHANGELOG.md +0 -0
  61. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/templates/README.md +0 -0
  62. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli/utils.py +0 -0
  63. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli.egg-info/dependency_links.txt +0 -0
  64. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli.egg-info/entry_points.txt +0 -0
  65. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli.egg-info/requires.txt +0 -0
  66. {jvcli-2.0.8 → jvcli-2.0.9}/jvcli.egg-info/top_level.txt +0 -0
  67. {jvcli-2.0.8 → jvcli-2.0.9}/setup.cfg +0 -0
  68. {jvcli-2.0.8 → jvcli-2.0.9}/setup.py +0 -0
  69. {jvcli-2.0.8 → jvcli-2.0.9}/tests/test_api.py +0 -0
  70. {jvcli-2.0.8 → jvcli-2.0.9}/tests/test_auth.py +0 -0
  71. {jvcli-2.0.8 → jvcli-2.0.9}/tests/test_cli.py +0 -0
  72. {jvcli-2.0.8 → jvcli-2.0.9}/tests/test_create.py +0 -0
  73. {jvcli-2.0.8 → jvcli-2.0.9}/tests/test_download.py +0 -0
  74. {jvcli-2.0.8 → jvcli-2.0.9}/tests/test_info.py +0 -0
  75. {jvcli-2.0.8 → jvcli-2.0.9}/tests/test_publish.py +0 -0
  76. {jvcli-2.0.8 → jvcli-2.0.9}/tests/test_studio.py +0 -0
  77. {jvcli-2.0.8 → jvcli-2.0.9}/tests/test_update.py +0 -0
  78. {jvcli-2.0.8 → jvcli-2.0.9}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: jvcli
3
- Version: 2.0.8
3
+ Version: 2.0.9
4
4
  Summary: CLI tool for Jivas Package Repository
5
5
  Home-page: https://github.com/TrueSelph/jvcli
6
6
  Author: TrueSelph Inc.
@@ -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.8"
7
+ __version__ = "2.0.9"
8
8
  __supported__jivas__versions__ = ["2.0.0"]
@@ -26,8 +26,6 @@ def login_form() -> None:
26
26
  """Render the login form and handle login logic."""
27
27
  login_url = f"{JIVAS_URL}/user/login"
28
28
 
29
- st.write(os.environ.get("JIVAS_ENVIRONMENT"))
30
-
31
29
  if os.environ.get("JIVAS_ENVIRONMENT") == "development":
32
30
  email = os.environ.get("JIVAS_USER", "admin@jivas.com")
33
31
  password = os.environ.get("JIVAS_PASSWORD", "password")
@@ -15,7 +15,7 @@ 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/import_agent.sh
18
+ sh sh/importagent.sh
19
19
  ```
20
20
 
21
21
  This will initialize JIVAS, download, and install a demo agent.
@@ -25,7 +25,7 @@ This will initialize JIVAS, download, and install a demo agent.
25
25
  Once the setup is complete, run the following command in its own terminal to access the JIVAS manager for configuring and chatting with your agent:
26
26
 
27
27
  ```sh
28
- jvcli client launch
28
+ sh sh/startclient.sh
29
29
  ```
30
30
 
31
31
  ## Reflecting Changes to Agent Actions
@@ -33,7 +33,7 @@ jvcli client launch
33
33
  If you make any changes to the agent actions, run the following command to reinitialize all agents running within this JIVAS app:
34
34
 
35
35
  ```sh
36
- sh sh/init.sh
36
+ sh sh/initagents.sh
37
37
  ```
38
38
 
39
39
  ## Logging In
@@ -0,0 +1,12 @@
1
+ #!/bin/bash
2
+
3
+ # Export env vars
4
+ set -o allexport
5
+ if [ -f .env ]; then
6
+ source .env
7
+ else
8
+ echo ".env file not found"
9
+ exit 1
10
+ fi
11
+ set +o allexport
12
+ printenv
@@ -0,0 +1,36 @@
1
+ #!/bin/bash
2
+ # Script to create jivas user, login, and initialize jivas graph
3
+
4
+ # Export env vars
5
+ source sh/exportenv.sh
6
+
7
+ # Init the user token
8
+ source sh/inituser.sh
9
+
10
+ # Check if JIVAS_TOKEN is set
11
+ if [ -n "$JIVAS_TOKEN" ]; then
12
+
13
+ echo -e "\n\nImporting demo agent...\n"
14
+ # Import the agent
15
+ AGENT_ID=$(curl --silent --show-error --no-progress-meter \
16
+ --request POST \
17
+ --header 'Content-Type: application/json' \
18
+ --header 'Accept: application/json' \
19
+ --header "Authorization: Bearer $JIVAS_TOKEN" \
20
+ --data '{"daf_name": "jivas/eldon_ai"}' \
21
+ "http://localhost:$JIVAS_PORT/walker/import_agent" | grep -o '"id":"[^"]*' | sed 's/"id":"//')
22
+
23
+ if [ -z "$AGENT_ID" ]; then
24
+ echo "Failed to import agent. Exiting..."
25
+ exit 1
26
+ fi
27
+
28
+ echo -e "Agent ID: $AGENT_ID\n"
29
+ else
30
+ echo "Failed to initialize user token. Exiting..."
31
+ exit 1
32
+ fi
33
+
34
+
35
+
36
+
@@ -0,0 +1,34 @@
1
+ #!/bin/bash
2
+ # Script to authenticate and initialize jivas agents
3
+
4
+ # Export env vars
5
+ source sh/exportenv.sh
6
+
7
+ # Init the user token
8
+ source sh/inituser.sh
9
+
10
+ # Check if JIVAS_TOKEN is set
11
+ if [ -n "$JIVAS_TOKEN" ]; then
12
+
13
+ echo -e "\n\Initializing agents...\n"
14
+
15
+ # Initialize agents and capture the response
16
+ response=$(curl --silent --show-error --no-progress-meter \
17
+ --request POST \
18
+ -H 'accept: application/json' \
19
+ -H 'Content-Type: application/json' \
20
+ -H "Authorization: Bearer $JIVAS_TOKEN" \
21
+ --data '{"reporting":"true"}' \
22
+ "http://localhost:$JIVAS_PORT/walker/init_agents")
23
+
24
+ # Parse the response to extract the list of "id"s without using jq
25
+ ids=$(echo "$response" | grep -o '"id":"[^"]*"' | sed -e 's/"id":"//g' -e 's/"//g')
26
+
27
+ # Output the list of "id"s
28
+ echo "Initialized Agents:"
29
+ echo "$ids \n"
30
+
31
+ else
32
+ echo "Failed to initialize user token. Exiting..."
33
+ exit 1
34
+ fi
@@ -0,0 +1,50 @@
1
+ #!/bin/bash
2
+ # Script to init jivas user and grab token
3
+
4
+ # Check if required environment variables are set
5
+ if [ -z "$JIVAS_PORT" ] || [ -z "$JIVAS_PASSWORD" ] || [ -z "$JIVAS_USER" ]; then
6
+ echo "Required environment variables (JIVAS_PORT, JIVAS_PASSWORD, JIVAS_USER) are not set. Exiting..."
7
+ exit 1
8
+ fi
9
+
10
+ if lsof -i :$JIVAS_PORT >/dev/null; then
11
+
12
+ # Try to login first
13
+ JIVAS_TOKEN=$(curl --silent --show-error --no-progress-meter \
14
+ --request POST \
15
+ --header 'Content-Type: application/json' \
16
+ --header 'Accept: application/json' \
17
+ --data '{"password": "'"$JIVAS_PASSWORD"'","email": "'"$JIVAS_USER"'"}' \
18
+ "http://localhost:$JIVAS_PORT/user/login" | grep -o '"token":"[^"]*' | sed 's/"token":"//')
19
+
20
+ # Check if login was successful
21
+ if [ -z "$JIVAS_TOKEN" ] || [ "$JIVAS_TOKEN" == "null" ]; then
22
+ echo "Login failed. Registering user..."
23
+
24
+ # Register user if login failed
25
+ curl --silent --show-error --no-progress-meter \
26
+ --request POST \
27
+ --header 'Content-Type: application/json' \
28
+ --header 'Accept: application/json' \
29
+ --data '{
30
+ "password": "'"$JIVAS_PASSWORD"'",
31
+ "email": "'"$JIVAS_USER"'"
32
+ }' \
33
+ "http://localhost:$JIVAS_PORT/user/register"
34
+
35
+ # Attempt to login again after registration
36
+ JIVAS_TOKEN=$(curl --silent --show-error --no-progress-meter \
37
+ --request POST \
38
+ --header 'Content-Type: application/json' \
39
+ --header 'Accept: application/json' \
40
+ --data '{"password": "'"$JIVAS_PASSWORD"'","email": "'"$JIVAS_USER"'"}' \
41
+ "http://localhost:$JIVAS_PORT/user/login" | grep -oP '(?<="token":")[^"]*')
42
+ fi
43
+
44
+ # Print token
45
+ echo "\n JIVAS token: $JIVAS_TOKEN"
46
+
47
+ else
48
+ echo "Server is not running on port $JIVAS_PORT. Exiting..."
49
+ exit 1
50
+ fi
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ # Script to serve jivas app
3
+
4
+ source sh/exportenv.sh
5
+
6
+ # serve jivas app
7
+ jac jvserve main.jac
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ # Script to serve jivas client app
3
+
4
+ source sh/exportenv.sh
5
+
6
+ # launch jivas client app
7
+ jvcli client launch
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: jvcli
3
- Version: 2.0.8
3
+ Version: 2.0.9
4
4
  Summary: CLI tool for Jivas Package Repository
5
5
  Home-page: https://github.com/TrueSelph/jvcli
6
6
  Author: TrueSelph Inc.
@@ -53,9 +53,12 @@ jvcli/templates/2.0.0/project/globals.jac
53
53
  jvcli/templates/2.0.0/project/main.jac
54
54
  jvcli/templates/2.0.0/project/actions/README.md
55
55
  jvcli/templates/2.0.0/project/daf/README.md
56
- jvcli/templates/2.0.0/project/sh/import_agent.sh
57
- jvcli/templates/2.0.0/project/sh/init.sh
56
+ jvcli/templates/2.0.0/project/sh/exportenv.sh
57
+ jvcli/templates/2.0.0/project/sh/importagent.sh
58
+ jvcli/templates/2.0.0/project/sh/initagents.sh
59
+ jvcli/templates/2.0.0/project/sh/inituser.sh
58
60
  jvcli/templates/2.0.0/project/sh/serve.sh
61
+ jvcli/templates/2.0.0/project/sh/startclient.sh
59
62
  jvcli/templates/2.0.0/project/tests/README.md
60
63
  tests/test_api.py
61
64
  tests/test_auth.py
@@ -48,11 +48,15 @@ class TestStartProjectCommand:
48
48
  "README.md",
49
49
  "actions/README.md",
50
50
  "daf/README.md",
51
- "sh/init.sh",
52
- "sh/import_agent.sh",
51
+ "sh/initagents.sh",
52
+ "sh/importagent.sh",
53
53
  "sh/serve.sh",
54
+ "sh/exportenv.sh",
55
+ "sh/inituser.sh",
56
+ "sh/startclient.sh",
54
57
  "tests/README.md",
55
58
  ]
59
+
56
60
  mock_calls = mock_open.mock_calls
57
61
  written_files = [
58
62
  call.args[0] for call in mock_calls if "test_project" in str(call)
@@ -1,66 +0,0 @@
1
- #!/bin/bash
2
- # Script to create jivas user, login, and initialize jivas graph
3
-
4
- function initialize() {
5
-
6
- if lsof -i :$JIVAS_PORT >/dev/null; then
7
- # Try to login first
8
- JIVAS_TOKEN=$(curl --silent --show-error --no-progress-meter \
9
- --request POST \
10
- --header 'Content-Type: application/json' \
11
- --header 'Accept: application/json' \
12
- --data '{"password": "'"$JIVAS_PASSWORD"'","email": "'"$JIVAS_USER"'"}' \
13
- "http://localhost:$JIVAS_PORT/user/login" | grep -o '"token":"[^"]*' | sed 's/"token":"//')
14
-
15
- echo $JIVAS_TOKEN
16
-
17
- # Check if login was successful
18
- if [ -z "$JIVAS_TOKEN" ] || [ "$JIVAS_TOKEN" == "null" ]; then
19
- echo "Login failed. Registering user..."
20
-
21
- # Register user if login failed
22
- curl --silent --show-error --no-progress-meter \
23
- --request POST \
24
- --header 'Content-Type: application/json' \
25
- --header 'Accept: application/json' \
26
- --data '{
27
- "password": "'"$JIVAS_PASSWORD"'",
28
- "email": "'"$JIVAS_USER"'"
29
- }' \
30
- "http://localhost:$JIVAS_PORT/user/register"
31
-
32
- # Attempt to login again after registration
33
- JIVAS_TOKEN=$(curl --silent --show-error --no-progress-meter \
34
- --request POST \
35
- --header 'Content-Type: application/json' \
36
- --header 'Accept: application/json' \
37
- --data '{"password": "'"$JIVAS_PASSWORD"'","email": "'"$JIVAS_USER"'"}' \
38
- "http://localhost:$JIVAS_PORT/user/login" | grep -oP '(?<="token":")[^"]*')
39
- fi
40
-
41
- # Print token
42
- echo "Jivas token: $JIVAS_TOKEN"
43
-
44
- echo -e "\n\nImporting demo agent...\n"
45
- # Import the agent
46
- AGENT_ID=$(curl --silent --show-error --no-progress-meter \
47
- --request POST \
48
- --header 'Content-Type: application/json' \
49
- --header 'Accept: application/json' \
50
- --header "Authorization: Bearer $JIVAS_TOKEN" \
51
- --data '{"daf_name": "jivas/eldon_ai"}' \
52
- "http://localhost:$JIVAS_PORT/walker/import_agent" | grep -o '"id":"[^"]*' | sed 's/"id":"//')
53
-
54
- echo "$AGENT_ID\n"
55
- else
56
- echo "Server is not running on port $JIVAS_PORT. Waiting..."
57
- fi
58
-
59
- exit
60
- }
61
-
62
- # Main loop to check if a process is running on port $JIVAS_PORT
63
- while true; do
64
- initialize
65
- sleep 2 # Wait for 2 seconds before checking again
66
- done
@@ -1,70 +0,0 @@
1
- #!/bin/bash
2
- # Script to create jivas user, login, and initialize jivas graph
3
-
4
- function initialize() {
5
-
6
- if lsof -i :$JIVAS_PORT >/dev/null; then
7
-
8
- # Try to login first
9
- JIVAS_TOKEN=$(curl --silent --show-error --no-progress-meter \
10
- --request POST \
11
- --header 'Content-Type: application/json' \
12
- --header 'Accept: application/json' \
13
- --data '{"password": "'"$JIVAS_PASSWORD"'","email": "'"$JIVAS_USER"'"}' \
14
- "http://localhost:$JIVAS_PORT/user/login" | grep -o '"token":"[^"]*' | sed 's/"token":"//')
15
-
16
- echo $JIVAS_TOKEN
17
-
18
- # Check if login was successful
19
- if [ -z "$JIVAS_TOKEN" ] || [ "$JIVAS_TOKEN" == "null" ]; then
20
- echo "Login failed. Registering user..."
21
-
22
- # Register user if login failed
23
- curl --silent --show-error --no-progress-meter \
24
- --request POST \
25
- --header 'Content-Type: application/json' \
26
- --header 'Accept: application/json' \
27
- --data '{
28
- "password": "'"$JIVAS_PASSWORD"'",
29
- "email": "'"$JIVAS_USER"'"
30
- }' \
31
- "http://localhost:$JIVAS_PORT/user/register"
32
-
33
- # Attempt to login again after registration
34
- JIVAS_TOKEN=$(curl --silent --show-error --no-progress-meter \
35
- --request POST \
36
- --header 'Content-Type: application/json' \
37
- --header 'Accept: application/json' \
38
- --data '{"password": "'"$JIVAS_PASSWORD"'","email": "'"$JIVAS_USER"'"}' \
39
- "http://localhost:$JIVAS_PORT/user/login" | grep -o '"token":"[^"]*' | sed 's/"token":"//')
40
- fi
41
-
42
-
43
- # Print token
44
- echo "Jivas token: $JIVAS_TOKEN"
45
-
46
- echo "Initializing jivas graph..."
47
-
48
- # Initialize agents
49
- curl --silent --show-error --no-progress-meter \
50
- --request POST \
51
- -H 'accept: application/json' \
52
- -H 'Content-Type: application/json' \
53
- -H "Authorization: Bearer $JIVAS_TOKEN" \
54
- --data '{}' \
55
- "http://localhost:$JIVAS_PORT/walker/init_agents"
56
-
57
- exit
58
-
59
- else
60
- echo "Server is not running on port $JIVAS_PORT. Waiting..."
61
- fi
62
-
63
- exit
64
- }
65
-
66
- # Main loop to check if a process is running on port $JIVAS_PORT
67
- while true; do
68
- initialize
69
- sleep 2 # Wait for 2 seconds before checking again
70
- done
@@ -1,7 +0,0 @@
1
- #!/bin/bash
2
- # Script to serve jivas app
3
-
4
- # Export env vars
5
- set -o allexport; source .env; set +o allexport
6
- # serve jivas app
7
- jac jvserve main.jac
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
File without changes
File without changes
File without changes