Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ body:
id: tool
attributes: {label: Tool}
validations: {required: true}
- type: input
id: version
attributes: {label: shipstores version, placeholder: "0.2.0", description: "uvx runs the latest release unless you pinned one"}
- type: input
id: client
attributes: {label: MCP client, placeholder: Claude Code, Claude Desktop, Cursor...}
- type: textarea
id: details
attributes: {label: What happened, description: Input you passed and the error. Redact keys and ids.}
Expand Down
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: Want to contribute? Start with a good first issue
url: https://github.com/FidelisMM/shipstores/labels/good%20first%20issue
about: Small, scoped tasks that need no store credentials.
- name: Security issue
url: https://github.com/FidelisMM/shipstores/blob/main/SECURITY.md
about: Please report vulnerabilities privately, not in a public issue.
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/console-flow-broke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ body:
- type: input
id: lang
attributes: {label: Console language, placeholder: en-US}
- type: input
id: version
attributes: {label: shipstores version, placeholder: "0.2.0", description: "uvx runs the latest release unless you pinned one"}
- type: input
id: client
attributes: {label: MCP client, placeholder: Claude Code, Claude Desktop, Cursor...}
- type: textarea
id: error
attributes: {label: What happened, description: Error output and what you saw in the console. Blur account names.}
Expand Down
29 changes: 23 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,30 @@
name: CI
on: [push, pull_request]
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- run: uv sync
- run: uv run --with ruff ruff check src tests --select E9,F
- run: uv run python -m unittest discover -s tests -v
- run: uv run python -W error -c "import glob; [compile(open(f).read(), f, 'exec') for f in glob.glob('src/shipstores/*.py')]"
- run: uv run python -c "import asyncio; from shipstores.server import mcp; print(len(asyncio.run(mcp.list_tools())), 'tools')"
- run: uv sync --locked
- name: Lint
run: uv run --with ruff ruff check src tests --select E9,F
- name: Unit tests
run: uv run python -m unittest discover -s tests -v
- name: Compile with warnings as errors
run: uv run python -W error -c "import pathlib; [compile(p.read_text(), str(p), 'exec') for p in pathlib.Path('src/shipstores').glob('*.py')]"
- name: Tool count
run: uv run python -c "import asyncio; from shipstores.server import mcp; print(len(asyncio.run(mcp.list_tools())), 'tools')"
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: docker build -t shipstores .
12 changes: 12 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,26 @@ name: Publish to PyPI
on:
release:
types: [published]
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
environment: pypi
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- name: Tag matches pyproject version
run: |
version=$(python3 -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
if [ "${GITHUB_REF_NAME#v}" != "$version" ]; then
echo "::error::Tag $GITHUB_REF_NAME does not match pyproject version $version"
exit 1
fi
- run: uv sync --locked
- run: uv run python -m unittest discover -s tests
- run: uv build
- run: uv publish --trusted-publishing always
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

- Tests for `apple_console.set_privacy`: category × purpose × protection expansion and the validation errors. Thanks @GreedyC (#14).

## 0.2.0

- Toolsets: `SHIPSTORES_TOOLSETS` (or `[server] toolsets` in `config.toml`) exposes only the tool groups you need: `apple`, `play` and/or `eas`. Core diagnostics stay on, and the default is still all 60 tools. Thanks @berkay-byte for the first community contribution (#11).
Expand Down
7 changes: 4 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ You don't need store credentials to work on most of the code. To try tools again
- Tool docstrings are what the agent reads: be precise about preconditions, side effects and the next step.
- Never commit credentials, account ids, bundle ids of real apps or screenshots with personal data.
- Keep console automation in its own module (`apple_console.py`, `apple_review.py`, `play_console.py`) so breakage stays contained.
- Run before opening a PR:
- Run before opening a PR (the same checks CI runs):
```bash
uv run ruff check src
uv run python -W error -c "import glob; [compile(open(f).read(), f, 'exec') for f in glob.glob('src/shipstores/*.py')]"
uv run --with ruff ruff check src tests --select E9,F
uv run python -m unittest discover -s tests -v
uv run python -W error -c "import pathlib; [compile(p.read_text(), str(p), 'exec') for p in pathlib.Path('src/shipstores').glob('*.py')]"
```

## Reporting a broken console flow
Expand Down
Loading