haru-cli 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.
- haru/__init__.py +1 -0
- haru/__main__.py +12 -0
- haru/agents/__init__.py +18 -0
- haru/agents/factory.py +76 -0
- haru/agents/orchestration.py +169 -0
- haru/auth/__init__.py +14 -0
- haru/auth/cache.py +82 -0
- haru/auth/pkce.py +21 -0
- haru/auth/session.py +95 -0
- haru/auth/sso.py +206 -0
- haru/cli.py +20 -0
- haru/commands/__init__.py +1 -0
- haru/commands/chat.py +102 -0
- haru/commands/login.py +34 -0
- haru/commands/run.py +60 -0
- haru/commands/session.py +36 -0
- haru/commands/streaming.py +34 -0
- haru/config/__init__.py +6 -0
- haru/config/loader.py +163 -0
- haru/config/schema.py +261 -0
- haru/errors.py +25 -0
- haru/models/__init__.py +5 -0
- haru/models/bedrock.py +77 -0
- haru/observability/__init__.py +6 -0
- haru/observability/guardrails.py +36 -0
- haru/observability/telemetry.py +34 -0
- haru/sessions/__init__.py +5 -0
- haru/sessions/manager.py +70 -0
- haru/steering/__init__.py +5 -0
- haru/steering/prompts.py +42 -0
- haru/tools/__init__.py +12 -0
- haru/tools/mcp.py +137 -0
- haru/tools/registry.py +41 -0
- haru_cli-0.1.0.dist-info/METADATA +120 -0
- haru_cli-0.1.0.dist-info/RECORD +38 -0
- haru_cli-0.1.0.dist-info/WHEEL +4 -0
- haru_cli-0.1.0.dist-info/entry_points.txt +2 -0
- haru_cli-0.1.0.dist-info/licenses/LICENSE +202 -0
haru/tools/mcp.py
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"""MCP client construction from typed configuration.
|
|
2
|
+
|
|
3
|
+
Environment references in commands, arguments, and headers are already
|
|
4
|
+
resolved by the configuration loader, so values arrive here as plain strings.
|
|
5
|
+
Connections are made lazily by Strands; construction failures honour each
|
|
6
|
+
server's ``continue_on_error`` flag so one bad server cannot abort startup.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
import contextlib
|
|
10
|
+
import logging
|
|
11
|
+
from collections.abc import Iterator, Mapping
|
|
12
|
+
from typing import Any
|
|
13
|
+
|
|
14
|
+
from mcp import StdioServerParameters, stdio_client
|
|
15
|
+
from mcp.client.streamable_http import streamablehttp_client
|
|
16
|
+
from strands.tools.mcp import MCPClient
|
|
17
|
+
|
|
18
|
+
from haru.config.schema import AgentConfig, MCPConfig, MCPServerConfig
|
|
19
|
+
from haru.errors import ToolError
|
|
20
|
+
from haru.tools.registry import resolve_builtin_tools
|
|
21
|
+
|
|
22
|
+
logger = logging.getLogger(__name__)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def build_mcp_clients(mcp_cfg: MCPConfig) -> dict[str, MCPClient]:
|
|
26
|
+
"""Build an MCPClient per enabled server; skip disabled ones.
|
|
27
|
+
|
|
28
|
+
A server that fails to construct is skipped with a warning when its
|
|
29
|
+
``continue_on_error`` flag is set, and raises ToolError otherwise.
|
|
30
|
+
"""
|
|
31
|
+
clients: dict[str, MCPClient] = {}
|
|
32
|
+
for name, server in mcp_cfg.mcp_servers.items():
|
|
33
|
+
if server.disabled:
|
|
34
|
+
logger.info("MCP server %r is disabled; skipping", name)
|
|
35
|
+
continue
|
|
36
|
+
try:
|
|
37
|
+
clients[name] = _build_client(server)
|
|
38
|
+
except Exception as exc:
|
|
39
|
+
if server.continue_on_error:
|
|
40
|
+
logger.warning("MCP server %r failed to construct; continuing: %s", name, exc)
|
|
41
|
+
continue
|
|
42
|
+
raise ToolError(f"MCP server {name!r} failed to construct: {exc}") from exc
|
|
43
|
+
return clients
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
@contextlib.contextmanager
|
|
47
|
+
def started_mcp_clients(mcp_cfg: MCPConfig | None) -> Iterator[dict[str, MCPClient]]:
|
|
48
|
+
"""Build and start every enabled MCP client for the duration of the context.
|
|
49
|
+
|
|
50
|
+
Startup failures honour each server's ``continue_on_error`` flag; all
|
|
51
|
+
started clients are stopped on exit.
|
|
52
|
+
"""
|
|
53
|
+
clients = build_mcp_clients(mcp_cfg) if mcp_cfg is not None else {}
|
|
54
|
+
started: dict[str, MCPClient] = {}
|
|
55
|
+
try:
|
|
56
|
+
for name, client in clients.items():
|
|
57
|
+
try:
|
|
58
|
+
client.start()
|
|
59
|
+
except Exception as exc:
|
|
60
|
+
if _continue_on_error(mcp_cfg, name):
|
|
61
|
+
logger.warning("MCP server %r failed to start; continuing: %s", name, exc)
|
|
62
|
+
continue
|
|
63
|
+
raise ToolError(f"MCP server {name!r} failed to start: {exc}") from exc
|
|
64
|
+
started[name] = client
|
|
65
|
+
yield started
|
|
66
|
+
finally:
|
|
67
|
+
for client in started.values():
|
|
68
|
+
with contextlib.suppress(Exception):
|
|
69
|
+
client.stop(None, None, None)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def collect_tools(
|
|
73
|
+
agent_cfg: AgentConfig,
|
|
74
|
+
registry: Mapping[str, Any] | None,
|
|
75
|
+
mcp_clients: Mapping[str, MCPClient],
|
|
76
|
+
*,
|
|
77
|
+
mcp_cfg: MCPConfig | None = None,
|
|
78
|
+
) -> list[Any]:
|
|
79
|
+
"""Collect an agent's built-in and MCP tools into one list.
|
|
80
|
+
|
|
81
|
+
``registry`` maps built-in tool names to implementations; None resolves
|
|
82
|
+
them from the standard allowlist. MCP tools are listed with
|
|
83
|
+
``list_tools_sync`` inside the already-started client context; a listing
|
|
84
|
+
failure is tolerated for servers with ``continue_on_error``.
|
|
85
|
+
"""
|
|
86
|
+
tools: list[Any] = []
|
|
87
|
+
if registry is None:
|
|
88
|
+
tools.extend(resolve_builtin_tools(agent_cfg.tools))
|
|
89
|
+
else:
|
|
90
|
+
tools.extend(resolve_builtin_tools_from(registry, agent_cfg.tools))
|
|
91
|
+
|
|
92
|
+
for name in agent_cfg.mcp_servers:
|
|
93
|
+
client = mcp_clients.get(name)
|
|
94
|
+
if client is None:
|
|
95
|
+
logger.info("MCP server %r unavailable (disabled or failed); skipping", name)
|
|
96
|
+
continue
|
|
97
|
+
try:
|
|
98
|
+
tools.extend(client.list_tools_sync())
|
|
99
|
+
except Exception as exc:
|
|
100
|
+
if _continue_on_error(mcp_cfg, name):
|
|
101
|
+
logger.warning("Listing tools from MCP server %r failed; continuing: %s", name, exc)
|
|
102
|
+
continue
|
|
103
|
+
raise ToolError(f"Listing tools from MCP server {name!r} failed: {exc}") from exc
|
|
104
|
+
return tools
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def resolve_builtin_tools_from(registry: Mapping[str, Any], names: tuple[str, ...]) -> list[Any]:
|
|
108
|
+
"""Resolve tool names against an explicit registry mapping."""
|
|
109
|
+
missing = [name for name in names if name not in registry]
|
|
110
|
+
if missing:
|
|
111
|
+
raise ToolError(f"Tools not present in registry: {', '.join(sorted(missing))}")
|
|
112
|
+
return [registry[name] for name in names]
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def _build_client(server: MCPServerConfig) -> MCPClient:
|
|
116
|
+
if server.transport == "stdio":
|
|
117
|
+
params = StdioServerParameters(command=str(server.command), args=list(server.args))
|
|
118
|
+
|
|
119
|
+
def stdio_transport() -> Any:
|
|
120
|
+
return stdio_client(params)
|
|
121
|
+
|
|
122
|
+
return MCPClient(stdio_transport, continue_on_error=server.continue_on_error)
|
|
123
|
+
|
|
124
|
+
url = str(server.url)
|
|
125
|
+
headers = dict(server.headers) if server.headers else None
|
|
126
|
+
|
|
127
|
+
def http_transport() -> Any:
|
|
128
|
+
return streamablehttp_client(url, headers=headers)
|
|
129
|
+
|
|
130
|
+
return MCPClient(http_transport, continue_on_error=server.continue_on_error)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
def _continue_on_error(mcp_cfg: MCPConfig | None, name: str) -> bool:
|
|
134
|
+
if mcp_cfg is None:
|
|
135
|
+
return False
|
|
136
|
+
server = mcp_cfg.mcp_servers.get(name)
|
|
137
|
+
return server is not None and server.continue_on_error
|
haru/tools/registry.py
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"""Registry mapping configuration names to built-in strands_tools implementations.
|
|
2
|
+
|
|
3
|
+
The registry is a curated allowlist: configuration can only reference tools
|
|
4
|
+
listed here, never import arbitrary modules. Destructive or shell-executing
|
|
5
|
+
tools are deliberately excluded.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
import importlib
|
|
9
|
+
from collections.abc import Sequence
|
|
10
|
+
from typing import Any
|
|
11
|
+
|
|
12
|
+
from haru.errors import ConfigError
|
|
13
|
+
|
|
14
|
+
_BUILTIN_TOOL_MODULES: dict[str, str] = {
|
|
15
|
+
"calculator": "strands_tools.calculator",
|
|
16
|
+
"current_time": "strands_tools.current_time",
|
|
17
|
+
"file_read": "strands_tools.file_read",
|
|
18
|
+
"http_request": "strands_tools.http_request",
|
|
19
|
+
"sleep": "strands_tools.sleep",
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def available_builtin_tools() -> list[str]:
|
|
24
|
+
"""Return the names configuration may reference, sorted."""
|
|
25
|
+
return sorted(_BUILTIN_TOOL_MODULES)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def resolve_builtin_tools(names: Sequence[str]) -> list[Any]:
|
|
29
|
+
"""Resolve configured tool names to their strands_tools implementations.
|
|
30
|
+
|
|
31
|
+
Raises ConfigError for names outside the allowlist.
|
|
32
|
+
"""
|
|
33
|
+
tools: list[Any] = []
|
|
34
|
+
for name in names:
|
|
35
|
+
module_path = _BUILTIN_TOOL_MODULES.get(name)
|
|
36
|
+
if module_path is None:
|
|
37
|
+
available = ", ".join(available_builtin_tools())
|
|
38
|
+
raise ConfigError(f"Unknown built-in tool {name!r}; available tools: {available}")
|
|
39
|
+
module = importlib.import_module(module_path)
|
|
40
|
+
tools.append(getattr(module, name, module))
|
|
41
|
+
return tools
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: haru-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Secure, scriptable CLI for Amazon Bedrock Claude models via the AWS Strands Agents SDK.
|
|
5
|
+
Author: haru-cli maintainers
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Keywords: agents,bedrock,claude,cli,strands
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Environment :: Console
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
15
|
+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
16
|
+
Requires-Python: >=3.13
|
|
17
|
+
Requires-Dist: boto3>=1.43.0
|
|
18
|
+
Requires-Dist: botocore>=1.43.0
|
|
19
|
+
Requires-Dist: click>=8.2.0
|
|
20
|
+
Requires-Dist: opentelemetry-exporter-otlp>=1.27.0
|
|
21
|
+
Requires-Dist: opentelemetry-sdk>=1.27.0
|
|
22
|
+
Requires-Dist: pydantic>=2.9.0
|
|
23
|
+
Requires-Dist: pyyaml>=6.0.2
|
|
24
|
+
Requires-Dist: rich>=13.9.0
|
|
25
|
+
Requires-Dist: strands-agents-tools>=0.2.0
|
|
26
|
+
Requires-Dist: strands-agents>=1.42.0
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
|
|
29
|
+
# haru-cli
|
|
30
|
+
|
|
31
|
+
A secure, scriptable command line interface for interacting with Amazon Bedrock Claude models
|
|
32
|
+
through governed, observable, multi-agent workflows. haru-cli is a thin, functional orchestration
|
|
33
|
+
layer over the [AWS Strands Agents SDK](https://strandsagents.com), talking to Bedrock through the
|
|
34
|
+
Converse API with streaming, tool use, MCP client support, multi-agent orchestration, session
|
|
35
|
+
persistence, OpenTelemetry observability, and Bedrock Guardrails.
|
|
36
|
+
|
|
37
|
+
## Requirements
|
|
38
|
+
|
|
39
|
+
- Python 3.13+ (tested on 3.13 and 3.14)
|
|
40
|
+
- [uv](https://docs.astral.sh/uv/)
|
|
41
|
+
- AWS access via IAM Identity Center (SSO)
|
|
42
|
+
|
|
43
|
+
## Install
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
pipx install haru-cli
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Or from a clone:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
uv sync
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Commands
|
|
56
|
+
|
|
57
|
+
| Command | Purpose |
|
|
58
|
+
| -------------------------------- | ------------------------------------------------------------- |
|
|
59
|
+
| `haru login` | Browser sign-in to IAM Identity Center (OAuth 2.0 + PKCE) |
|
|
60
|
+
| `haru chat` | Interactive streaming chat REPL |
|
|
61
|
+
| `haru chat --session-id <id>` | Persist and restore the conversation under a session id |
|
|
62
|
+
| `haru chat --agent <name>` | Chat with a specific configured agent |
|
|
63
|
+
| `haru run "<prompt>"` | One-shot prompt; prints the answer and exits |
|
|
64
|
+
| `haru session list` | List stored session ids |
|
|
65
|
+
| `haru --version` | Print the installed version |
|
|
66
|
+
|
|
67
|
+
Every command accepts `--config <path>` (default: `config/haru.yaml`).
|
|
68
|
+
|
|
69
|
+
## Quickstart
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
uv run haru login
|
|
73
|
+
uv run haru run "Summarise the Converse API in two sentences."
|
|
74
|
+
uv run haru chat --agent supervisor --session-id demo
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Authentication uses the same PKCE authorization-code flow as `aws sso login`,
|
|
78
|
+
caching tokens in the botocore-compatible schema under `~/.aws/sso/cache`
|
|
79
|
+
(0600) so standard AWS tooling can consume and refresh the same cache. Access
|
|
80
|
+
tokens are refreshed automatically; when a fresh login is needed, commands say
|
|
81
|
+
so plainly.
|
|
82
|
+
|
|
83
|
+
## Configuration
|
|
84
|
+
|
|
85
|
+
Declarative YAML under `config/` — models, agents, orchestration
|
|
86
|
+
(supervisor/swarm/graph), MCP servers, guardrails, sessions, logging, and
|
|
87
|
+
OpenTelemetry. No secrets in YAML: values reference environment variables with
|
|
88
|
+
`${env:VAR}`. See [docs/configuration.md](docs/configuration.md).
|
|
89
|
+
|
|
90
|
+
## Development
|
|
91
|
+
|
|
92
|
+
All quality gates must pass before a change is considered done:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
uv run ruff check
|
|
96
|
+
uv run ruff format
|
|
97
|
+
uv run mypy src
|
|
98
|
+
uv run pytest
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Coverage is gated at 90% (`--cov-fail-under=90`). CI runs the full gate set on
|
|
102
|
+
Python 3.13 and 3.14; releases are built with `uv build` and published to PyPI
|
|
103
|
+
via Trusted Publishing on `v*` tags.
|
|
104
|
+
|
|
105
|
+
Install the pre-commit hooks once per clone:
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
uv tool run pre-commit install
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Project layout
|
|
112
|
+
|
|
113
|
+
- `src/haru/` — the package (auth, config, models, agents, tools, steering, sessions, observability, commands)
|
|
114
|
+
- `config/` — declarative YAML configuration and steering prompts
|
|
115
|
+
- `tests/unit`, `tests/integration` — pytest suites (coverage gate: 90%)
|
|
116
|
+
- `.kiro/steering/` — authoritative engineering steering documents
|
|
117
|
+
|
|
118
|
+
## License
|
|
119
|
+
|
|
120
|
+
Apache-2.0. See [LICENSE](LICENSE).
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
haru/__init__.py,sha256=AOrjnL2FXMFTDw6pEommU4kvlbHJsF_8toNP7qv5D5g,86
|
|
2
|
+
haru/__main__.py,sha256=3niFt4P-W4rxVTn_CF8O-I0rfskZ7Lsff6n7xnTndO4,207
|
|
3
|
+
haru/cli.py,sha256=OwyqUZ4bhmvR4nLBBKEeXKeu-kKDQjAD32PWaER8EvU,461
|
|
4
|
+
haru/errors.py,sha256=5TIiTz5tEUKibi8ZwYsMEfBMjDQUCaOI-9GPfN7b8hU,666
|
|
5
|
+
haru/agents/__init__.py,sha256=I5mD2KLAR8C7w9hUuDzkGIyEXNY38bQJRex8LNpsCtQ,388
|
|
6
|
+
haru/agents/factory.py,sha256=Y_EOYRxkRjqEN_doAoz8mXrC5uaNBOmunk4jsU3rslA,2886
|
|
7
|
+
haru/agents/orchestration.py,sha256=YotcqYB5a-A9cqyODJ1FRC07DjAUnnh4A5Nd1YKWIL0,6149
|
|
8
|
+
haru/auth/__init__.py,sha256=nrn6bMlp2H9S7W9GxHdZ8K6LHkyJIjbedgwWvQXn98o,414
|
|
9
|
+
haru/auth/cache.py,sha256=bL7TLUgCRvqvh4G0Wlz3hDyasprM0dlly0J595N3dcY,3251
|
|
10
|
+
haru/auth/pkce.py,sha256=4UOQ41Km0Ab5-_LLFD0hK__kFn-hWPNZ_EgwYg8ENGU,810
|
|
11
|
+
haru/auth/session.py,sha256=n4tnndNqjFQs_wEV5nhoxnFwTLqdN0LhTHEekPj6OuE,3589
|
|
12
|
+
haru/auth/sso.py,sha256=TkU0f3EJRO3ZJDwPrCkzdE6SgIyInWBcd-N5B8F-oyM,7427
|
|
13
|
+
haru/commands/__init__.py,sha256=eMuN_OKRq8201izNqZX86qu-O396MdEFyJWjV951WeU,54
|
|
14
|
+
haru/commands/chat.py,sha256=dHfwcqhgpz-r9p_MnCNWZ1PXasXTpU9TOgR5ue8JvIk,3428
|
|
15
|
+
haru/commands/login.py,sha256=tbdmMq-J6n5oUmjJFoRjbkNYpfbJeeKqMZwaK9tOfSs,1019
|
|
16
|
+
haru/commands/run.py,sha256=FDYXfaNBdgpzOP8tm8sqokffhYEprI8t0OlyIRjC9s8,2146
|
|
17
|
+
haru/commands/session.py,sha256=WCdlJGy9L2--pRGg16d6d7VmOtwLp52EMlbTLzQKR1w,1001
|
|
18
|
+
haru/commands/streaming.py,sha256=QAdUFkUzoW4b9tu8FqZ0k6UEhlw3wqE2ByGHmAwbA3s,1200
|
|
19
|
+
haru/config/__init__.py,sha256=AYLdMYODFTLmj2SH1v2iADGfEXoDJflGYUy8WrZ5nyQ,246
|
|
20
|
+
haru/config/loader.py,sha256=WpPYS0pQ0qzv-cf_tc6bALxcMtP-ImajlHGdmjA9cQ4,6619
|
|
21
|
+
haru/config/schema.py,sha256=LM63JZv2VqrtyVz-_zW7Bob1Yk2S0imnBaIrgmJIRDw,7378
|
|
22
|
+
haru/models/__init__.py,sha256=-dF81PIVb0yC-6Xecd0d3YZK8jhjixOnb8IQzgqq5Bw,214
|
|
23
|
+
haru/models/bedrock.py,sha256=CsX4CWv04ENgOrZPSg8Evin82XeSGRixkEyNTO6osNg,2827
|
|
24
|
+
haru/observability/__init__.py,sha256=4XoreekrvRIfyxpIUvpwej4rauCzB0B9OVvSzThFWrs,240
|
|
25
|
+
haru/observability/guardrails.py,sha256=-6an8UAmz7N9t1rQAu7xipvj1AkBgswLg_mh8ClsXaQ,1402
|
|
26
|
+
haru/observability/telemetry.py,sha256=BCP4WYpcy11OOBkny6847Qxhx78EHamROkTXFb5NBmY,1172
|
|
27
|
+
haru/sessions/__init__.py,sha256=hkwxTAJUMoa4_Wh9P23VIu5cujA3XqcXPfqIeB_zva0,166
|
|
28
|
+
haru/sessions/manager.py,sha256=mhzcWCViGdwO6b0AJsOm7Lh0nWq4DLFG6AA7xt_ALLk,2737
|
|
29
|
+
haru/steering/__init__.py,sha256=4bU66aaApwWjoUNUEUxPYt6SFG8HxhTj6lDRrXp2BeU,151
|
|
30
|
+
haru/steering/prompts.py,sha256=QdfmqNETNWnQ68aytQV3u-Yq8dSJcWTEd6t6m46WnyM,1536
|
|
31
|
+
haru/tools/__init__.py,sha256=IP6TKSJaLsfb6dEN1BKRj_up6diEKYB8Zby-SSpdYuw,367
|
|
32
|
+
haru/tools/mcp.py,sha256=Q5tmbH_eZ0nJR_KGl__EjAoV2Bf2aw_BiKwyXfp0CjU,5277
|
|
33
|
+
haru/tools/registry.py,sha256=RKCcF5Qm-axPa7WPCSlVgPvy9LQb1enMu9dbNggdj6M,1430
|
|
34
|
+
haru_cli-0.1.0.dist-info/METADATA,sha256=onmKi0PPRSd0b77aBWFBWIHKvHKaKufXlSW6qeRXyIM,4355
|
|
35
|
+
haru_cli-0.1.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
|
|
36
|
+
haru_cli-0.1.0.dist-info/entry_points.txt,sha256=S7Wlevg40cd96zhEh5iaDVysyc4oWrqEzGZEI1yAN8s,44
|
|
37
|
+
haru_cli-0.1.0.dist-info/licenses/LICENSE,sha256=OhX4AomevVR6zzK6gJ8jfOpGcckdNzKVHV3PZ8vrzp0,11356
|
|
38
|
+
haru_cli-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this
|
|
152
|
+
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 haru-cli maintainers
|
|
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.
|