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
73 changes: 73 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Release

# Triggered when a version tag is pushed, e.g.:
# git tag v0.3.2.9 && git push origin v0.3.2.9
on:
push:
tags:
- "v*"

permissions:
contents: read

jobs:
# 1. Build the sdist + wheel and verify the tag matches pyproject version.
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.13"

- name: Verify tag matches pyproject version
run: |
TAG="${GITHUB_REF_NAME#v}"
PKG=$(uv version --short 2>/dev/null || python -c "import tomllib;print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
echo "Tag version: $TAG"
echo "Package version: $PKG"
if [ "$TAG" != "$PKG" ]; then
echo "::error::Tag ($TAG) does not match pyproject.toml version ($PKG)."
exit 1
fi

- name: Build sdist and wheel
run: uv build

- name: Check distribution metadata
run: uvx twine check dist/*

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/

# 2. Create the GitHub Release with auto-generated notes and attach artifacts.
# PyPI publishing is handled manually (see Makefile: `make publish`).
github-release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write # required to create a release
steps:
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: dist
path: dist/

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: dist/*
fail_on_unmatched_files: true
12 changes: 7 additions & 5 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ core framework see `agentflow/CLAUDE.md`; for the TS client, docs, or playground
for the monorepo overview see the workspace-root `CLAUDE.md`.

- Package name (PyPI): `10xscale-agentflow-cli`
- Version: `0.3.2.9` (`pyproject.toml`) — note the CLI's own `CLI_VERSION` constant and
`agentflow_cli.__version__` both say `1.0.0`; these are out of sync (see Known Doc Drift).
- Version: `0.3.2.9` (`pyproject.toml`). `CLI_VERSION` and `agentflow_cli.__version__` are
single-sourced from the installed distribution metadata (falling back to `pyproject.toml`), so
`agentflow version` reports `0.3.2.9` consistently. The previous `1.0.0` hardcode is gone.
- Requires: Python >= 3.12 · Status: `4 - Beta`
- Console entry point: `agentflow = agentflow_cli.cli.main:main`
- Depends on the core framework: `10xscale-agentflow>=0.7.0`.
Expand Down Expand Up @@ -131,9 +132,10 @@ ruff check . && ruff format .

## Known doc drift (do not trust without checking)

- **Version is inconsistent.** `pyproject.toml` = `0.3.2.9`, but `CLI_VERSION` constant and
`agentflow_cli.__version__` = `1.0.0`. `agentflow version` prints both the (hardcoded) CLI
version and the pyproject version, so it shows `1.0.0` and `0.3.2.9` side by side.
- **Version is now single-sourced.** `CLI_VERSION` (and `agentflow_cli.__version__`, which aliases
it) resolve from installed distribution metadata, falling back to `pyproject.toml`. `agentflow
version` reports `0.3.2.9` for both the CLI and package lines. (The old hardcoded `1.0.0` drift is
resolved.)
- **README shows `agentflow init --prod`** — that flag does not exist. `init` is interactive and
only accepts `--path` / `--force`.
- **`api`/`play` help text claims default host `0.0.0.0`** but `DEFAULT_HOST` is `127.0.0.1`.
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025 Iamsdt

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading