agentship-cli 0.0.1__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.
- agentship_cli-0.0.1/.gitignore +27 -0
- agentship_cli-0.0.1/PKG-INFO +25 -0
- agentship_cli-0.0.1/README.md +12 -0
- agentship_cli-0.0.1/pyproject.toml +25 -0
- agentship_cli-0.0.1/src/agentship_cli/main.py +1023 -0
- agentship_cli-0.0.1/src/agentship_cli/migrations.py +82 -0
- agentship_cli-0.0.1/src/agentship_cli/py.typed +0 -0
- agentship_cli-0.0.1/src/agentship_cli/scaffold.py +271 -0
- agentship_cli-0.0.1/src/agentship_cli/verify.py +391 -0
- agentship_cli-0.0.1/tests/test_cli.py +70 -0
- agentship_cli-0.0.1/tests/test_cli_db_upgrade.py +130 -0
- agentship_cli-0.0.1/tests/test_cli_doctor.py +168 -0
- agentship_cli-0.0.1/tests/test_cli_env.py +114 -0
- agentship_cli-0.0.1/tests/test_cli_errors.py +131 -0
- agentship_cli-0.0.1/tests/test_cli_init.py +95 -0
- agentship_cli-0.0.1/tests/test_cli_new_agent.py +63 -0
- agentship_cli-0.0.1/tests/test_cli_new_agent_templates.py +160 -0
- agentship_cli-0.0.1/tests/test_cli_observability.py +84 -0
- agentship_cli-0.0.1/tests/test_cli_serve.py +96 -0
- agentship_cli-0.0.1/tests/test_cli_studio.py +88 -0
- agentship_cli-0.0.1/tests/test_verify.py +63 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.egg-info/
|
|
5
|
+
.eggs/
|
|
6
|
+
build/
|
|
7
|
+
dist/
|
|
8
|
+
.venv/
|
|
9
|
+
venv/
|
|
10
|
+
.pytest_cache/
|
|
11
|
+
.ruff_cache/
|
|
12
|
+
.mypy_cache/
|
|
13
|
+
.coverage
|
|
14
|
+
htmlcov/
|
|
15
|
+
|
|
16
|
+
# Env / secrets — never commit
|
|
17
|
+
.env
|
|
18
|
+
.env.*
|
|
19
|
+
!.env.example
|
|
20
|
+
|
|
21
|
+
# Editor / OS
|
|
22
|
+
.DS_Store
|
|
23
|
+
.idea/
|
|
24
|
+
.vscode/
|
|
25
|
+
|
|
26
|
+
# Docs build
|
|
27
|
+
site/
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: agentship-cli
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: AgentShip CLI — the `agentship` command that loads a YAML spec, builds the agent, and runs (or streams) one turn.
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Requires-Python: >=3.13
|
|
7
|
+
Requires-Dist: agentship-core==0.0.1
|
|
8
|
+
Requires-Dist: agentship-service==0.0.1
|
|
9
|
+
Requires-Dist: click>=8
|
|
10
|
+
Requires-Dist: python-dotenv>=1
|
|
11
|
+
Requires-Dist: uvicorn[standard]>=0.30
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
|
|
14
|
+
# agentship-cli
|
|
15
|
+
|
|
16
|
+
The `agentship` command-line interface. Owns the `agentship` console script; import as `agentship_cli`.
|
|
17
|
+
|
|
18
|
+
Commands:
|
|
19
|
+
|
|
20
|
+
- `agentship init [DIR]` — scaffold a new single-tenant project (`agents/assistant.yaml`, `.env.example`, `README.md`) in `DIR` (default `.`). Refuses to overwrite existing files.
|
|
21
|
+
- `agentship new-agent NAME [--engine langgraph] [--agents-dir agents]` — write one starter agent spec at `<agents-dir>/NAME.yaml`. Refuses to overwrite.
|
|
22
|
+
- `agentship doctor [--agents-dir DIR | FILE]` — validate agent specs against their engines' declared capabilities. Prints a per-agent `OK`/`✗` line and exits `1` if any agent is invalid. An engine whose package is not installed yields an actionable `pip install` hint (no traceback).
|
|
23
|
+
- `agentship run FILE --input ... [--stream] [--env-file ...]` — load a YAML spec, build the agent, run (or stream) one turn, and print the output.
|
|
24
|
+
|
|
25
|
+
Harness errors print as a clean `Error:`/status line with a non-zero exit code rather than a traceback; pass `--debug` (on `run`/`doctor`) to re-raise for the full trace.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# agentship-cli
|
|
2
|
+
|
|
3
|
+
The `agentship` command-line interface. Owns the `agentship` console script; import as `agentship_cli`.
|
|
4
|
+
|
|
5
|
+
Commands:
|
|
6
|
+
|
|
7
|
+
- `agentship init [DIR]` — scaffold a new single-tenant project (`agents/assistant.yaml`, `.env.example`, `README.md`) in `DIR` (default `.`). Refuses to overwrite existing files.
|
|
8
|
+
- `agentship new-agent NAME [--engine langgraph] [--agents-dir agents]` — write one starter agent spec at `<agents-dir>/NAME.yaml`. Refuses to overwrite.
|
|
9
|
+
- `agentship doctor [--agents-dir DIR | FILE]` — validate agent specs against their engines' declared capabilities. Prints a per-agent `OK`/`✗` line and exits `1` if any agent is invalid. An engine whose package is not installed yields an actionable `pip install` hint (no traceback).
|
|
10
|
+
- `agentship run FILE --input ... [--stream] [--env-file ...]` — load a YAML spec, build the agent, run (or stream) one turn, and print the output.
|
|
11
|
+
|
|
12
|
+
Harness errors print as a clean `Error:`/status line with a non-zero exit code rather than a traceback; pass `--debug` (on `run`/`doctor`) to re-raise for the full trace.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "agentship-cli"
|
|
7
|
+
version = "0.0.1"
|
|
8
|
+
description = "AgentShip CLI — the `agentship` command that loads a YAML spec, builds the agent, and runs (or streams) one turn."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.13"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
dependencies = [
|
|
13
|
+
"agentship-core==0.0.1",
|
|
14
|
+
"agentship-service==0.0.1", # `agentship serve` builds the app via the service factory
|
|
15
|
+
"click>=8",
|
|
16
|
+
"python-dotenv>=1", # the CLI loads a .env for real runs (scoped to the entry point)
|
|
17
|
+
"uvicorn[standard]>=0.30", # `agentship serve` runs the ASGI app
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
# The console script that owns the `agentship` command.
|
|
21
|
+
[project.scripts]
|
|
22
|
+
agentship = "agentship_cli.main:main"
|
|
23
|
+
|
|
24
|
+
[tool.hatch.build.targets.wheel]
|
|
25
|
+
packages = ["src/agentship_cli"]
|