jvcli 2.0.8__py3-none-any.whl → 2.0.10__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/api.py +3 -39
- jvcli/client/app.py +0 -2
- jvcli/client/lib/widgets.py +4 -2
- jvcli/commands/auth.py +3 -3
- jvcli/commands/studio.py +210 -48
- jvcli/studio/assets/index-DDV79SDu.js +213 -0
- jvcli/studio/assets/index-DdMMONxd.css +1 -0
- jvcli/studio/index.html +2 -2
- jvcli/studio-auth/assets/index-Bh6lyeXA.js +218 -0
- jvcli/studio-auth/assets/index-DdMMONxd.css +1 -0
- jvcli/studio-auth/index.html +15 -0
- jvcli/studio-auth/jac_logo.png +0 -0
- jvcli/studio-auth/tauri.svg +6 -0
- jvcli/studio-auth/vite.svg +1 -0
- jvcli/templates/2.0.0/project/README.md +3 -3
- jvcli/templates/2.0.0/project/sh/exportenv.sh +12 -0
- jvcli/templates/2.0.0/project/sh/importagent.sh +36 -0
- jvcli/templates/2.0.0/project/sh/initagents.sh +34 -0
- jvcli/templates/2.0.0/project/sh/inituser.sh +50 -0
- jvcli/templates/2.0.0/project/sh/serve.sh +2 -2
- jvcli/templates/2.0.0/project/sh/startclient.sh +7 -0
- {jvcli-2.0.8.dist-info → jvcli-2.0.10.dist-info}/METADATA +1 -1
- {jvcli-2.0.8.dist-info → jvcli-2.0.10.dist-info}/RECORD +28 -19
- jvcli/studio/assets/index-BtFItD2q.js +0 -156
- jvcli/studio/assets/index-CIEsu-TC.css +0 -1
- jvcli/templates/2.0.0/project/sh/import_agent.sh +0 -66
- jvcli/templates/2.0.0/project/sh/init.sh +0 -70
- {jvcli-2.0.8.dist-info → jvcli-2.0.10.dist-info}/LICENSE +0 -0
- {jvcli-2.0.8.dist-info → jvcli-2.0.10.dist-info}/WHEEL +0 -0
- {jvcli-2.0.8.dist-info → jvcli-2.0.10.dist-info}/entry_points.txt +0 -0
- {jvcli-2.0.8.dist-info → jvcli-2.0.10.dist-info}/top_level.txt +0 -0
@@ -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
|
@@ -1,35 +1,41 @@
|
|
1
|
-
jvcli/__init__.py,sha256=
|
2
|
-
jvcli/api.py,sha256=
|
1
|
+
jvcli/__init__.py,sha256=au5GKsdfzG0naZMtQkPsR124zlXEwc09N443NJc0Ik8,171
|
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
|
5
5
|
jvcli/utils.py,sha256=NKWjjJ45NFlwT7QVMh1YMY2zfvGaJ_8LppG4D8QXCwA,7726
|
6
6
|
jvcli/client/__init__.py,sha256=WGP05OBzZHReqENYs1qYqMnYvgAaNVW6KvGQvyB3NGs,85
|
7
|
-
jvcli/client/app.py,sha256=
|
7
|
+
jvcli/client/app.py,sha256=2LGSY2R9GXXRNUu34wb_-i9hLOWbP34YbzgTEnBX-g8,6087
|
8
8
|
jvcli/client/lib/__init__.py,sha256=_Wv8CNIxeIle_x0U9T6w9s5mPuOY9-0u69BvTEPXLUw,38
|
9
9
|
jvcli/client/lib/page.py,sha256=QF53ffO4A2P9QTdPFfi0baCpKyEMmfkLyhJNxm7pTb0,2225
|
10
10
|
jvcli/client/lib/utils.py,sha256=QwG5Ev_8Xd5f5j1DsIR2by4EhOMJ9Yi-UIMezGolU5g,9823
|
11
|
-
jvcli/client/lib/widgets.py,sha256
|
11
|
+
jvcli/client/lib/widgets.py,sha256=kGI_bHbqUFZCFctNOwIKOL5ZdelQo9Gx_n5Ju2x3PQU,9555
|
12
12
|
jvcli/client/pages/__init__.py,sha256=sXsBV8cGItWhXtYg8PkfCd1Vi5ibd-rv5LABnPC_St4,51
|
13
13
|
jvcli/client/pages/analytics_page.py,sha256=bNlIaMgWGHz_XO4Z2a0jzEUL1ryGR_4s8TDsyTjZP10,5660
|
14
14
|
jvcli/client/pages/chat_page.py,sha256=Eye4KFt_wsiJuX5S7BqNErb2bApYDbNKc-1rJ5HZwnI,4749
|
15
15
|
jvcli/client/pages/dashboard_page.py,sha256=bzITRQI-cA5XUrIxwgiFGgrTZp3vvYeiU_e6K4tGx1Q,5006
|
16
16
|
jvcli/client/pages/graph_page.py,sha256=2ZN-C9eskqICgnZhfP1zc6YOPPsGib_WZw3xHXcA63k,491
|
17
17
|
jvcli/commands/__init__.py,sha256=bjZvM55MC2NugvRlxkEU9CDDP9NnsygcsGZewj1gQcg,57
|
18
|
-
jvcli/commands/auth.py,sha256=
|
18
|
+
jvcli/commands/auth.py,sha256=lO5G1_TCbxhOfy7xH9EULwvCLqf7iQTF9Q3MrpAtHPY,1611
|
19
19
|
jvcli/commands/client.py,sha256=SfcE7sDF8gw3pMFs28YV-Rz3cb9rm2O1Kcu-INmAy-g,1422
|
20
20
|
jvcli/commands/create.py,sha256=-9Lcng3Ef6AMZwBcuXDgvJCuvWxB_dB_fQF5-OBCkqA,13394
|
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
24
|
jvcli/commands/startproject.py,sha256=W7TzL8HALYd_Lzt3gLFFCZkBXZTR1jwUgZgLP6hETzI,2444
|
25
|
-
jvcli/commands/studio.py,sha256=
|
25
|
+
jvcli/commands/studio.py,sha256=avD5M3Ss7R6AtUMN3Mk6AmTyPJ7LnXcmwQ0mbRzivrQ,8192
|
26
26
|
jvcli/commands/update.py,sha256=LwCLg-W1b8WSdFkiiJ8WwTit2HJXTLpM5OQ4WBTe9C4,1997
|
27
|
-
jvcli/studio/index.html,sha256=
|
27
|
+
jvcli/studio/index.html,sha256=LGhVhKwe1FF_9r_PAG7J2ZPrRLFTwFH3PpCN_KdA-10,474
|
28
28
|
jvcli/studio/jac_logo.png,sha256=upImjxkFU42yMutB-w8S_ZrrWpXxNRtKWUUkmID-8mk,14015
|
29
29
|
jvcli/studio/tauri.svg,sha256=5dJzi7qlVDxGhAAaVY3FMWXam2NhRIJ7KNsdz6z4Gqg,2599
|
30
30
|
jvcli/studio/vite.svg,sha256=SnSK_UQ5GLsWWRyDTEAdrjPoeGGrXbrQgRw6O0qSFPs,1497
|
31
|
-
jvcli/studio/assets/index-
|
32
|
-
jvcli/studio/assets/index-
|
31
|
+
jvcli/studio/assets/index-DDV79SDu.js,sha256=pSQiO1keC_kt94QezLWKJcu85VR3Cr87MzFx1nP7Sdo,1063265
|
32
|
+
jvcli/studio/assets/index-DdMMONxd.css,sha256=_balEl4FNTjbZr8GjfHejhaqZlHidCC7wWD8ipDQzkQ,225622
|
33
|
+
jvcli/studio-auth/index.html,sha256=Tc7I3JxPf-tqeN1-6Od6aKlOTZF9dzmQcOXnjHt3fj4,474
|
34
|
+
jvcli/studio-auth/jac_logo.png,sha256=upImjxkFU42yMutB-w8S_ZrrWpXxNRtKWUUkmID-8mk,14015
|
35
|
+
jvcli/studio-auth/tauri.svg,sha256=5dJzi7qlVDxGhAAaVY3FMWXam2NhRIJ7KNsdz6z4Gqg,2599
|
36
|
+
jvcli/studio-auth/vite.svg,sha256=SnSK_UQ5GLsWWRyDTEAdrjPoeGGrXbrQgRw6O0qSFPs,1497
|
37
|
+
jvcli/studio-auth/assets/index-Bh6lyeXA.js,sha256=Y1LwylBablCNeUkjrB3jQOIP84_VoY4J96tZgiLpYZY,1065330
|
38
|
+
jvcli/studio-auth/assets/index-DdMMONxd.css,sha256=_balEl4FNTjbZr8GjfHejhaqZlHidCC7wWD8ipDQzkQ,225622
|
33
39
|
jvcli/templates/CHANGELOG.md,sha256=aci-j1gPbzyywQyPY9M2PJkZLVTKgdDuJYcFpdPpKHQ,66
|
34
40
|
jvcli/templates/README.md,sha256=VcLV54kkjp_m-cVVuH_OTdIJ39T41sM2TwKH9ISyqbk,51
|
35
41
|
jvcli/templates/2.0.0/action_info.yaml,sha256=ACSLbkr8P3XY8DzPHiGXH9OfjJ2Y-lZd3WefnvPIVbQ,303
|
@@ -37,19 +43,22 @@ jvcli/templates/2.0.0/agent_descriptor.yaml,sha256=h6_pxmaP-oJqLDCHAyZ1ckETfWD6D
|
|
37
43
|
jvcli/templates/2.0.0/agent_info.yaml,sha256=3olXRQDQG-543o7zSWWT23kJsK29QGhdx6-tOLXvCk8,207
|
38
44
|
jvcli/templates/2.0.0/agent_knowledge.yaml,sha256=hI0ifr0ICiZGce-oUFovBOmDWxGU1Z2M10WyZH_wS2g,284
|
39
45
|
jvcli/templates/2.0.0/agent_memory.yaml,sha256=_MBgObZcW1UzwWuYQVJiPZ_7TvYbGrDgd-xMuzJEkVo,9
|
40
|
-
jvcli/templates/2.0.0/project/README.md,sha256=
|
46
|
+
jvcli/templates/2.0.0/project/README.md,sha256=HV0vVTsE9ELdfdqSpy6Xrn222u9z00rMNVsNPVTMSeA,956
|
41
47
|
jvcli/templates/2.0.0/project/env.example,sha256=aB3Wp-0fJV1o9WlFLjxjdA5fKMg2zBV-y8-nBm9Q-bk,396
|
42
48
|
jvcli/templates/2.0.0/project/globals.jac,sha256=CEt7L25wEZfE6TupqpM1ilHbtJMQQWExDQ5GJlkHPts,56
|
43
49
|
jvcli/templates/2.0.0/project/main.jac,sha256=r37jsaGq-85YvDbHP3bQvBXk0u8w0rtRTZTNxZOjTW0,48
|
44
50
|
jvcli/templates/2.0.0/project/actions/README.md,sha256=TU1t-rOBH5WQP_HUWaEBLq5BbPv4jejtjIrwTW4hZwM,1742
|
45
51
|
jvcli/templates/2.0.0/project/daf/README.md,sha256=M2_BLO6vFlsnUbYHPQMIrcoboe91MO9H9RR8yP9-tF8,1683
|
46
|
-
jvcli/templates/2.0.0/project/sh/
|
47
|
-
jvcli/templates/2.0.0/project/sh/
|
48
|
-
jvcli/templates/2.0.0/project/sh/
|
52
|
+
jvcli/templates/2.0.0/project/sh/exportenv.sh,sha256=UXH0DkHJnVz75YvAU8tw9bqfa2atniUITd7f_3FDBfk,160
|
53
|
+
jvcli/templates/2.0.0/project/sh/importagent.sh,sha256=plls5CY2TUcab7OVxZDPOIYO0vF4bn-yUIjPY1YL_GQ,886
|
54
|
+
jvcli/templates/2.0.0/project/sh/initagents.sh,sha256=WmMshuxLw_dXnm23uhTZjr6Eyc9pAbktlo2R_0tXK6M,923
|
55
|
+
jvcli/templates/2.0.0/project/sh/inituser.sh,sha256=TUg-NqWV3F6o-5nX0fn2L4xcVOn-vbDD-NIRFThAS1U,1828
|
56
|
+
jvcli/templates/2.0.0/project/sh/serve.sh,sha256=S64Pmza1Zh5uf6bDA7aXS282AQsN3jJW4RAyfi7NCrU,103
|
57
|
+
jvcli/templates/2.0.0/project/sh/startclient.sh,sha256=w_oW5DZ9NHRD4HR16lVQsvq8HPtiRNUKFuG2nUrKWlQ,117
|
49
58
|
jvcli/templates/2.0.0/project/tests/README.md,sha256=-1ZXkxuUKa6tMw_jlF3rpCvUFq8ijW2L-nSuAkbCANo,917
|
50
|
-
jvcli-2.0.
|
51
|
-
jvcli-2.0.
|
52
|
-
jvcli-2.0.
|
53
|
-
jvcli-2.0.
|
54
|
-
jvcli-2.0.
|
55
|
-
jvcli-2.0.
|
59
|
+
jvcli-2.0.10.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
60
|
+
jvcli-2.0.10.dist-info/METADATA,sha256=nxnZ1oL_P_qvDBIoWTv5UntyIpHnIZVJRwUMMx8cv7k,4180
|
61
|
+
jvcli-2.0.10.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
62
|
+
jvcli-2.0.10.dist-info/entry_points.txt,sha256=XunGcL0LWmIMIytaUckUA27czEf8M2Y4aTOfYIpOgrQ,42
|
63
|
+
jvcli-2.0.10.dist-info/top_level.txt,sha256=akZnN9Zy1dFT93N0ms-C8ZXUn-xlhq37nO3jSRp0Y6o,6
|
64
|
+
jvcli-2.0.10.dist-info/RECORD,,
|