solwyn-cli 0.1.0__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.
- solwyn_cli-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +87 -0
- solwyn_cli-0.1.0/.github/ISSUE_TEMPLATE/config.yml +2 -0
- solwyn_cli-0.1.0/.github/workflows/ci.yml +98 -0
- solwyn_cli-0.1.0/.github/workflows/publish.yml +58 -0
- solwyn_cli-0.1.0/.gitignore +14 -0
- solwyn_cli-0.1.0/LICENSE +201 -0
- solwyn_cli-0.1.0/PKG-INFO +60 -0
- solwyn_cli-0.1.0/README.md +41 -0
- solwyn_cli-0.1.0/SECURITY.md +11 -0
- solwyn_cli-0.1.0/pyproject.toml +38 -0
- solwyn_cli-0.1.0/scripts/inspect_wheel.py +120 -0
- solwyn_cli-0.1.0/scripts/sync_spec.py +104 -0
- solwyn_cli-0.1.0/src/solwyn_cli/__init__.py +3 -0
- solwyn_cli-0.1.0/src/solwyn_cli/_vendor/__init__.py +1 -0
- solwyn_cli-0.1.0/src/solwyn_cli/_vendor/validation.py +21 -0
- solwyn_cli-0.1.0/src/solwyn_cli/_vendor/wire.py +185 -0
- solwyn_cli-0.1.0/src/solwyn_cli/artifacts/__init__.py +727 -0
- solwyn_cli-0.1.0/src/solwyn_cli/artifacts/_atomic.py +79 -0
- solwyn_cli-0.1.0/src/solwyn_cli/auth.py +252 -0
- solwyn_cli-0.1.0/src/solwyn_cli/client.py +279 -0
- solwyn_cli-0.1.0/src/solwyn_cli/commands/__init__.py +1 -0
- solwyn_cli-0.1.0/src/solwyn_cli/commands/_shared.py +49 -0
- solwyn_cli-0.1.0/src/solwyn_cli/commands/agent_context.py +19 -0
- solwyn_cli-0.1.0/src/solwyn_cli/commands/budget.py +976 -0
- solwyn_cli-0.1.0/src/solwyn_cli/commands/config.py +110 -0
- solwyn_cli-0.1.0/src/solwyn_cli/commands/costs.py +186 -0
- solwyn_cli-0.1.0/src/solwyn_cli/commands/init.py +659 -0
- solwyn_cli-0.1.0/src/solwyn_cli/commands/keys.py +386 -0
- solwyn_cli-0.1.0/src/solwyn_cli/commands/login.py +205 -0
- solwyn_cli-0.1.0/src/solwyn_cli/commands/mcp.py +28 -0
- solwyn_cli-0.1.0/src/solwyn_cli/commands/projects.py +449 -0
- solwyn_cli-0.1.0/src/solwyn_cli/commands/status.py +173 -0
- solwyn_cli-0.1.0/src/solwyn_cli/commands/whoami.py +170 -0
- solwyn_cli-0.1.0/src/solwyn_cli/config.py +209 -0
- solwyn_cli-0.1.0/src/solwyn_cli/errors.py +114 -0
- solwyn_cli-0.1.0/src/solwyn_cli/exit_codes.py +56 -0
- solwyn_cli-0.1.0/src/solwyn_cli/help.py +19 -0
- solwyn_cli-0.1.0/src/solwyn_cli/main.py +135 -0
- solwyn_cli-0.1.0/src/solwyn_cli/mcp/__init__.py +5 -0
- solwyn_cli-0.1.0/src/solwyn_cli/mcp/server.py +728 -0
- solwyn_cli-0.1.0/src/solwyn_cli/output.py +263 -0
- solwyn_cli-0.1.0/src/solwyn_cli/runtime.py +115 -0
- solwyn_cli-0.1.0/src/solwyn_cli/spec/__init__.py +1 -0
- solwyn_cli-0.1.0/src/solwyn_cli/spec/openapi_snapshot.json +12357 -0
- solwyn_cli-0.1.0/tests/golden/__init__.py +1 -0
- solwyn_cli-0.1.0/tests/golden/agent-context.txt +23 -0
- solwyn_cli-0.1.0/tests/golden/budget-check-allow-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/budget-check-allow-table.txt +10 -0
- solwyn_cli-0.1.0/tests/golden/budget-check-deny-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/budget-check-deny-table.txt +10 -0
- solwyn_cli-0.1.0/tests/golden/budget-check-fail-open-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/budget-check-fail-open-table.txt +10 -0
- solwyn_cli-0.1.0/tests/golden/budget-confirm-expired-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/budget-confirm-expired-table.txt +2 -0
- solwyn_cli-0.1.0/tests/golden/budget-confirm-missing-reservation-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/budget-confirm-missing-reservation-table.txt +2 -0
- solwyn_cli-0.1.0/tests/golden/budget-confirm-success-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/budget-confirm-success-table.txt +3 -0
- solwyn_cli-0.1.0/tests/golden/budget-set-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/budget-set-table.txt +11 -0
- solwyn_cli-0.1.0/tests/golden/budget-status-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/budget-status-table.txt +8 -0
- solwyn_cli-0.1.0/tests/golden/costs-day-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/costs-day-table.txt +2 -0
- solwyn_cli-0.1.0/tests/golden/costs-model-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/costs-model-table.txt +2 -0
- solwyn_cli-0.1.0/tests/golden/costs-provider-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/costs-provider-table.txt +2 -0
- solwyn_cli-0.1.0/tests/golden/email-not-verified.json +1 -0
- solwyn_cli-0.1.0/tests/golden/error.json +1 -0
- solwyn_cli-0.1.0/tests/golden/harness.py +20 -0
- solwyn_cli-0.1.0/tests/golden/human-error.txt +2 -0
- solwyn_cli-0.1.0/tests/golden/init-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/init-table.txt +9 -0
- solwyn_cli-0.1.0/tests/golden/keys-environment-key-refusal-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/keys-environment-key-refusal-table.txt +2 -0
- solwyn_cli-0.1.0/tests/golden/keys-keyring-key-refusal-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/keys-keyring-key-refusal-table.txt +2 -0
- solwyn_cli-0.1.0/tests/golden/keys-not-found-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/keys-not-found-table.txt +2 -0
- solwyn_cli-0.1.0/tests/golden/keys-revoke-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/keys-revoke-table.txt +4 -0
- solwyn_cli-0.1.0/tests/golden/keys-rotate-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/keys-rotate-table.txt +7 -0
- solwyn_cli-0.1.0/tests/golden/keys-show-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/keys-show-table.txt +8 -0
- solwyn_cli-0.1.0/tests/golden/login-jwt-table.txt +2 -0
- solwyn_cli-0.1.0/tests/golden/login-jwt.json +1 -0
- solwyn_cli-0.1.0/tests/golden/login-key-table.txt +2 -0
- solwyn_cli-0.1.0/tests/golden/login-key.json +1 -0
- solwyn_cli-0.1.0/tests/golden/logout-table.txt +2 -0
- solwyn_cli-0.1.0/tests/golden/logout.json +1 -0
- solwyn_cli-0.1.0/tests/golden/mcp-tools.json +1879 -0
- solwyn_cli-0.1.0/tests/golden/projects-create-display-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/projects-create-display-table.txt +11 -0
- solwyn_cli-0.1.0/tests/golden/projects-create-stored-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/projects-create-stored-table.txt +9 -0
- solwyn_cli-0.1.0/tests/golden/projects-list-environment-key-refusal-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/projects-list-environment-key-refusal-table.txt +2 -0
- solwyn_cli-0.1.0/tests/golden/projects-list-jwt-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/projects-list-jwt-table.txt +3 -0
- solwyn_cli-0.1.0/tests/golden/projects-list-keyring-key-refusal-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/projects-list-keyring-key-refusal-table.txt +2 -0
- solwyn_cli-0.1.0/tests/golden/projects-show-jwt-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/projects-show-jwt-table.txt +7 -0
- solwyn_cli-0.1.0/tests/golden/projects-show-key-json.json +1 -0
- solwyn_cli-0.1.0/tests/golden/projects-show-key-table.txt +7 -0
- solwyn_cli-0.1.0/tests/golden/status-table.txt +16 -0
- solwyn_cli-0.1.0/tests/golden/status.json +1 -0
- solwyn_cli-0.1.0/tests/golden/success.json +1 -0
- solwyn_cli-0.1.0/tests/golden/table-no-color.txt +2 -0
- solwyn_cli-0.1.0/tests/golden/table-non-tty.txt +2 -0
- solwyn_cli-0.1.0/tests/golden/table-tty.txt +2 -0
- solwyn_cli-0.1.0/tests/golden/whoami-jwt-table.txt +7 -0
- solwyn_cli-0.1.0/tests/golden/whoami-jwt.json +1 -0
- solwyn_cli-0.1.0/tests/golden/whoami-key-table.txt +4 -0
- solwyn_cli-0.1.0/tests/golden/whoami-key.json +1 -0
- solwyn_cli-0.1.0/tests/test_agent_artifacts.py +653 -0
- solwyn_cli-0.1.0/tests/test_atomic_rename.py +68 -0
- solwyn_cli-0.1.0/tests/test_auth.py +590 -0
- solwyn_cli-0.1.0/tests/test_auth_commands.py +686 -0
- solwyn_cli-0.1.0/tests/test_budget_check_command.py +385 -0
- solwyn_cli-0.1.0/tests/test_budget_command.py +405 -0
- solwyn_cli-0.1.0/tests/test_budget_confirm_command.py +501 -0
- solwyn_cli-0.1.0/tests/test_budget_set_command.py +558 -0
- solwyn_cli-0.1.0/tests/test_ci_packaging_smoke.py +162 -0
- solwyn_cli-0.1.0/tests/test_client.py +671 -0
- solwyn_cli-0.1.0/tests/test_config.py +353 -0
- solwyn_cli-0.1.0/tests/test_config_command.py +125 -0
- solwyn_cli-0.1.0/tests/test_costs_command.py +427 -0
- solwyn_cli-0.1.0/tests/test_errors.py +149 -0
- solwyn_cli-0.1.0/tests/test_exit_codes.py +65 -0
- solwyn_cli-0.1.0/tests/test_help_snapshots.py +303 -0
- solwyn_cli-0.1.0/tests/test_init_command.py +1069 -0
- solwyn_cli-0.1.0/tests/test_keys_command.py +508 -0
- solwyn_cli-0.1.0/tests/test_mcp_conformance.py +1095 -0
- solwyn_cli-0.1.0/tests/test_mcp_server.py +406 -0
- solwyn_cli-0.1.0/tests/test_output.py +378 -0
- solwyn_cli-0.1.0/tests/test_output_discipline.py +198 -0
- solwyn_cli-0.1.0/tests/test_projects_command.py +835 -0
- solwyn_cli-0.1.0/tests/test_request_drift.py +1085 -0
- solwyn_cli-0.1.0/tests/test_response_subset.py +938 -0
- solwyn_cli-0.1.0/tests/test_runtime.py +89 -0
- solwyn_cli-0.1.0/tests/test_shared_command_auth.py +11 -0
- solwyn_cli-0.1.0/tests/test_smoke.py +12 -0
- solwyn_cli-0.1.0/tests/test_snapshot_age.py +88 -0
- solwyn_cli-0.1.0/tests/test_status_command.py +346 -0
- solwyn_cli-0.1.0/tests/test_vendor_sync.py +95 -0
- solwyn_cli-0.1.0/tests/test_vendor_validation.py +30 -0
- solwyn_cli-0.1.0/tests/test_vendor_wire.py +221 -0
- solwyn_cli-0.1.0/uv.lock +1049 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Report a reproducible problem with the Solwyn CLI
|
|
3
|
+
title: "[Bug]: "
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
Thanks for helping improve the Solwyn CLI.
|
|
9
|
+
|
|
10
|
+
**Protect your data:** Do not include credentials, Solwyn or provider API keys,
|
|
11
|
+
prompts, responses, request or response bodies, or any other sensitive or private
|
|
12
|
+
data. Redact secrets and identifying values before submitting this report.
|
|
13
|
+
|
|
14
|
+
- type: input
|
|
15
|
+
id: version
|
|
16
|
+
attributes:
|
|
17
|
+
label: Solwyn CLI version
|
|
18
|
+
description: Run `solwyn --version`. This command does not print credentials.
|
|
19
|
+
placeholder: "0.1.0"
|
|
20
|
+
validations:
|
|
21
|
+
required: true
|
|
22
|
+
|
|
23
|
+
- type: input
|
|
24
|
+
id: command
|
|
25
|
+
attributes:
|
|
26
|
+
label: Redacted command or subcommand
|
|
27
|
+
description: Include only the command shape. Replace project IDs and other private values with placeholders, and never include credentials.
|
|
28
|
+
placeholder: "solwyn costs --project <redacted>"
|
|
29
|
+
validations:
|
|
30
|
+
required: true
|
|
31
|
+
|
|
32
|
+
- type: textarea
|
|
33
|
+
id: reproduction
|
|
34
|
+
attributes:
|
|
35
|
+
label: Steps to reproduce
|
|
36
|
+
description: Describe the smallest safe reproduction. Do not paste prompts, responses, payloads, credentials, API keys, or private data.
|
|
37
|
+
placeholder: |
|
|
38
|
+
1. Configure a test project using redacted values.
|
|
39
|
+
2. Run the command shown above.
|
|
40
|
+
3. Observe the behavior described below.
|
|
41
|
+
validations:
|
|
42
|
+
required: true
|
|
43
|
+
|
|
44
|
+
- type: textarea
|
|
45
|
+
id: actual_behavior
|
|
46
|
+
attributes:
|
|
47
|
+
label: Actual behavior
|
|
48
|
+
description: Describe the result and any sanitized error text. Remove secrets, payloads, prompts, responses, and identifying data.
|
|
49
|
+
validations:
|
|
50
|
+
required: true
|
|
51
|
+
|
|
52
|
+
- type: textarea
|
|
53
|
+
id: expected_behavior
|
|
54
|
+
attributes:
|
|
55
|
+
label: Expected behavior
|
|
56
|
+
description: Describe what you expected the CLI to do.
|
|
57
|
+
validations:
|
|
58
|
+
required: true
|
|
59
|
+
|
|
60
|
+
- type: textarea
|
|
61
|
+
id: environment
|
|
62
|
+
attributes:
|
|
63
|
+
label: Environment
|
|
64
|
+
description: Include your operating system, Python version, shell, and installation method. Do not include environment variable values.
|
|
65
|
+
placeholder: |
|
|
66
|
+
- OS: macOS 15
|
|
67
|
+
- Python: 3.12
|
|
68
|
+
- Shell: zsh
|
|
69
|
+
- Install method: uv tool
|
|
70
|
+
validations:
|
|
71
|
+
required: true
|
|
72
|
+
|
|
73
|
+
- type: checkboxes
|
|
74
|
+
id: safety
|
|
75
|
+
attributes:
|
|
76
|
+
label: Safety check
|
|
77
|
+
options:
|
|
78
|
+
- label: I removed credentials, API keys, prompts, responses, payloads, and all other sensitive or private data from this report.
|
|
79
|
+
required: true
|
|
80
|
+
|
|
81
|
+
- type: checkboxes
|
|
82
|
+
id: existing_issues
|
|
83
|
+
attributes:
|
|
84
|
+
label: Existing issues
|
|
85
|
+
options:
|
|
86
|
+
- label: I searched the existing issues and did not find a matching report.
|
|
87
|
+
required: true
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
14
|
+
cancel-in-progress: true
|
|
15
|
+
|
|
16
|
+
env:
|
|
17
|
+
UV_VERSION: "0.11.28"
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
quality:
|
|
21
|
+
name: Quality
|
|
22
|
+
runs-on: ubuntu-latest
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
25
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
|
26
|
+
with:
|
|
27
|
+
python-version: "3.13"
|
|
28
|
+
- uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
|
|
29
|
+
with:
|
|
30
|
+
enable-cache: true
|
|
31
|
+
version: ${{ env.UV_VERSION }}
|
|
32
|
+
- name: Install dependencies
|
|
33
|
+
run: uv sync --locked --all-groups
|
|
34
|
+
- name: Ruff check
|
|
35
|
+
run: uv run --no-sync ruff check .
|
|
36
|
+
- name: Ruff format check
|
|
37
|
+
run: uv run --no-sync ruff format --check .
|
|
38
|
+
|
|
39
|
+
tests:
|
|
40
|
+
name: Tests (Python ${{ matrix.python-version }})
|
|
41
|
+
runs-on: ubuntu-latest
|
|
42
|
+
strategy:
|
|
43
|
+
fail-fast: false
|
|
44
|
+
matrix:
|
|
45
|
+
python-version:
|
|
46
|
+
- "3.11"
|
|
47
|
+
- "3.12"
|
|
48
|
+
- "3.13"
|
|
49
|
+
steps:
|
|
50
|
+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
51
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
|
52
|
+
with:
|
|
53
|
+
python-version: ${{ matrix.python-version }}
|
|
54
|
+
- uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
|
|
55
|
+
with:
|
|
56
|
+
enable-cache: true
|
|
57
|
+
version: ${{ env.UV_VERSION }}
|
|
58
|
+
- name: Install dependencies
|
|
59
|
+
run: uv sync --locked --all-groups
|
|
60
|
+
- name: Run tests
|
|
61
|
+
run: uv run --no-sync pytest
|
|
62
|
+
|
|
63
|
+
packaging-smoke:
|
|
64
|
+
name: Packaging smoke
|
|
65
|
+
runs-on: ubuntu-latest
|
|
66
|
+
steps:
|
|
67
|
+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
68
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
|
69
|
+
with:
|
|
70
|
+
python-version: "3.13"
|
|
71
|
+
- uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
|
|
72
|
+
with:
|
|
73
|
+
enable-cache: true
|
|
74
|
+
version: ${{ env.UV_VERSION }}
|
|
75
|
+
- name: Install locked dependencies
|
|
76
|
+
run: uv sync --locked --all-groups
|
|
77
|
+
- name: Build distributions
|
|
78
|
+
run: uv build --clear
|
|
79
|
+
- name: Select exactly one wheel
|
|
80
|
+
id: wheel
|
|
81
|
+
run: |
|
|
82
|
+
shopt -s nullglob
|
|
83
|
+
wheels=(dist/*.whl)
|
|
84
|
+
if [[ "${#wheels[@]}" -ne 1 ]]; then
|
|
85
|
+
echo "expected exactly one wheel, found ${#wheels[@]}" >&2
|
|
86
|
+
exit 1
|
|
87
|
+
fi
|
|
88
|
+
printf 'path=%s\n' "${wheels[0]}" >> "$GITHUB_OUTPUT"
|
|
89
|
+
- name: Inspect wheel metadata and contents
|
|
90
|
+
run: uv run --no-sync python scripts/inspect_wheel.py "${{ steps.wheel.outputs.path }}"
|
|
91
|
+
- name: Test both console entrypoints from the wheel
|
|
92
|
+
run: |
|
|
93
|
+
wheel="$(realpath "${{ steps.wheel.outputs.path }}")"
|
|
94
|
+
smoke_dir="$(mktemp -d)"
|
|
95
|
+
trap 'rm -rf "$smoke_dir"' EXIT
|
|
96
|
+
cd "$smoke_dir"
|
|
97
|
+
UV_CACHE_DIR="$smoke_dir/cache" uvx --from "$wheel" solwyn --version
|
|
98
|
+
UV_CACHE_DIR="$smoke_dir/cache" uvx --from "$wheel" solwyn-cli --version
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
name: Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags: ["v*"]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
build:
|
|
9
|
+
name: Build distribution
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
13
|
+
with:
|
|
14
|
+
fetch-depth: 0
|
|
15
|
+
- uses: hynek/build-and-inspect-python-package@d44ca7d91762de7a7d5436ddae667c6da6d1c3df # v2
|
|
16
|
+
|
|
17
|
+
test:
|
|
18
|
+
name: Test built package
|
|
19
|
+
needs: build
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
strategy:
|
|
22
|
+
matrix:
|
|
23
|
+
python-version: ["3.11", "3.12", "3.13"]
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
26
|
+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
|
|
27
|
+
with:
|
|
28
|
+
python-version: ${{ matrix.python-version }}
|
|
29
|
+
- uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
|
|
30
|
+
with:
|
|
31
|
+
version: "0.11.28"
|
|
32
|
+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
|
33
|
+
with:
|
|
34
|
+
name: Packages
|
|
35
|
+
path: dist
|
|
36
|
+
- name: Install built package and test dependencies
|
|
37
|
+
run: |
|
|
38
|
+
uv venv --python "${{ matrix.python-version }}"
|
|
39
|
+
uv pip install --python .venv/bin/python dist/*.whl pytest
|
|
40
|
+
- name: Test built package
|
|
41
|
+
run: uv run --no-project --python .venv/bin/python pytest tests/ -v --tb=short
|
|
42
|
+
|
|
43
|
+
publish:
|
|
44
|
+
name: Publish to PyPI
|
|
45
|
+
needs: [build, test]
|
|
46
|
+
runs-on: ubuntu-latest
|
|
47
|
+
environment:
|
|
48
|
+
name: pypi
|
|
49
|
+
url: https://pypi.org/p/solwyn-cli
|
|
50
|
+
permissions:
|
|
51
|
+
id-token: write
|
|
52
|
+
contents: read
|
|
53
|
+
steps:
|
|
54
|
+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
|
55
|
+
with:
|
|
56
|
+
name: Packages
|
|
57
|
+
path: dist
|
|
58
|
+
- uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1
|
solwyn_cli-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
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 License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Solwyn
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: solwyn-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Command-line client for Solwyn
|
|
5
|
+
Author-email: Solwyn <hello@solwyn.ai>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Requires-Python: >=3.11
|
|
9
|
+
Requires-Dist: click>=8.1
|
|
10
|
+
Requires-Dist: httpx>=0.27
|
|
11
|
+
Requires-Dist: keyring>=25
|
|
12
|
+
Requires-Dist: mcp==1.28.1
|
|
13
|
+
Requires-Dist: platformdirs>=4
|
|
14
|
+
Requires-Dist: pydantic>=2
|
|
15
|
+
Requires-Dist: rich>=13
|
|
16
|
+
Requires-Dist: tomli-w>=1
|
|
17
|
+
Requires-Dist: typer>=0.12
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
|
|
20
|
+
# Solwyn CLI
|
|
21
|
+
|
|
22
|
+
The command-line client for Solwyn. This repository is private while the first release is prepared.
|
|
23
|
+
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
Before the first release, install Solwyn CLI from a local checkout:
|
|
27
|
+
|
|
28
|
+
```console
|
|
29
|
+
uv tool install .
|
|
30
|
+
solwyn --version
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Development
|
|
34
|
+
|
|
35
|
+
Solwyn CLI requires Python 3.11 or newer and uses [uv](https://docs.astral.sh/uv/) for dependency and environment management.
|
|
36
|
+
|
|
37
|
+
```console
|
|
38
|
+
uv sync
|
|
39
|
+
uv run solwyn --version
|
|
40
|
+
uv run solwyn-cli --version
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Both executable names run the same CLI. The `solwyn-cli` alias exists for compatibility with the package name.
|
|
44
|
+
|
|
45
|
+
## Trust posture
|
|
46
|
+
|
|
47
|
+
Solwyn CLI:
|
|
48
|
+
|
|
49
|
+
- never captures, logs, or transmits prompts or responses;
|
|
50
|
+
- never collects, stores, or proxies provider API keys;
|
|
51
|
+
- has no telemetry, update checks, or phone-home behavior; and
|
|
52
|
+
- stores Solwyn credentials only in the operating system keychain, never in configuration files, command-line arguments, or output.
|
|
53
|
+
|
|
54
|
+
## Security
|
|
55
|
+
|
|
56
|
+
Please report security issues privately as described in [SECURITY.md](SECURITY.md).
|
|
57
|
+
|
|
58
|
+
## License
|
|
59
|
+
|
|
60
|
+
Licensed under the Apache License 2.0. See [LICENSE](LICENSE).
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Solwyn CLI
|
|
2
|
+
|
|
3
|
+
The command-line client for Solwyn. This repository is private while the first release is prepared.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Before the first release, install Solwyn CLI from a local checkout:
|
|
8
|
+
|
|
9
|
+
```console
|
|
10
|
+
uv tool install .
|
|
11
|
+
solwyn --version
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Development
|
|
15
|
+
|
|
16
|
+
Solwyn CLI requires Python 3.11 or newer and uses [uv](https://docs.astral.sh/uv/) for dependency and environment management.
|
|
17
|
+
|
|
18
|
+
```console
|
|
19
|
+
uv sync
|
|
20
|
+
uv run solwyn --version
|
|
21
|
+
uv run solwyn-cli --version
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Both executable names run the same CLI. The `solwyn-cli` alias exists for compatibility with the package name.
|
|
25
|
+
|
|
26
|
+
## Trust posture
|
|
27
|
+
|
|
28
|
+
Solwyn CLI:
|
|
29
|
+
|
|
30
|
+
- never captures, logs, or transmits prompts or responses;
|
|
31
|
+
- never collects, stores, or proxies provider API keys;
|
|
32
|
+
- has no telemetry, update checks, or phone-home behavior; and
|
|
33
|
+
- stores Solwyn credentials only in the operating system keychain, never in configuration files, command-line arguments, or output.
|
|
34
|
+
|
|
35
|
+
## Security
|
|
36
|
+
|
|
37
|
+
Please report security issues privately as described in [SECURITY.md](SECURITY.md).
|
|
38
|
+
|
|
39
|
+
## License
|
|
40
|
+
|
|
41
|
+
Licensed under the Apache License 2.0. See [LICENSE](LICENSE).
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Reporting a vulnerability
|
|
4
|
+
|
|
5
|
+
Please do not open a public issue for a suspected vulnerability. Report it privately by emailing `security@solwyn.ai` with:
|
|
6
|
+
|
|
7
|
+
- a description of the issue and its impact;
|
|
8
|
+
- steps or a minimal example that reproduce it; and
|
|
9
|
+
- any suggested mitigation, if known.
|
|
10
|
+
|
|
11
|
+
Do not include secrets, credentials, prompts, responses, or other sensitive customer data. We will acknowledge the report, investigate it, and coordinate remediation and disclosure with the reporter.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "solwyn-cli"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Command-line client for Solwyn"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "Solwyn", email = "hello@solwyn.ai" },
|
|
14
|
+
]
|
|
15
|
+
dependencies = [
|
|
16
|
+
"click>=8.1",
|
|
17
|
+
"httpx>=0.27",
|
|
18
|
+
"keyring>=25",
|
|
19
|
+
"mcp==1.28.1",
|
|
20
|
+
"platformdirs>=4",
|
|
21
|
+
"pydantic>=2",
|
|
22
|
+
"rich>=13",
|
|
23
|
+
"tomli-w>=1",
|
|
24
|
+
"typer>=0.12",
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
[dependency-groups]
|
|
28
|
+
dev = [
|
|
29
|
+
"pytest>=8",
|
|
30
|
+
"ruff>=0.12",
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
[project.scripts]
|
|
34
|
+
solwyn = "solwyn_cli.main:app"
|
|
35
|
+
solwyn-cli = "solwyn_cli.main:app"
|
|
36
|
+
|
|
37
|
+
[tool.hatch.build.targets.wheel]
|
|
38
|
+
packages = ["src/solwyn_cli"]
|