jvcli 2.1.2__py3-none-any.whl → 2.1.3__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/commands/server.py +12 -2
- jvcli/utils.py +6 -2
- {jvcli-2.1.2.dist-info → jvcli-2.1.3.dist-info}/METADATA +1 -1
- {jvcli-2.1.2.dist-info → jvcli-2.1.3.dist-info}/RECORD +27 -27
- /jvcli/templates/{2.1.2 → 2.1.3}/project/README.md +0 -0
- /jvcli/templates/{2.1.2 → 2.1.3}/project/actions/README.md +0 -0
- /jvcli/templates/{2.1.2 → 2.1.3}/project/daf/README.md +0 -0
- /jvcli/templates/{2.1.2 → 2.1.3}/project/env.example +0 -0
- /jvcli/templates/{2.1.2 → 2.1.3}/project/gitignore.example +0 -0
- /jvcli/templates/{2.1.2 → 2.1.3}/project/globals.jac +0 -0
- /jvcli/templates/{2.1.2 → 2.1.3}/project/main.jac +0 -0
- /jvcli/templates/{2.1.2 → 2.1.3}/project/tests/README.md +0 -0
- /jvcli/templates/{2.1.2 → 2.1.3}/sourcefiles/CHANGELOG.md +0 -0
- /jvcli/templates/{2.1.2 → 2.1.3}/sourcefiles/README.md +0 -0
- /jvcli/templates/{2.1.2 → 2.1.3}/sourcefiles/action_app.py +0 -0
- /jvcli/templates/{2.1.2 → 2.1.3}/sourcefiles/action_archetype.jac +0 -0
- /jvcli/templates/{2.1.2 → 2.1.3}/sourcefiles/action_info.yaml +0 -0
- /jvcli/templates/{2.1.2 → 2.1.3}/sourcefiles/action_lib.jac +0 -0
- /jvcli/templates/{2.1.2 → 2.1.3}/sourcefiles/agent_descriptor.yaml +0 -0
- /jvcli/templates/{2.1.2 → 2.1.3}/sourcefiles/agent_info.yaml +0 -0
- /jvcli/templates/{2.1.2 → 2.1.3}/sourcefiles/agent_knowledge.yaml +0 -0
- /jvcli/templates/{2.1.2 → 2.1.3}/sourcefiles/agent_memory.yaml +0 -0
- /jvcli/templates/{2.1.2 → 2.1.3}/sourcefiles/interact_action_archetype.jac +0 -0
- {jvcli-2.1.2.dist-info → jvcli-2.1.3.dist-info}/WHEEL +0 -0
- {jvcli-2.1.2.dist-info → jvcli-2.1.3.dist-info}/entry_points.txt +0 -0
- {jvcli-2.1.2.dist-info → jvcli-2.1.3.dist-info}/licenses/LICENSE +0 -0
- {jvcli-2.1.2.dist-info → jvcli-2.1.3.dist-info}/top_level.txt +0 -0
jvcli/commands/server.py
CHANGED
@@ -27,10 +27,20 @@ def server() -> None:
|
|
27
27
|
default="main.jac",
|
28
28
|
help="Path to the JAC file to run. Defaults to main.jac in the current directory.",
|
29
29
|
)
|
30
|
-
|
30
|
+
@click.option(
|
31
|
+
"--host",
|
32
|
+
default=os.environ.get("JIVAS_HOST", "localhost"),
|
33
|
+
help="Host address for Jivas login.",
|
34
|
+
)
|
35
|
+
@click.option(
|
36
|
+
"--port",
|
37
|
+
default=os.environ.get("JIVAS_PORT", 8000),
|
38
|
+
help="Port for Jivas login.",
|
39
|
+
)
|
40
|
+
def launch(jac_file: str, host: str, port: int) -> None:
|
31
41
|
"""Launch the Jivas Server by running the specified JAC file."""
|
32
42
|
click.echo(f"Launching Jivas Server with JAC file: {jac_file}...")
|
33
|
-
subprocess.call(["jac", "jvserve", jac_file])
|
43
|
+
subprocess.call(["jac", "jvserve", jac_file, "--host", host, "--port", str(port)])
|
34
44
|
|
35
45
|
|
36
46
|
@server.command()
|
jvcli/utils.py
CHANGED
@@ -40,10 +40,14 @@ def validate_yaml_format(info_data: dict, type: str, version: str = "latest") ->
|
|
40
40
|
version = max(__supported__jivas__versions__)
|
41
41
|
|
42
42
|
if type == "action" or type.endswith("action"):
|
43
|
-
template_path = os.path.join(
|
43
|
+
template_path = os.path.join(
|
44
|
+
TEMPLATES_DIR, version, "sourcefiles", "action_info.yaml"
|
45
|
+
)
|
44
46
|
|
45
47
|
if type == "daf" or type == "agent":
|
46
|
-
template_path = os.path.join(
|
48
|
+
template_path = os.path.join(
|
49
|
+
TEMPLATES_DIR, version, "sourcefiles", "agent_info.yaml"
|
50
|
+
)
|
47
51
|
|
48
52
|
if not os.path.exists(template_path):
|
49
53
|
click.secho(f"Template for version {version} not found.", fg="red")
|
@@ -2,7 +2,7 @@ jvcli/__init__.py,sha256=idcJoHnioHW4Jpmp4bnThqSKiAK21U_1SCU52Vgb27Y,223
|
|
2
2
|
jvcli/api.py,sha256=gd-EP1e75e7HijyrP-EF6i_jjCo6YUeSbm1l5daKLfQ,10352
|
3
3
|
jvcli/auth.py,sha256=mHP425hvXhNxzeX--cApkrP7SdDPmfG6V0Li5TLHmIg,1953
|
4
4
|
jvcli/cli.py,sha256=xDFaPyhteTU7yHZ_o-0lmL3B8jWmb7RFfC_LSOruhkw,1090
|
5
|
-
jvcli/utils.py,sha256=
|
5
|
+
jvcli/utils.py,sha256=uHrcsBsHgdAZ84gHXSCDTH3dxorx6_ybB6q1FibCqEY,8443
|
6
6
|
jvcli/commands/__init__.py,sha256=bjZvM55MC2NugvRlxkEU9CDDP9NnsygcsGZewj1gQcg,57
|
7
7
|
jvcli/commands/auth.py,sha256=lO5G1_TCbxhOfy7xH9EULwvCLqf7iQTF9Q3MrpAtHPY,1611
|
8
8
|
jvcli/commands/client.py,sha256=JwspKUKPFgaG_VaB2yG4ODDFj4FLegRlR3IU0I-jxr4,705
|
@@ -10,31 +10,31 @@ jvcli/commands/create.py,sha256=PQf1KD-rcCj5I-YOSZXUjUOkMSgyFxyO9qQqtm0ssFk,1317
|
|
10
10
|
jvcli/commands/download.py,sha256=GiLX_43CQOW9d5vF04fAszOWh3AB-7Mgote4tJ9RVng,3416
|
11
11
|
jvcli/commands/info.py,sha256=NyIDpR_AGMMSFPE0tFZv4dIuv_gwqrfd589zQAA_Q3s,2685
|
12
12
|
jvcli/commands/publish.py,sha256=TntkWRK6P4m0aTWRmFQtT5jYeEJqgxWJKvpUiHlrTQA,6637
|
13
|
-
jvcli/commands/server.py,sha256=
|
13
|
+
jvcli/commands/server.py,sha256=ogf_A3nP4pKY623QCf_AjFZs-UBqCkoWcUsSJpwsrdE,8229
|
14
14
|
jvcli/commands/startproject.py,sha256=cU88G4wfTA9_3QeoLK3HbYKLqxQxfpyeV8m8P45uA10,3405
|
15
15
|
jvcli/commands/update.py,sha256=LwCLg-W1b8WSdFkiiJ8WwTit2HJXTLpM5OQ4WBTe9C4,1997
|
16
|
-
jvcli/templates/2.1.
|
17
|
-
jvcli/templates/2.1.
|
18
|
-
jvcli/templates/2.1.
|
19
|
-
jvcli/templates/2.1.
|
20
|
-
jvcli/templates/2.1.
|
21
|
-
jvcli/templates/2.1.
|
22
|
-
jvcli/templates/2.1.
|
23
|
-
jvcli/templates/2.1.
|
24
|
-
jvcli/templates/2.1.
|
25
|
-
jvcli/templates/2.1.
|
26
|
-
jvcli/templates/2.1.
|
27
|
-
jvcli/templates/2.1.
|
28
|
-
jvcli/templates/2.1.
|
29
|
-
jvcli/templates/2.1.
|
30
|
-
jvcli/templates/2.1.
|
31
|
-
jvcli/templates/2.1.
|
32
|
-
jvcli/templates/2.1.
|
33
|
-
jvcli/templates/2.1.
|
34
|
-
jvcli/templates/2.1.
|
35
|
-
jvcli-2.1.
|
36
|
-
jvcli-2.1.
|
37
|
-
jvcli-2.1.
|
38
|
-
jvcli-2.1.
|
39
|
-
jvcli-2.1.
|
40
|
-
jvcli-2.1.
|
16
|
+
jvcli/templates/2.1.3/project/README.md,sha256=f3njSjmQZRIK0lJ-0udH4118G_GQsYGVNKNrknRUVQQ,16639
|
17
|
+
jvcli/templates/2.1.3/project/env.example,sha256=PFTk68ZJOvO0wT4pvy2QPxSIzCHAmBVCZDnOcTqmDbQ,1325
|
18
|
+
jvcli/templates/2.1.3/project/gitignore.example,sha256=KG1wl-o8ltNs4d8qCVgok5F2waUYqCJ5-HJq58Kh79I,530
|
19
|
+
jvcli/templates/2.1.3/project/globals.jac,sha256=CEt7L25wEZfE6TupqpM1ilHbtJMQQWExDQ5GJlkHPts,56
|
20
|
+
jvcli/templates/2.1.3/project/main.jac,sha256=6dw30dozEqSEVb1ELn3Ttk4lPqnn-LZLoV1gGzGmC14,40
|
21
|
+
jvcli/templates/2.1.3/project/actions/README.md,sha256=z92-Oc2Py6zVRb2BBzbSWBdHaXTOledSHsRqQYOf2Bw,1742
|
22
|
+
jvcli/templates/2.1.3/project/daf/README.md,sha256=HKzoqEM7991NStDdL4lgWzhbv9qCyGW8Lspy0WREPo0,1682
|
23
|
+
jvcli/templates/2.1.3/project/tests/README.md,sha256=-1ZXkxuUKa6tMw_jlF3rpCvUFq8ijW2L-nSuAkbCANo,917
|
24
|
+
jvcli/templates/2.1.3/sourcefiles/CHANGELOG.md,sha256=aci-j1gPbzyywQyPY9M2PJkZLVTKgdDuJYcFpdPpKHQ,66
|
25
|
+
jvcli/templates/2.1.3/sourcefiles/README.md,sha256=VcLV54kkjp_m-cVVuH_OTdIJ39T41sM2TwKH9ISyqbk,51
|
26
|
+
jvcli/templates/2.1.3/sourcefiles/action_app.py,sha256=v0aUmIpzpzkaa1zbMl1Ixf_3_fCqZqji-euefgh8r48,743
|
27
|
+
jvcli/templates/2.1.3/sourcefiles/action_archetype.jac,sha256=s-JrUMa0mC1aqs5px2iKJHFhTRZIlvD787AJsBn-eu0,1375
|
28
|
+
jvcli/templates/2.1.3/sourcefiles/action_info.yaml,sha256=rOwJCK2F7ew4olydbPr2d1R0W0MbAX9v1QVWuzA-sXo,303
|
29
|
+
jvcli/templates/2.1.3/sourcefiles/action_lib.jac,sha256=ZpptC4rcHL9hIxf2egHAeZLPOuPAIbpMHoDnCzfcxQI,62
|
30
|
+
jvcli/templates/2.1.3/sourcefiles/agent_descriptor.yaml,sha256=5spl44ytEdvTWuJFe1aJcw10usmxrrqwgNDkyfXW_xk,746
|
31
|
+
jvcli/templates/2.1.3/sourcefiles/agent_info.yaml,sha256=3olXRQDQG-543o7zSWWT23kJsK29QGhdx6-tOLXvCk8,207
|
32
|
+
jvcli/templates/2.1.3/sourcefiles/agent_knowledge.yaml,sha256=hI0ifr0ICiZGce-oUFovBOmDWxGU1Z2M10WyZH_wS2g,284
|
33
|
+
jvcli/templates/2.1.3/sourcefiles/agent_memory.yaml,sha256=_MBgObZcW1UzwWuYQVJiPZ_7TvYbGrDgd-xMuzJEkVo,9
|
34
|
+
jvcli/templates/2.1.3/sourcefiles/interact_action_archetype.jac,sha256=S37dEHyoCkxCu3gTOOTe0UQIUD11XOEQb0vffm9c-yk,1735
|
35
|
+
jvcli-2.1.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
36
|
+
jvcli-2.1.3.dist-info/METADATA,sha256=-JUMMEbkJ1eVFmrnUMHZE-qctHk_SBfuBgzmzJjGWeM,20458
|
37
|
+
jvcli-2.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
38
|
+
jvcli-2.1.3.dist-info/entry_points.txt,sha256=XunGcL0LWmIMIytaUckUA27czEf8M2Y4aTOfYIpOgrQ,42
|
39
|
+
jvcli-2.1.3.dist-info/top_level.txt,sha256=akZnN9Zy1dFT93N0ms-C8ZXUn-xlhq37nO3jSRp0Y6o,6
|
40
|
+
jvcli-2.1.3.dist-info/RECORD,,
|
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
|