flowmesh-cli 0.1.3__tar.gz → 0.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.
- {flowmesh_cli-0.1.3/src/flowmesh_cli.egg-info → flowmesh_cli-0.1.4}/PKG-INFO +3 -3
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/pyproject.toml +3 -3
- flowmesh_cli-0.1.4/src/flowmesh_cli/__init__.py +5 -0
- flowmesh_cli-0.1.4/src/flowmesh_cli/_version.py +16 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli/cli.py +20 -1
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli/commands/base.py +14 -4
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4/src/flowmesh_cli.egg-info}/PKG-INFO +3 -3
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli.egg-info/SOURCES.txt +1 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli.egg-info/requires.txt +2 -2
- flowmesh_cli-0.1.3/src/flowmesh_cli/__init__.py +0 -1
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/LICENSE +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/README.md +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/setup.cfg +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli/commands/__init__.py +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli/commands/node.py +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli/commands/result.py +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli/commands/ssh.py +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli/commands/system.py +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli/commands/task.py +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli/commands/trace.py +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli/commands/worker.py +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli/commands/workflow.py +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli/core/__init__.py +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli/core/assets.py +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli/core/logging.py +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli/core/paths.py +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli/core/query.py +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli/core/task.py +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli/core/typer.py +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli.egg-info/dependency_links.txt +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli.egg-info/entry_points.txt +0 -0
- {flowmesh_cli-0.1.3 → flowmesh_cli-0.1.4}/src/flowmesh_cli.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flowmesh-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: FlowMesh command line interface
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
Requires-Python: >=3.12
|
|
@@ -10,9 +10,9 @@ Requires-Dist: typer>=0.12.5
|
|
|
10
10
|
Requires-Dist: pyyaml>=6.0.2
|
|
11
11
|
Requires-Dist: rich>=14.2.0
|
|
12
12
|
Requires-Dist: websockets>=15.0
|
|
13
|
-
Requires-Dist: flowmesh-sdk==0.1.
|
|
13
|
+
Requires-Dist: flowmesh-sdk==0.1.4
|
|
14
14
|
Provides-Extra: stack
|
|
15
|
-
Requires-Dist: flowmesh-cli-stack==0.1.
|
|
15
|
+
Requires-Dist: flowmesh-cli-stack==0.1.4; extra == "stack"
|
|
16
16
|
Dynamic: license-file
|
|
17
17
|
|
|
18
18
|
# FlowMesh CLI
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "flowmesh-cli"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.4"
|
|
8
8
|
description = "FlowMesh command line interface"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.12"
|
|
@@ -15,11 +15,11 @@ dependencies = [
|
|
|
15
15
|
"pyyaml>=6.0.2",
|
|
16
16
|
"rich>=14.2.0",
|
|
17
17
|
"websockets>=15.0",
|
|
18
|
-
"flowmesh-sdk==0.1.
|
|
18
|
+
"flowmesh-sdk==0.1.4",
|
|
19
19
|
]
|
|
20
20
|
|
|
21
21
|
[project.optional-dependencies]
|
|
22
|
-
stack = ["flowmesh-cli-stack==0.1.
|
|
22
|
+
stack = ["flowmesh-cli-stack==0.1.4"]
|
|
23
23
|
|
|
24
24
|
[project.scripts]
|
|
25
25
|
flowmesh = "flowmesh_cli.cli:main"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""Version helpers for the FlowMesh CLI."""
|
|
2
|
+
|
|
3
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
4
|
+
|
|
5
|
+
_PACKAGE_NAME = "flowmesh-cli"
|
|
6
|
+
_STATIC_VERSION = "0.1.4"
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def _resolve_version() -> str:
|
|
10
|
+
try:
|
|
11
|
+
return version(_PACKAGE_NAME)
|
|
12
|
+
except PackageNotFoundError:
|
|
13
|
+
return _STATIC_VERSION
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
__version__ = _resolve_version()
|
|
@@ -5,9 +5,23 @@ from importlib.util import find_spec
|
|
|
5
5
|
|
|
6
6
|
import typer
|
|
7
7
|
|
|
8
|
+
from ._version import __version__
|
|
8
9
|
from .core.typer import get_typer
|
|
9
10
|
|
|
10
11
|
|
|
12
|
+
def _root(
|
|
13
|
+
version: bool = typer.Option(
|
|
14
|
+
False,
|
|
15
|
+
"--version",
|
|
16
|
+
"-V",
|
|
17
|
+
help="Show the FlowMesh CLI version and exit.",
|
|
18
|
+
),
|
|
19
|
+
) -> None:
|
|
20
|
+
if version:
|
|
21
|
+
typer.echo(f"flowmesh {__version__}")
|
|
22
|
+
raise typer.Exit()
|
|
23
|
+
|
|
24
|
+
|
|
11
25
|
def _register_optional(
|
|
12
26
|
module_name: str, app: typer.Typer, register_func: str = "register"
|
|
13
27
|
) -> bool:
|
|
@@ -30,7 +44,12 @@ def _register_optional(
|
|
|
30
44
|
|
|
31
45
|
def build_cli_app() -> typer.Typer:
|
|
32
46
|
"""Construct the CLI app by attaching available command groups."""
|
|
33
|
-
app = get_typer(
|
|
47
|
+
app = get_typer(
|
|
48
|
+
help="FlowMesh command line interface.",
|
|
49
|
+
invoke_without_command=True,
|
|
50
|
+
no_args_is_help=True,
|
|
51
|
+
)
|
|
52
|
+
app.callback()(_root)
|
|
34
53
|
|
|
35
54
|
_register_optional(".commands", app)
|
|
36
55
|
_register_optional("flowmesh_cli_stack", app)
|
|
@@ -4,8 +4,9 @@ from pathlib import Path
|
|
|
4
4
|
import typer
|
|
5
5
|
from flowmesh.client import FlowMesh, resolve_config
|
|
6
6
|
from flowmesh.config import DEFAULT_CONFIG_PATH, FlowMeshConfig
|
|
7
|
-
from flowmesh.exceptions import FlowMeshError
|
|
7
|
+
from flowmesh.exceptions import FlowMeshError, NotFoundError
|
|
8
8
|
|
|
9
|
+
from .._version import __version__
|
|
9
10
|
from ..core import logging
|
|
10
11
|
from ..core.typer import get_typer
|
|
11
12
|
|
|
@@ -123,14 +124,23 @@ def config(
|
|
|
123
124
|
|
|
124
125
|
@app.command()
|
|
125
126
|
def info() -> None:
|
|
126
|
-
"""
|
|
127
|
+
"""Show client and server versions and server health."""
|
|
127
128
|
client = FlowMesh()
|
|
128
129
|
try:
|
|
129
|
-
|
|
130
|
+
health = client.system.health()
|
|
131
|
+
try:
|
|
132
|
+
server_version = client.system.version().version
|
|
133
|
+
except NotFoundError:
|
|
134
|
+
server_version = "unknown"
|
|
130
135
|
except FlowMeshError as exc:
|
|
131
136
|
logging.error(str(exc))
|
|
132
137
|
raise typer.Exit(code=1)
|
|
133
|
-
|
|
138
|
+
payload = {
|
|
139
|
+
"client_version": __version__,
|
|
140
|
+
"server_version": server_version,
|
|
141
|
+
"server_healthy": health.ok,
|
|
142
|
+
}
|
|
143
|
+
logging.log(json.dumps(payload, indent=2))
|
|
134
144
|
|
|
135
145
|
|
|
136
146
|
@app.command()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flowmesh-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: FlowMesh command line interface
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
Requires-Python: >=3.12
|
|
@@ -10,9 +10,9 @@ Requires-Dist: typer>=0.12.5
|
|
|
10
10
|
Requires-Dist: pyyaml>=6.0.2
|
|
11
11
|
Requires-Dist: rich>=14.2.0
|
|
12
12
|
Requires-Dist: websockets>=15.0
|
|
13
|
-
Requires-Dist: flowmesh-sdk==0.1.
|
|
13
|
+
Requires-Dist: flowmesh-sdk==0.1.4
|
|
14
14
|
Provides-Extra: stack
|
|
15
|
-
Requires-Dist: flowmesh-cli-stack==0.1.
|
|
15
|
+
Requires-Dist: flowmesh-cli-stack==0.1.4; extra == "stack"
|
|
16
16
|
Dynamic: license-file
|
|
17
17
|
|
|
18
18
|
# FlowMesh CLI
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"""FlowMesh CLI package."""
|
|
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
|