jvcli 2.1.2__py3-none-any.whl → 2.1.4__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.
Files changed (27) hide show
  1. jvcli/commands/server.py +12 -2
  2. jvcli/utils.py +6 -2
  3. {jvcli-2.1.2.dist-info → jvcli-2.1.4.dist-info}/METADATA +1 -1
  4. {jvcli-2.1.2.dist-info → jvcli-2.1.4.dist-info}/RECORD +27 -27
  5. /jvcli/templates/{2.1.2 → 2.1.4}/project/README.md +0 -0
  6. /jvcli/templates/{2.1.2 → 2.1.4}/project/actions/README.md +0 -0
  7. /jvcli/templates/{2.1.2 → 2.1.4}/project/daf/README.md +0 -0
  8. /jvcli/templates/{2.1.2 → 2.1.4}/project/env.example +0 -0
  9. /jvcli/templates/{2.1.2 → 2.1.4}/project/gitignore.example +0 -0
  10. /jvcli/templates/{2.1.2 → 2.1.4}/project/globals.jac +0 -0
  11. /jvcli/templates/{2.1.2 → 2.1.4}/project/main.jac +0 -0
  12. /jvcli/templates/{2.1.2 → 2.1.4}/project/tests/README.md +0 -0
  13. /jvcli/templates/{2.1.2 → 2.1.4}/sourcefiles/CHANGELOG.md +0 -0
  14. /jvcli/templates/{2.1.2 → 2.1.4}/sourcefiles/README.md +0 -0
  15. /jvcli/templates/{2.1.2 → 2.1.4}/sourcefiles/action_app.py +0 -0
  16. /jvcli/templates/{2.1.2 → 2.1.4}/sourcefiles/action_archetype.jac +0 -0
  17. /jvcli/templates/{2.1.2 → 2.1.4}/sourcefiles/action_info.yaml +0 -0
  18. /jvcli/templates/{2.1.2 → 2.1.4}/sourcefiles/action_lib.jac +0 -0
  19. /jvcli/templates/{2.1.2 → 2.1.4}/sourcefiles/agent_descriptor.yaml +0 -0
  20. /jvcli/templates/{2.1.2 → 2.1.4}/sourcefiles/agent_info.yaml +0 -0
  21. /jvcli/templates/{2.1.2 → 2.1.4}/sourcefiles/agent_knowledge.yaml +0 -0
  22. /jvcli/templates/{2.1.2 → 2.1.4}/sourcefiles/agent_memory.yaml +0 -0
  23. /jvcli/templates/{2.1.2 → 2.1.4}/sourcefiles/interact_action_archetype.jac +0 -0
  24. {jvcli-2.1.2.dist-info → jvcli-2.1.4.dist-info}/WHEEL +0 -0
  25. {jvcli-2.1.2.dist-info → jvcli-2.1.4.dist-info}/entry_points.txt +0 -0
  26. {jvcli-2.1.2.dist-info → jvcli-2.1.4.dist-info}/licenses/LICENSE +0 -0
  27. {jvcli-2.1.2.dist-info → jvcli-2.1.4.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
- def launch(jac_file: str) -> None:
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(TEMPLATES_DIR, version, "action_info.yaml")
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(TEMPLATES_DIR, version, "agent_info.yaml")
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")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jvcli
3
- Version: 2.1.2
3
+ Version: 2.1.4
4
4
  Summary: CLI tool for Jivas Package Repository
5
5
  Home-page: https://github.com/TrueSelph/jvcli
6
6
  Author: TrueSelph Inc.
@@ -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=03wwb3S0NXaeS13rSlMuCiMWXak_iK3RD7S2XWv6Xn4,8369
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=lZsXqbrh1ZbZ8zlUESoS84JO4-1J0GLKGcrUadwPrJc,7929
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.2/project/README.md,sha256=f3njSjmQZRIK0lJ-0udH4118G_GQsYGVNKNrknRUVQQ,16639
17
- jvcli/templates/2.1.2/project/env.example,sha256=PFTk68ZJOvO0wT4pvy2QPxSIzCHAmBVCZDnOcTqmDbQ,1325
18
- jvcli/templates/2.1.2/project/gitignore.example,sha256=KG1wl-o8ltNs4d8qCVgok5F2waUYqCJ5-HJq58Kh79I,530
19
- jvcli/templates/2.1.2/project/globals.jac,sha256=CEt7L25wEZfE6TupqpM1ilHbtJMQQWExDQ5GJlkHPts,56
20
- jvcli/templates/2.1.2/project/main.jac,sha256=6dw30dozEqSEVb1ELn3Ttk4lPqnn-LZLoV1gGzGmC14,40
21
- jvcli/templates/2.1.2/project/actions/README.md,sha256=z92-Oc2Py6zVRb2BBzbSWBdHaXTOledSHsRqQYOf2Bw,1742
22
- jvcli/templates/2.1.2/project/daf/README.md,sha256=HKzoqEM7991NStDdL4lgWzhbv9qCyGW8Lspy0WREPo0,1682
23
- jvcli/templates/2.1.2/project/tests/README.md,sha256=-1ZXkxuUKa6tMw_jlF3rpCvUFq8ijW2L-nSuAkbCANo,917
24
- jvcli/templates/2.1.2/sourcefiles/CHANGELOG.md,sha256=aci-j1gPbzyywQyPY9M2PJkZLVTKgdDuJYcFpdPpKHQ,66
25
- jvcli/templates/2.1.2/sourcefiles/README.md,sha256=VcLV54kkjp_m-cVVuH_OTdIJ39T41sM2TwKH9ISyqbk,51
26
- jvcli/templates/2.1.2/sourcefiles/action_app.py,sha256=v0aUmIpzpzkaa1zbMl1Ixf_3_fCqZqji-euefgh8r48,743
27
- jvcli/templates/2.1.2/sourcefiles/action_archetype.jac,sha256=s-JrUMa0mC1aqs5px2iKJHFhTRZIlvD787AJsBn-eu0,1375
28
- jvcli/templates/2.1.2/sourcefiles/action_info.yaml,sha256=rOwJCK2F7ew4olydbPr2d1R0W0MbAX9v1QVWuzA-sXo,303
29
- jvcli/templates/2.1.2/sourcefiles/action_lib.jac,sha256=ZpptC4rcHL9hIxf2egHAeZLPOuPAIbpMHoDnCzfcxQI,62
30
- jvcli/templates/2.1.2/sourcefiles/agent_descriptor.yaml,sha256=5spl44ytEdvTWuJFe1aJcw10usmxrrqwgNDkyfXW_xk,746
31
- jvcli/templates/2.1.2/sourcefiles/agent_info.yaml,sha256=3olXRQDQG-543o7zSWWT23kJsK29QGhdx6-tOLXvCk8,207
32
- jvcli/templates/2.1.2/sourcefiles/agent_knowledge.yaml,sha256=hI0ifr0ICiZGce-oUFovBOmDWxGU1Z2M10WyZH_wS2g,284
33
- jvcli/templates/2.1.2/sourcefiles/agent_memory.yaml,sha256=_MBgObZcW1UzwWuYQVJiPZ_7TvYbGrDgd-xMuzJEkVo,9
34
- jvcli/templates/2.1.2/sourcefiles/interact_action_archetype.jac,sha256=S37dEHyoCkxCu3gTOOTe0UQIUD11XOEQb0vffm9c-yk,1735
35
- jvcli-2.1.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
36
- jvcli-2.1.2.dist-info/METADATA,sha256=Yk0etNpwkxUwzAgfmuLVoJ181ievUl8SSbgD0ULccxo,20458
37
- jvcli-2.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
- jvcli-2.1.2.dist-info/entry_points.txt,sha256=XunGcL0LWmIMIytaUckUA27czEf8M2Y4aTOfYIpOgrQ,42
39
- jvcli-2.1.2.dist-info/top_level.txt,sha256=akZnN9Zy1dFT93N0ms-C8ZXUn-xlhq37nO3jSRp0Y6o,6
40
- jvcli-2.1.2.dist-info/RECORD,,
16
+ jvcli/templates/2.1.4/project/README.md,sha256=f3njSjmQZRIK0lJ-0udH4118G_GQsYGVNKNrknRUVQQ,16639
17
+ jvcli/templates/2.1.4/project/env.example,sha256=PFTk68ZJOvO0wT4pvy2QPxSIzCHAmBVCZDnOcTqmDbQ,1325
18
+ jvcli/templates/2.1.4/project/gitignore.example,sha256=KG1wl-o8ltNs4d8qCVgok5F2waUYqCJ5-HJq58Kh79I,530
19
+ jvcli/templates/2.1.4/project/globals.jac,sha256=CEt7L25wEZfE6TupqpM1ilHbtJMQQWExDQ5GJlkHPts,56
20
+ jvcli/templates/2.1.4/project/main.jac,sha256=6dw30dozEqSEVb1ELn3Ttk4lPqnn-LZLoV1gGzGmC14,40
21
+ jvcli/templates/2.1.4/project/actions/README.md,sha256=z92-Oc2Py6zVRb2BBzbSWBdHaXTOledSHsRqQYOf2Bw,1742
22
+ jvcli/templates/2.1.4/project/daf/README.md,sha256=HKzoqEM7991NStDdL4lgWzhbv9qCyGW8Lspy0WREPo0,1682
23
+ jvcli/templates/2.1.4/project/tests/README.md,sha256=-1ZXkxuUKa6tMw_jlF3rpCvUFq8ijW2L-nSuAkbCANo,917
24
+ jvcli/templates/2.1.4/sourcefiles/CHANGELOG.md,sha256=aci-j1gPbzyywQyPY9M2PJkZLVTKgdDuJYcFpdPpKHQ,66
25
+ jvcli/templates/2.1.4/sourcefiles/README.md,sha256=VcLV54kkjp_m-cVVuH_OTdIJ39T41sM2TwKH9ISyqbk,51
26
+ jvcli/templates/2.1.4/sourcefiles/action_app.py,sha256=v0aUmIpzpzkaa1zbMl1Ixf_3_fCqZqji-euefgh8r48,743
27
+ jvcli/templates/2.1.4/sourcefiles/action_archetype.jac,sha256=s-JrUMa0mC1aqs5px2iKJHFhTRZIlvD787AJsBn-eu0,1375
28
+ jvcli/templates/2.1.4/sourcefiles/action_info.yaml,sha256=rOwJCK2F7ew4olydbPr2d1R0W0MbAX9v1QVWuzA-sXo,303
29
+ jvcli/templates/2.1.4/sourcefiles/action_lib.jac,sha256=ZpptC4rcHL9hIxf2egHAeZLPOuPAIbpMHoDnCzfcxQI,62
30
+ jvcli/templates/2.1.4/sourcefiles/agent_descriptor.yaml,sha256=5spl44ytEdvTWuJFe1aJcw10usmxrrqwgNDkyfXW_xk,746
31
+ jvcli/templates/2.1.4/sourcefiles/agent_info.yaml,sha256=3olXRQDQG-543o7zSWWT23kJsK29QGhdx6-tOLXvCk8,207
32
+ jvcli/templates/2.1.4/sourcefiles/agent_knowledge.yaml,sha256=hI0ifr0ICiZGce-oUFovBOmDWxGU1Z2M10WyZH_wS2g,284
33
+ jvcli/templates/2.1.4/sourcefiles/agent_memory.yaml,sha256=_MBgObZcW1UzwWuYQVJiPZ_7TvYbGrDgd-xMuzJEkVo,9
34
+ jvcli/templates/2.1.4/sourcefiles/interact_action_archetype.jac,sha256=S37dEHyoCkxCu3gTOOTe0UQIUD11XOEQb0vffm9c-yk,1735
35
+ jvcli-2.1.4.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
36
+ jvcli-2.1.4.dist-info/METADATA,sha256=-uE1OLZHRbch07A3BFLjdISqSVgxrBPPPgoVtN3Rgds,20458
37
+ jvcli-2.1.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
+ jvcli-2.1.4.dist-info/entry_points.txt,sha256=XunGcL0LWmIMIytaUckUA27czEf8M2Y4aTOfYIpOgrQ,42
39
+ jvcli-2.1.4.dist-info/top_level.txt,sha256=akZnN9Zy1dFT93N0ms-C8ZXUn-xlhq37nO3jSRp0Y6o,6
40
+ jvcli-2.1.4.dist-info/RECORD,,
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes