jvcli 2.1.2__tar.gz → 2.1.4__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.
- {jvcli-2.1.2/jvcli.egg-info → jvcli-2.1.4}/PKG-INFO +1 -1
- {jvcli-2.1.2 → jvcli-2.1.4}/jvcli/commands/server.py +12 -2
- {jvcli-2.1.2 → jvcli-2.1.4}/jvcli/utils.py +6 -2
- {jvcli-2.1.2 → jvcli-2.1.4/jvcli.egg-info}/PKG-INFO +1 -1
- jvcli-2.1.4/jvcli.egg-info/SOURCES.txt +56 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/tests/test_server.py +6 -2
- {jvcli-2.1.2 → jvcli-2.1.4}/tests/test_utils.py +1 -1
- jvcli-2.1.2/jvcli.egg-info/SOURCES.txt +0 -56
- {jvcli-2.1.2 → jvcli-2.1.4}/LICENSE +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/MANIFEST.in +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/README.md +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/jvcli/__init__.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/jvcli/api.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/jvcli/auth.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/jvcli/cli.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/jvcli/commands/__init__.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/jvcli/commands/auth.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/jvcli/commands/client.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/jvcli/commands/create.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/jvcli/commands/download.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/jvcli/commands/info.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/jvcli/commands/publish.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/jvcli/commands/startproject.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/jvcli/commands/update.py +0 -0
- {jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/project/README.md +0 -0
- {jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/project/actions/README.md +0 -0
- {jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/project/daf/README.md +0 -0
- {jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/project/env.example +0 -0
- {jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/project/gitignore.example +0 -0
- {jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/project/globals.jac +0 -0
- {jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/project/main.jac +0 -0
- {jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/project/tests/README.md +0 -0
- {jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/sourcefiles/CHANGELOG.md +0 -0
- {jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/sourcefiles/README.md +0 -0
- {jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/sourcefiles/action_app.py +0 -0
- {jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/sourcefiles/action_archetype.jac +0 -0
- {jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/sourcefiles/action_info.yaml +0 -0
- {jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/sourcefiles/action_lib.jac +0 -0
- {jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/sourcefiles/agent_descriptor.yaml +0 -0
- {jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/sourcefiles/agent_info.yaml +0 -0
- {jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/sourcefiles/agent_knowledge.yaml +0 -0
- {jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/sourcefiles/agent_memory.yaml +0 -0
- {jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/sourcefiles/interact_action_archetype.jac +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/jvcli.egg-info/dependency_links.txt +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/jvcli.egg-info/entry_points.txt +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/jvcli.egg-info/requires.txt +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/jvcli.egg-info/top_level.txt +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/setup.cfg +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/setup.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/tests/test_api.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/tests/test_auth.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/tests/test_cli.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/tests/test_client.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/tests/test_create.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/tests/test_download.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/tests/test_info.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/tests/test_publish.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/tests/test_startproject.py +0 -0
- {jvcli-2.1.2 → jvcli-2.1.4}/tests/test_update.py +0 -0
@@ -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()
|
@@ -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")
|
@@ -0,0 +1,56 @@
|
|
1
|
+
LICENSE
|
2
|
+
MANIFEST.in
|
3
|
+
README.md
|
4
|
+
setup.py
|
5
|
+
jvcli/__init__.py
|
6
|
+
jvcli/api.py
|
7
|
+
jvcli/auth.py
|
8
|
+
jvcli/cli.py
|
9
|
+
jvcli/utils.py
|
10
|
+
jvcli.egg-info/PKG-INFO
|
11
|
+
jvcli.egg-info/SOURCES.txt
|
12
|
+
jvcli.egg-info/dependency_links.txt
|
13
|
+
jvcli.egg-info/entry_points.txt
|
14
|
+
jvcli.egg-info/requires.txt
|
15
|
+
jvcli.egg-info/top_level.txt
|
16
|
+
jvcli/commands/__init__.py
|
17
|
+
jvcli/commands/auth.py
|
18
|
+
jvcli/commands/client.py
|
19
|
+
jvcli/commands/create.py
|
20
|
+
jvcli/commands/download.py
|
21
|
+
jvcli/commands/info.py
|
22
|
+
jvcli/commands/publish.py
|
23
|
+
jvcli/commands/server.py
|
24
|
+
jvcli/commands/startproject.py
|
25
|
+
jvcli/commands/update.py
|
26
|
+
jvcli/templates/2.1.4/project/README.md
|
27
|
+
jvcli/templates/2.1.4/project/env.example
|
28
|
+
jvcli/templates/2.1.4/project/gitignore.example
|
29
|
+
jvcli/templates/2.1.4/project/globals.jac
|
30
|
+
jvcli/templates/2.1.4/project/main.jac
|
31
|
+
jvcli/templates/2.1.4/project/actions/README.md
|
32
|
+
jvcli/templates/2.1.4/project/daf/README.md
|
33
|
+
jvcli/templates/2.1.4/project/tests/README.md
|
34
|
+
jvcli/templates/2.1.4/sourcefiles/CHANGELOG.md
|
35
|
+
jvcli/templates/2.1.4/sourcefiles/README.md
|
36
|
+
jvcli/templates/2.1.4/sourcefiles/action_app.py
|
37
|
+
jvcli/templates/2.1.4/sourcefiles/action_archetype.jac
|
38
|
+
jvcli/templates/2.1.4/sourcefiles/action_info.yaml
|
39
|
+
jvcli/templates/2.1.4/sourcefiles/action_lib.jac
|
40
|
+
jvcli/templates/2.1.4/sourcefiles/agent_descriptor.yaml
|
41
|
+
jvcli/templates/2.1.4/sourcefiles/agent_info.yaml
|
42
|
+
jvcli/templates/2.1.4/sourcefiles/agent_knowledge.yaml
|
43
|
+
jvcli/templates/2.1.4/sourcefiles/agent_memory.yaml
|
44
|
+
jvcli/templates/2.1.4/sourcefiles/interact_action_archetype.jac
|
45
|
+
tests/test_api.py
|
46
|
+
tests/test_auth.py
|
47
|
+
tests/test_cli.py
|
48
|
+
tests/test_client.py
|
49
|
+
tests/test_create.py
|
50
|
+
tests/test_download.py
|
51
|
+
tests/test_info.py
|
52
|
+
tests/test_publish.py
|
53
|
+
tests/test_server.py
|
54
|
+
tests/test_startproject.py
|
55
|
+
tests/test_update.py
|
56
|
+
tests/test_utils.py
|
@@ -344,7 +344,9 @@ class TestLaunchCommand:
|
|
344
344
|
# Verify behavior
|
345
345
|
assert result.exit_code == 0
|
346
346
|
assert "Launching Jivas Server with JAC file: main.jac" in result.output
|
347
|
-
mock_subprocess.assert_called_once_with(
|
347
|
+
mock_subprocess.assert_called_once_with(
|
348
|
+
["jac", "jvserve", "main.jac", "--host", "localhost", "--port", "8000"]
|
349
|
+
)
|
348
350
|
|
349
351
|
def test_launch_custom_file(self, mocker: MockerFixture) -> None:
|
350
352
|
"""Test launching the server with a custom JAC file."""
|
@@ -358,7 +360,9 @@ class TestLaunchCommand:
|
|
358
360
|
# Verify behavior
|
359
361
|
assert result.exit_code == 0
|
360
362
|
assert "Launching Jivas Server with JAC file: custom.jac" in result.output
|
361
|
-
mock_subprocess.assert_called_once_with(
|
363
|
+
mock_subprocess.assert_called_once_with(
|
364
|
+
["jac", "jvserve", "custom.jac", "--host", "localhost", "--port", "8000"]
|
365
|
+
)
|
362
366
|
|
363
367
|
|
364
368
|
class TestLoginCommand:
|
@@ -388,7 +388,7 @@ class TestUtilsFullCoverage:
|
|
388
388
|
info_data = {"name": "test", "version": "1.0.0"}
|
389
389
|
assert validate_yaml_format(info_data, type_key, "2.0.0") is True
|
390
390
|
mock_open.assert_called_once_with(
|
391
|
-
os.path.join(TEMPLATES_DIR, "2.0.0", "agent_info.yaml"), "r"
|
391
|
+
os.path.join(TEMPLATES_DIR, "2.0.0", "sourcefiles", "agent_info.yaml"), "r"
|
392
392
|
)
|
393
393
|
|
394
394
|
def test_load_env_if_present(self, mocker: MockerFixture) -> None:
|
@@ -1,56 +0,0 @@
|
|
1
|
-
LICENSE
|
2
|
-
MANIFEST.in
|
3
|
-
README.md
|
4
|
-
setup.py
|
5
|
-
jvcli/__init__.py
|
6
|
-
jvcli/api.py
|
7
|
-
jvcli/auth.py
|
8
|
-
jvcli/cli.py
|
9
|
-
jvcli/utils.py
|
10
|
-
jvcli.egg-info/PKG-INFO
|
11
|
-
jvcli.egg-info/SOURCES.txt
|
12
|
-
jvcli.egg-info/dependency_links.txt
|
13
|
-
jvcli.egg-info/entry_points.txt
|
14
|
-
jvcli.egg-info/requires.txt
|
15
|
-
jvcli.egg-info/top_level.txt
|
16
|
-
jvcli/commands/__init__.py
|
17
|
-
jvcli/commands/auth.py
|
18
|
-
jvcli/commands/client.py
|
19
|
-
jvcli/commands/create.py
|
20
|
-
jvcli/commands/download.py
|
21
|
-
jvcli/commands/info.py
|
22
|
-
jvcli/commands/publish.py
|
23
|
-
jvcli/commands/server.py
|
24
|
-
jvcli/commands/startproject.py
|
25
|
-
jvcli/commands/update.py
|
26
|
-
jvcli/templates/2.1.2/project/README.md
|
27
|
-
jvcli/templates/2.1.2/project/env.example
|
28
|
-
jvcli/templates/2.1.2/project/gitignore.example
|
29
|
-
jvcli/templates/2.1.2/project/globals.jac
|
30
|
-
jvcli/templates/2.1.2/project/main.jac
|
31
|
-
jvcli/templates/2.1.2/project/actions/README.md
|
32
|
-
jvcli/templates/2.1.2/project/daf/README.md
|
33
|
-
jvcli/templates/2.1.2/project/tests/README.md
|
34
|
-
jvcli/templates/2.1.2/sourcefiles/CHANGELOG.md
|
35
|
-
jvcli/templates/2.1.2/sourcefiles/README.md
|
36
|
-
jvcli/templates/2.1.2/sourcefiles/action_app.py
|
37
|
-
jvcli/templates/2.1.2/sourcefiles/action_archetype.jac
|
38
|
-
jvcli/templates/2.1.2/sourcefiles/action_info.yaml
|
39
|
-
jvcli/templates/2.1.2/sourcefiles/action_lib.jac
|
40
|
-
jvcli/templates/2.1.2/sourcefiles/agent_descriptor.yaml
|
41
|
-
jvcli/templates/2.1.2/sourcefiles/agent_info.yaml
|
42
|
-
jvcli/templates/2.1.2/sourcefiles/agent_knowledge.yaml
|
43
|
-
jvcli/templates/2.1.2/sourcefiles/agent_memory.yaml
|
44
|
-
jvcli/templates/2.1.2/sourcefiles/interact_action_archetype.jac
|
45
|
-
tests/test_api.py
|
46
|
-
tests/test_auth.py
|
47
|
-
tests/test_cli.py
|
48
|
-
tests/test_client.py
|
49
|
-
tests/test_create.py
|
50
|
-
tests/test_download.py
|
51
|
-
tests/test_info.py
|
52
|
-
tests/test_publish.py
|
53
|
-
tests/test_server.py
|
54
|
-
tests/test_startproject.py
|
55
|
-
tests/test_update.py
|
56
|
-
tests/test_utils.py
|
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
|
{jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/project/actions/README.md
RENAMED
File without changes
|
{jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/project/daf/README.md
RENAMED
File without changes
|
File without changes
|
{jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/project/gitignore.example
RENAMED
File without changes
|
File without changes
|
File without changes
|
{jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/project/tests/README.md
RENAMED
File without changes
|
{jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/sourcefiles/CHANGELOG.md
RENAMED
File without changes
|
{jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/sourcefiles/README.md
RENAMED
File without changes
|
{jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/sourcefiles/action_app.py
RENAMED
File without changes
|
File without changes
|
{jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/sourcefiles/action_info.yaml
RENAMED
File without changes
|
{jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/sourcefiles/action_lib.jac
RENAMED
File without changes
|
File without changes
|
{jvcli-2.1.2/jvcli/templates/2.1.2 → jvcli-2.1.4/jvcli/templates/2.1.4}/sourcefiles/agent_info.yaml
RENAMED
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
|