flowmesh-cli-stack 0.1.0__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.
- flowmesh_cli_stack/__init__.py +13 -0
- flowmesh_cli_stack/assets/.env.example +204 -0
- flowmesh_cli_stack/assets/compose.yml +201 -0
- flowmesh_cli_stack/assets/docker-bake.hcl +110 -0
- flowmesh_cli_stack/bundle.py +384 -0
- flowmesh_cli_stack/env_schema.py +646 -0
- flowmesh_cli_stack/stack.py +789 -0
- flowmesh_cli_stack/utils.py +137 -0
- flowmesh_cli_stack/worker.py +235 -0
- flowmesh_cli_stack-0.1.0.dist-info/METADATA +25 -0
- flowmesh_cli_stack-0.1.0.dist-info/RECORD +14 -0
- flowmesh_cli_stack-0.1.0.dist-info/WHEEL +5 -0
- flowmesh_cli_stack-0.1.0.dist-info/licenses/LICENSE +202 -0
- flowmesh_cli_stack-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import re
|
|
3
|
+
from collections.abc import Mapping
|
|
4
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
|
|
7
|
+
import typer
|
|
8
|
+
from flowmesh import FlowMesh
|
|
9
|
+
from flowmesh.models.nodes import NodeRole
|
|
10
|
+
from flowmesh_cli.core import logging
|
|
11
|
+
from flowmesh_cli.core.assets import asset_path
|
|
12
|
+
from flowmesh_stack.env import load_env
|
|
13
|
+
from flowmesh_stack.node_client import NodeClient
|
|
14
|
+
from flowmesh_stack.paths import ensure_dir, ensure_file, resolve_path
|
|
15
|
+
|
|
16
|
+
DEFAULT_ENV_FILE = Path(".env")
|
|
17
|
+
STACK_PATH_KEYS = {
|
|
18
|
+
"REDIS_TLS_DIR",
|
|
19
|
+
"SERVER_TLS_DIR",
|
|
20
|
+
"SERVER_WORKER_CONFIG",
|
|
21
|
+
"FLOWMESH_PLUGIN_DIR",
|
|
22
|
+
}
|
|
23
|
+
STACK_SUFFIX_ENV = "FLOWMESH_STACK_SUFFIX"
|
|
24
|
+
STACK_SLUG_ENV = "FLOWMESH_STACK_SLUG"
|
|
25
|
+
WORKER_RESULTS_DIR_ENV = "WORKER_RESULTS_DIR"
|
|
26
|
+
_STACK_SLUG_BASE = "flowmesh_node"
|
|
27
|
+
_STACK_SUFFIX_MAX_LEN = 48
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def _resolve_stack_suffix(value: str) -> str:
|
|
31
|
+
sanitized = re.sub(r"[^A-Za-z0-9_.-]+", "-", value.strip())
|
|
32
|
+
sanitized = re.sub(r"-{2,}", "-", sanitized).strip("-_.")
|
|
33
|
+
sanitized = re.sub(r"^[^A-Za-z0-9]+", "", sanitized)[:_STACK_SUFFIX_MAX_LEN]
|
|
34
|
+
sanitized = sanitized.rstrip("-_.")
|
|
35
|
+
if not sanitized and value.strip():
|
|
36
|
+
raise ValueError(
|
|
37
|
+
f"{STACK_SUFFIX_ENV} must contain at least one ASCII letter or digit"
|
|
38
|
+
)
|
|
39
|
+
return sanitized
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def stack_resource_env_overrides(
|
|
43
|
+
env: Mapping[str, str] | None = None,
|
|
44
|
+
) -> dict[str, str]:
|
|
45
|
+
values = os.environ if env is None else env
|
|
46
|
+
suffix = _resolve_stack_suffix(values.get(STACK_SUFFIX_ENV, ""))
|
|
47
|
+
stack_slug = f"{_STACK_SLUG_BASE}_{suffix}" if suffix else _STACK_SLUG_BASE
|
|
48
|
+
return {STACK_SLUG_ENV: stack_slug}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def apply_stack_resource_env() -> None:
|
|
52
|
+
overrides = stack_resource_env_overrides(os.environ)
|
|
53
|
+
os.environ.update(overrides)
|
|
54
|
+
os.environ["COMPOSE_PROJECT_NAME"] = overrides[STACK_SLUG_ENV]
|
|
55
|
+
results_volume = f"{overrides[STACK_SLUG_ENV]}_results"
|
|
56
|
+
if not os.environ.get(WORKER_RESULTS_DIR_ENV, "").strip():
|
|
57
|
+
os.environ[WORKER_RESULTS_DIR_ENV] = results_volume
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def stack_compose_file() -> Path:
|
|
61
|
+
return asset_path("flowmesh_cli_stack.assets", "compose.yml")
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def stack_env_example() -> Path:
|
|
65
|
+
return asset_path("flowmesh_cli_stack.assets", ".env.example")
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def stack_bake_file() -> Path:
|
|
69
|
+
return asset_path("flowmesh_cli_stack.assets", "docker-bake.hcl")
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def stack_node_client(
|
|
73
|
+
env_file: Path, base_url: str | None, token: str | None
|
|
74
|
+
) -> NodeClient:
|
|
75
|
+
load_env(env_file, base_dir=Path.cwd(), path_keys=STACK_PATH_KEYS)
|
|
76
|
+
default_base = "http://{}:{}".format(
|
|
77
|
+
os.getenv("SERVER_HOST", "localhost"),
|
|
78
|
+
os.getenv("SERVER_HTTP_PORT", os.getenv("SERVER_APP_PORT", "8000")),
|
|
79
|
+
)
|
|
80
|
+
resolved_base = base_url or default_base
|
|
81
|
+
resolved_token = token or os.getenv("FLOWMESH_API_KEY") or None
|
|
82
|
+
return NodeClient(resolved_base, token=resolved_token)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def flowmesh_client(
|
|
86
|
+
env_file: Path, base_url: str | None, api_key: str | None
|
|
87
|
+
) -> FlowMesh:
|
|
88
|
+
load_env(env_file, base_dir=Path.cwd(), path_keys=STACK_PATH_KEYS)
|
|
89
|
+
return FlowMesh(base_url=base_url, api_key=api_key)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
def ensure_deploy_paths(base_dir: Path) -> None:
|
|
93
|
+
ensure_dir(
|
|
94
|
+
resolve_path(
|
|
95
|
+
os.getenv("REDIS_TLS_DIR", ""),
|
|
96
|
+
default="./secrets/tls/redis",
|
|
97
|
+
base_dir=base_dir,
|
|
98
|
+
)
|
|
99
|
+
)
|
|
100
|
+
ensure_dir(
|
|
101
|
+
resolve_path(
|
|
102
|
+
os.getenv("SERVER_TLS_DIR", ""),
|
|
103
|
+
default="./secrets/tls/server",
|
|
104
|
+
base_dir=base_dir,
|
|
105
|
+
)
|
|
106
|
+
)
|
|
107
|
+
ensure_file(
|
|
108
|
+
resolve_path(
|
|
109
|
+
os.getenv("SERVER_WORKER_CONFIG", ""),
|
|
110
|
+
default="./configs/worker_config.yaml",
|
|
111
|
+
base_dir=base_dir,
|
|
112
|
+
)
|
|
113
|
+
)
|
|
114
|
+
ensure_dir(
|
|
115
|
+
resolve_path(
|
|
116
|
+
os.getenv("FLOWMESH_PLUGIN_DIR", ""),
|
|
117
|
+
default="./plugins",
|
|
118
|
+
base_dir=base_dir,
|
|
119
|
+
)
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
def parse_node_role(raw: str) -> NodeRole:
|
|
124
|
+
"""Parse a CLI-supplied role string into a NodeRole, exiting on invalid input."""
|
|
125
|
+
try:
|
|
126
|
+
return NodeRole(raw.strip().lower())
|
|
127
|
+
except ValueError:
|
|
128
|
+
logging.error(f"Invalid role {raw!r}; expected one of {', '.join(NodeRole)}.")
|
|
129
|
+
raise typer.Exit(code=1) from None
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
def resolve_package_version(name: str = "flowmesh-cli-stack") -> str | None:
|
|
133
|
+
"""Return the installed flowmesh-cli-stack version, or None if it can't be read."""
|
|
134
|
+
try:
|
|
135
|
+
return version(name)
|
|
136
|
+
except PackageNotFoundError:
|
|
137
|
+
return None
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
"""Worker management commands."""
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
import os
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
|
|
7
|
+
import typer
|
|
8
|
+
from flowmesh.exceptions import FlowMeshError
|
|
9
|
+
from flowmesh_cli.core import logging
|
|
10
|
+
from flowmesh_cli.core.typer import get_typer
|
|
11
|
+
from flowmesh_stack.docker import DockerError, image_env_overrides
|
|
12
|
+
from flowmesh_stack.env import load_env
|
|
13
|
+
from flowmesh_stack.images import get_image_ref
|
|
14
|
+
from flowmesh_stack.workers import (
|
|
15
|
+
create_workers,
|
|
16
|
+
operate_workers,
|
|
17
|
+
pull_images,
|
|
18
|
+
select_worker_images,
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
from .utils import DEFAULT_ENV_FILE, STACK_PATH_KEYS, stack_node_client
|
|
22
|
+
|
|
23
|
+
app = get_typer(help="Create and manage workers on the local node.")
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@app.command("list")
|
|
27
|
+
def worker_list(
|
|
28
|
+
env_file: Path = typer.Option(
|
|
29
|
+
DEFAULT_ENV_FILE, "--env-file", help="Env file to load defaults"
|
|
30
|
+
),
|
|
31
|
+
base_url: str | None = typer.Option(None, "--base-url", help="Node API base URL"),
|
|
32
|
+
token: str = typer.Option(
|
|
33
|
+
"", "--token", help="Bearer token", envvar=["FLOWMESH_API_KEY"]
|
|
34
|
+
),
|
|
35
|
+
) -> None:
|
|
36
|
+
"""List all workers managed by the local node."""
|
|
37
|
+
client = stack_node_client(env_file, base_url, token or None)
|
|
38
|
+
try:
|
|
39
|
+
workers = client.list_workers()
|
|
40
|
+
except FlowMeshError as exc:
|
|
41
|
+
logging.error(str(exc))
|
|
42
|
+
raise typer.Exit(code=1)
|
|
43
|
+
logging.log(json.dumps(workers, indent=2))
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
@app.command("up")
|
|
47
|
+
def worker_up(
|
|
48
|
+
kind: str = typer.Argument(
|
|
49
|
+
"cpu", help="cpu|gpu when not using --config; ignored if --config is provided"
|
|
50
|
+
),
|
|
51
|
+
count: int = typer.Argument(
|
|
52
|
+
1, help="CPU worker count (used when kind=cpu and no --config provided)"
|
|
53
|
+
),
|
|
54
|
+
targets: str = typer.Option(
|
|
55
|
+
"all",
|
|
56
|
+
"--targets",
|
|
57
|
+
"-t",
|
|
58
|
+
help="GPU ids comma-separated or 'all' (used when kind=gpu and no --config)",
|
|
59
|
+
),
|
|
60
|
+
config: list[Path] | None = typer.Option(
|
|
61
|
+
None,
|
|
62
|
+
"--config",
|
|
63
|
+
"-c",
|
|
64
|
+
help=(
|
|
65
|
+
"Path(s) to worker init config (JSON or YAML). "
|
|
66
|
+
"Repeat --config to provide multiple files."
|
|
67
|
+
),
|
|
68
|
+
),
|
|
69
|
+
config_raw: list[str] | None = typer.Option(
|
|
70
|
+
None,
|
|
71
|
+
"--config-raw",
|
|
72
|
+
help=(
|
|
73
|
+
"Inline worker init config (JSON or YAML). "
|
|
74
|
+
"Repeat --config-raw to provide multiple configs."
|
|
75
|
+
),
|
|
76
|
+
),
|
|
77
|
+
env_file: Path = typer.Option(
|
|
78
|
+
DEFAULT_ENV_FILE, "--env-file", help="Env file to load defaults"
|
|
79
|
+
),
|
|
80
|
+
base_url: str | None = typer.Option(None, "--base-url", help="Node API base URL"),
|
|
81
|
+
token: str = typer.Option(
|
|
82
|
+
"", "--token", help="Bearer token", envvar=["FLOWMESH_API_KEY"]
|
|
83
|
+
),
|
|
84
|
+
) -> None:
|
|
85
|
+
"""Create and start one or more workers from presets or a custom config file."""
|
|
86
|
+
client = stack_node_client(env_file, base_url, token or None)
|
|
87
|
+
logging.info("Creating workers...")
|
|
88
|
+
try:
|
|
89
|
+
created = create_workers(
|
|
90
|
+
client,
|
|
91
|
+
kind=kind,
|
|
92
|
+
count=count,
|
|
93
|
+
targets=targets,
|
|
94
|
+
config_paths=config,
|
|
95
|
+
config_raw=config_raw,
|
|
96
|
+
)
|
|
97
|
+
except FlowMeshError as exc:
|
|
98
|
+
logging.error(str(exc))
|
|
99
|
+
raise typer.Exit(code=1)
|
|
100
|
+
for label, worker_info in created:
|
|
101
|
+
worker_name = worker_info.get("name", "<unknown>")
|
|
102
|
+
logging.success(f"Created {label} '{worker_name}':")
|
|
103
|
+
logging.log(json.dumps(worker_info, indent=2))
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
@app.command("start")
|
|
107
|
+
def worker_start(
|
|
108
|
+
names: list[str] = typer.Argument(..., help="Worker name(s) or 'all'"),
|
|
109
|
+
env_file: Path = typer.Option(
|
|
110
|
+
DEFAULT_ENV_FILE, "--env-file", help="Env file to load defaults"
|
|
111
|
+
),
|
|
112
|
+
base_url: str | None = typer.Option(None, "--base-url", help="Node API base URL"),
|
|
113
|
+
token: str = typer.Option(
|
|
114
|
+
"", "--token", help="Bearer token", envvar=["FLOWMESH_API_KEY"]
|
|
115
|
+
),
|
|
116
|
+
) -> None:
|
|
117
|
+
"""Start a stopped worker container."""
|
|
118
|
+
client = stack_node_client(env_file, base_url, token or None)
|
|
119
|
+
try:
|
|
120
|
+
started = operate_workers(client, names, operation="start")
|
|
121
|
+
except FlowMeshError as exc:
|
|
122
|
+
logging.error(str(exc))
|
|
123
|
+
raise typer.Exit(code=1)
|
|
124
|
+
if not started:
|
|
125
|
+
logging.warning("No workers found.")
|
|
126
|
+
return
|
|
127
|
+
for name in started:
|
|
128
|
+
logging.success(f"Started worker {name}")
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
@app.command("stop")
|
|
132
|
+
def worker_stop(
|
|
133
|
+
names: list[str] = typer.Argument(..., help="Worker name(s) or 'all'"),
|
|
134
|
+
env_file: Path = typer.Option(
|
|
135
|
+
DEFAULT_ENV_FILE, "--env-file", help="Env file to load defaults"
|
|
136
|
+
),
|
|
137
|
+
base_url: str | None = typer.Option(None, "--base-url", help="Node API base URL"),
|
|
138
|
+
token: str = typer.Option(
|
|
139
|
+
"", "--token", help="Bearer token", envvar=["FLOWMESH_API_KEY"]
|
|
140
|
+
),
|
|
141
|
+
) -> None:
|
|
142
|
+
"""Stop a running worker container without removing it."""
|
|
143
|
+
client = stack_node_client(env_file, base_url, token or None)
|
|
144
|
+
try:
|
|
145
|
+
stopped = operate_workers(client, names, operation="stop")
|
|
146
|
+
except FlowMeshError as exc:
|
|
147
|
+
logging.error(str(exc))
|
|
148
|
+
raise typer.Exit(code=1)
|
|
149
|
+
if not stopped:
|
|
150
|
+
logging.warning("No workers found.")
|
|
151
|
+
return
|
|
152
|
+
for name in stopped:
|
|
153
|
+
logging.success(f"Stopped worker {name}")
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
@app.command("down")
|
|
157
|
+
def worker_down(
|
|
158
|
+
names: list[str] = typer.Argument(..., help="Worker name(s) or 'all'"),
|
|
159
|
+
env_file: Path = typer.Option(
|
|
160
|
+
DEFAULT_ENV_FILE, "--env-file", help="Env file to load defaults"
|
|
161
|
+
),
|
|
162
|
+
base_url: str | None = typer.Option(None, "--base-url", help="Node API base URL"),
|
|
163
|
+
token: str = typer.Option(
|
|
164
|
+
"", "--token", help="Bearer token", envvar=["FLOWMESH_API_KEY"]
|
|
165
|
+
),
|
|
166
|
+
) -> None:
|
|
167
|
+
"""Destroy a worker or all workers, removing containers and associated resources."""
|
|
168
|
+
client = stack_node_client(env_file, base_url, token or None)
|
|
169
|
+
if "all" in names:
|
|
170
|
+
if len(names) != 1:
|
|
171
|
+
logging.error("Use either 'all' or worker names, not both.")
|
|
172
|
+
raise typer.Exit(code=1)
|
|
173
|
+
try:
|
|
174
|
+
logging.info("Destroying all workers...")
|
|
175
|
+
client.destroy_all_workers()
|
|
176
|
+
except FlowMeshError as exc:
|
|
177
|
+
logging.error(str(exc))
|
|
178
|
+
raise typer.Exit(code=1)
|
|
179
|
+
logging.success("Destroyed all workers")
|
|
180
|
+
return
|
|
181
|
+
|
|
182
|
+
try:
|
|
183
|
+
destroyed = operate_workers(client, names, operation="destroy")
|
|
184
|
+
except FlowMeshError as exc:
|
|
185
|
+
logging.error(str(exc))
|
|
186
|
+
raise typer.Exit(code=1)
|
|
187
|
+
if not destroyed:
|
|
188
|
+
logging.warning("No workers found.")
|
|
189
|
+
return
|
|
190
|
+
for name in destroyed:
|
|
191
|
+
logging.success(f"Destroyed worker {name}")
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
@app.command("pull")
|
|
195
|
+
def worker_pull(
|
|
196
|
+
kinds: list[str] = typer.Argument(..., help="cpu|gpu|ssh-cpu|ssh-gpu|all"),
|
|
197
|
+
builder: bool = typer.Option(False, "--builder", "-b", help="Pull builder images"),
|
|
198
|
+
env_file: Path = typer.Option(
|
|
199
|
+
DEFAULT_ENV_FILE, "--env-file", help="Env file to load defaults"
|
|
200
|
+
),
|
|
201
|
+
image_tag: str | None = typer.Option(
|
|
202
|
+
None, "--image-tag", help="Override FLOWMESH_VERSION for worker images"
|
|
203
|
+
),
|
|
204
|
+
) -> None:
|
|
205
|
+
"""Pull worker or builder Docker images from the registry."""
|
|
206
|
+
load_env(env_file, base_dir=Path.cwd(), path_keys=STACK_PATH_KEYS)
|
|
207
|
+
registry = os.getenv("FLOWMESH_REGISTRY", "ghcr.io/mlsys-io")
|
|
208
|
+
version = image_env_overrides(image_tag).get(
|
|
209
|
+
"FLOWMESH_VERSION", os.getenv("FLOWMESH_VERSION", "dev")
|
|
210
|
+
)
|
|
211
|
+
|
|
212
|
+
kind_images: dict[str, str] = {
|
|
213
|
+
"cpu": get_image_ref(registry, version, "flowmesh_worker_cpu"),
|
|
214
|
+
"gpu": get_image_ref(registry, version, "flowmesh_worker_gpu"),
|
|
215
|
+
"ssh-cpu": get_image_ref(registry, version, "flowmesh_ssh_cpu"),
|
|
216
|
+
"ssh-gpu": get_image_ref(registry, version, "flowmesh_ssh_gpu"),
|
|
217
|
+
}
|
|
218
|
+
builder_images: dict[str, str] = {
|
|
219
|
+
"gpu": get_image_ref(registry, version, "flowmesh_worker_gpu_builder"),
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
try:
|
|
223
|
+
images = select_worker_images(
|
|
224
|
+
kinds,
|
|
225
|
+
images=kind_images,
|
|
226
|
+
builder_images=builder_images,
|
|
227
|
+
builder=builder,
|
|
228
|
+
)
|
|
229
|
+
for image in images:
|
|
230
|
+
logging.info(f"Pulling {'builder' if builder else 'worker'} image: {image}")
|
|
231
|
+
pull_images(images)
|
|
232
|
+
except (DockerError, FlowMeshError) as exc:
|
|
233
|
+
logging.error(str(exc))
|
|
234
|
+
raise typer.Exit(code=1)
|
|
235
|
+
logging.success(f"{'Builder' if builder else 'Worker'} images pulled.")
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: flowmesh-cli-stack
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: FlowMesh CLI stack commands
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Requires-Python: >=3.12
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: flowmesh-cli==0.1.0
|
|
10
|
+
Requires-Dist: flowmesh-sdk-stack==0.1.0
|
|
11
|
+
Requires-Dist: docker>=7.1.0
|
|
12
|
+
Requires-Dist: packaging>=24
|
|
13
|
+
Requires-Dist: pyyaml>=6.0.2
|
|
14
|
+
Dynamic: license-file
|
|
15
|
+
|
|
16
|
+
# FlowMesh CLI Stack
|
|
17
|
+
|
|
18
|
+
Stack deployment commands for FlowMesh.
|
|
19
|
+
|
|
20
|
+
This package provides the `flowmesh stack` command group, including:
|
|
21
|
+
|
|
22
|
+
- stack lifecycle (`up`, `down`, `restart`, `clean`, `logs`, `ps`)
|
|
23
|
+
- local worker lifecycle helpers
|
|
24
|
+
- environment example generation
|
|
25
|
+
- bundle export and doctor checks
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
flowmesh_cli_stack/__init__.py,sha256=X2T98M1ZnB9avE8yVyrEqstgpCft1VjvbdnzMudExW8,365
|
|
2
|
+
flowmesh_cli_stack/bundle.py,sha256=6f_03LiXPcgJWmjIg2a_-yRGqURpDTjzhRbdwGVjBHo,13214
|
|
3
|
+
flowmesh_cli_stack/env_schema.py,sha256=hqUmQ2UDu1zoJzswtOhTgiy22xnCkRdAPEphqvEisoo,23683
|
|
4
|
+
flowmesh_cli_stack/stack.py,sha256=opsZ2oi1NWi6foRd0aV9CMF6x_Y3MqN1MBTcpnLZI0E,25237
|
|
5
|
+
flowmesh_cli_stack/utils.py,sha256=Y1l-8jtFp__TNJuxCqTEQY5X0-m7XrzNQYeWDfRzcJA,4412
|
|
6
|
+
flowmesh_cli_stack/worker.py,sha256=B_R9KyfWoPQ4_2h5y0Fs2-0PxbhJVGXfSNbJFk54074,8230
|
|
7
|
+
flowmesh_cli_stack/assets/.env.example,sha256=AW1fxn8sADO6bFaFE_cDtO67BbTO5s6ttp6HD7Yhksk,6363
|
|
8
|
+
flowmesh_cli_stack/assets/compose.yml,sha256=eqReevnmgtPFNL933B-eF4vKbnoU8SZMHsQcPwehMEQ,8400
|
|
9
|
+
flowmesh_cli_stack/assets/docker-bake.hcl,sha256=UpGEJ7zrzPWfNHriXh9ZUmJmoi3BVRPHhKV8U_ozk6U,2320
|
|
10
|
+
flowmesh_cli_stack-0.1.0.dist-info/licenses/LICENSE,sha256=2EOx4I-Cg1n3uvZXvAloS16odfAVttXTP2QInPjb5og,11351
|
|
11
|
+
flowmesh_cli_stack-0.1.0.dist-info/METADATA,sha256=ve2wQnPdTSKFZbh0mBqu6wUuM39RpsBB6DaTtLRZ2jk,702
|
|
12
|
+
flowmesh_cli_stack-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
13
|
+
flowmesh_cli_stack-0.1.0.dist-info/top_level.txt,sha256=_DkDWRw22x0hC5k9E46zOUFl5-Z1cyJyLSqhbCENBmU,19
|
|
14
|
+
flowmesh_cli_stack-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2026 The FlowMesh Authors
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
flowmesh_cli_stack
|