dev-ready 0.1.0__tar.gz → 0.1.2__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.
- dev_ready-0.1.2/.bob/qa.md +17 -0
- dev_ready-0.1.2/.bob/security.md +19 -0
- dev_ready-0.1.2/.bob/sre.md +17 -0
- dev_ready-0.1.2/.github/dependabot.yml +11 -0
- dev_ready-0.1.2/.github/workflows/ci.yml +80 -0
- dev_ready-0.1.2/.github/workflows/release.yml +37 -0
- dev_ready-0.1.2/.github/workflows/upstream-bump.yml +49 -0
- dev_ready-0.1.2/.gitignore +221 -0
- dev_ready-0.1.2/CLAUDE.md +34 -0
- dev_ready-0.1.2/LICENSE +21 -0
- dev_ready-0.1.2/PKG-INFO +89 -0
- dev_ready-0.1.2/README-pypi.md +59 -0
- dev_ready-0.1.2/README.md +95 -0
- dev_ready-0.1.2/THIRD_PARTY_NOTICES.md +29 -0
- dev_ready-0.1.2/docs/architecture.md +160 -0
- dev_ready-0.1.2/docs/cli-spec.md +40 -0
- dev_ready-0.1.2/docs/releasing.md +32 -0
- dev_ready-0.1.2/docs/requirements.md +53 -0
- dev_ready-0.1.2/docs/v0.1-overview.md +132 -0
- dev_ready-0.1.2/pyproject.toml +38 -0
- dev_ready-0.1.2/scripts/bump_upstream.py +115 -0
- dev_ready-0.1.2/src/README.md +12 -0
- dev_ready-0.1.2/src/dev_ready/__init__.py +7 -0
- dev_ready-0.1.2/src/dev_ready/__main__.py +6 -0
- dev_ready-0.1.2/src/dev_ready/cli.py +141 -0
- dev_ready-0.1.2/src/dev_ready/errors.py +53 -0
- dev_ready-0.1.2/src/dev_ready/fetch/__init__.py +9 -0
- dev_ready-0.1.2/src/dev_ready/fetch/download.py +92 -0
- dev_ready-0.1.2/src/dev_ready/fetch/extract.py +114 -0
- dev_ready-0.1.2/src/dev_ready/fetch/snapshot.py +60 -0
- dev_ready-0.1.2/src/dev_ready/fetch/urls.py +13 -0
- dev_ready-0.1.2/src/dev_ready/generate.py +74 -0
- dev_ready-0.1.2/src/dev_ready/manifest/__init__.py +21 -0
- dev_ready-0.1.2/src/dev_ready/manifest/loader.py +109 -0
- dev_ready-0.1.2/src/dev_ready/manifest/models.py +23 -0
- dev_ready-0.1.2/src/dev_ready/manifest.json +13 -0
- dev_ready-0.1.2/src/dev_ready/overlay/__init__.py +125 -0
- dev_ready-0.1.2/src/dev_ready/prompts/__init__.py +19 -0
- dev_ready-0.1.2/src/dev_ready/prompts/_questionary_asker.py +24 -0
- dev_ready-0.1.2/src/dev_ready/prompts/answers.py +34 -0
- dev_ready-0.1.2/src/dev_ready/prompts/asker.py +24 -0
- dev_ready-0.1.2/src/dev_ready/prompts/collect.py +160 -0
- dev_ready-0.1.2/src/dev_ready/report/__init__.py +10 -0
- dev_ready-0.1.2/src/dev_ready/report/render.py +33 -0
- dev_ready-0.1.2/src/dev_ready/templates/claude/CLAUDE.md.tmpl +29 -0
- dev_ready-0.1.2/src/dev_ready/templates/claude/skills/project-orientation/SKILL.md +16 -0
- dev_ready-0.1.2/src/dev_ready/templates/docs/architecture.md.tmpl +31 -0
- dev_ready-0.1.2/src/dev_ready/templates/docs/requirements.md.tmpl +23 -0
- dev_ready-0.1.2/src/dev_ready/templates/mcp/mcp.json +3 -0
- dev_ready-0.1.2/src/dev_ready/verify.py +45 -0
- dev_ready-0.1.2/templates/README.md +16 -0
- dev_ready-0.1.2/tests/README.md +9 -0
- dev_ready-0.1.2/tests/e2e/test_init_real.py +26 -0
- dev_ready-0.1.2/tests/integration/test_fetch_real.py +21 -0
- dev_ready-0.1.2/tests/unit/test_bump_upstream.py +178 -0
- dev_ready-0.1.2/tests/unit/test_cli.py +269 -0
- dev_ready-0.1.2/tests/unit/test_fetch.py +330 -0
- dev_ready-0.1.2/tests/unit/test_generate.py +190 -0
- dev_ready-0.1.2/tests/unit/test_manifest.py +116 -0
- dev_ready-0.1.2/tests/unit/test_overlay.py +188 -0
- dev_ready-0.1.2/tests/unit/test_prompts.py +287 -0
- dev_ready-0.1.2/tests/unit/test_report.py +67 -0
- dev_ready-0.1.2/tests/unit/test_verify.py +57 -0
- dev_ready-0.1.2/uv.lock +145 -0
- dev_ready-0.1.0/.gitignore +0 -10
- dev_ready-0.1.0/PKG-INFO +0 -5
- dev_ready-0.1.0/pyproject.toml +0 -17
- dev_ready-0.1.0/src/dev_ready_placeholder/__init__.py +0 -2
- dev_ready-0.1.0/src/dev_ready_placeholder/main.py +0 -2
- {dev_ready-0.1.0 → dev_ready-0.1.2}/.python-version +0 -0
- /dev_ready-0.1.0/README.md → /dev_ready-0.1.2/tests/e2e/.gitkeep +0 -0
- /dev_ready-0.1.0/src/dev_ready_placeholder/py.typed → /dev_ready-0.1.2/tests/integration/.gitkeep +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# IBM Bob — QA Agent
|
|
2
|
+
|
|
3
|
+
Role: review every change for test quality before merge.
|
|
4
|
+
|
|
5
|
+
## Responsibilities
|
|
6
|
+
|
|
7
|
+
- Unit test review: every new public function in `src/dev_ready` has unit tests covering the happy path and at least one failure path.
|
|
8
|
+
- Integration test review: changes touching `fetch`, `overlay`, or `manifest` require integration tests against fixtures, not live network.
|
|
9
|
+
- Edge case detection: empty/invalid project names, existing non-empty target directory, corrupted manifest, interrupted fetch, Windows path handling.
|
|
10
|
+
- Regression checking: confirm the placeholder e2e flow (`init --yes` on a fixture) still produces a bootable project after any generation-path change.
|
|
11
|
+
|
|
12
|
+
## Checklist per PR
|
|
13
|
+
|
|
14
|
+
1. Do tests exist for the change, at the right tier (see tests/README.md)?
|
|
15
|
+
2. Do unit tests avoid network and real filesystem outside tmp_path?
|
|
16
|
+
3. Are error paths asserted (exit codes per docs/cli-spec.md), not just happy paths?
|
|
17
|
+
4. Does `uv run pytest` pass locally and in CI?
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# IBM Bob — Security Reviewer
|
|
2
|
+
|
|
3
|
+
Role: security review of every change, with focus on the risks specific to a scaffolding CLI.
|
|
4
|
+
|
|
5
|
+
## Responsibilities
|
|
6
|
+
|
|
7
|
+
- OWASP-aligned review adapted to a CLI context: injection via project name into paths/templates, path traversal when writing generated files, unsafe archive extraction (zip-slip) in `fetch`.
|
|
8
|
+
- Secrets scanning: no tokens or credentials in repo, templates, or generated output; generated projects must ship `.env.example`, never `.env`.
|
|
9
|
+
- Prompt injection: overlay content (CLAUDE.md, skills) ships to end users' AI tools — review that templates cannot be abused to smuggle instructions, and that user input is never interpolated into agent instruction files unescaped.
|
|
10
|
+
- Dependency vulnerabilities: minimal dependency policy (docs/architecture.md); new dependencies need justification; enable GitHub Dependabot/audit in CI.
|
|
11
|
+
- Supply chain: upstream is only ever fetched at the manifest-pinned commit over HTTPS; verify archive integrity; release via PyPI trusted publishing (no long-lived tokens).
|
|
12
|
+
- RBAC review: GitHub Actions workflows use least-privilege `permissions:` blocks; no `pull_request_target` without justification.
|
|
13
|
+
|
|
14
|
+
## Checklist per PR
|
|
15
|
+
|
|
16
|
+
1. Any user-controlled string reaching filesystem paths or shell? Sanitized?
|
|
17
|
+
2. Any archive extraction? Zip-slip safe?
|
|
18
|
+
3. Any new dependency? Justified and pinned?
|
|
19
|
+
4. Any workflow permission expansion? Justified?
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# IBM Bob — SRE / Reliability Reviewer
|
|
2
|
+
|
|
3
|
+
Role: reliability review. dev-ready has no servers, so "SRE" here means CLI operational quality plus the reliability of generated projects and CI automation.
|
|
4
|
+
|
|
5
|
+
## Responsibilities
|
|
6
|
+
|
|
7
|
+
- Observability: CLI output is clear at each stage (prompt, fetch, overlay, verify); `--verbose` flag planned; errors state what failed and what to do next.
|
|
8
|
+
- Logging: no silent failures; network errors map to exit code 3 with actionable messages (docs/cli-spec.md).
|
|
9
|
+
- Health check: e2e verification confirms the generated project's health endpoint responds — this is the release gate.
|
|
10
|
+
- Rollback: generation is all-or-nothing — never leave a partial project directory on failure (write to temp, move on success). Release rollback = yank on PyPI + revert tag.
|
|
11
|
+
- Scalability review: n/a for runtime; applies to maintenance — weekly upstream-bump automation must stay green without manual babysitting (ADR-002).
|
|
12
|
+
|
|
13
|
+
## Checklist per PR
|
|
14
|
+
|
|
15
|
+
1. Can this change leave a partial/corrupt generated project on failure?
|
|
16
|
+
2. Are new failure modes reported with clear messages and correct exit codes?
|
|
17
|
+
3. Does this add manual maintenance work that should be automated in CI instead?
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
push:
|
|
6
|
+
branches: [main]
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
test:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v7
|
|
16
|
+
- uses: astral-sh/setup-uv@v7
|
|
17
|
+
- name: Sync dependencies
|
|
18
|
+
run: uv sync --dev
|
|
19
|
+
- name: Lint
|
|
20
|
+
run: uv run ruff check .
|
|
21
|
+
- name: Test
|
|
22
|
+
run: uv run pytest
|
|
23
|
+
|
|
24
|
+
# FR-5 lives here, not on the user's machine (docs/architecture.md,
|
|
25
|
+
# Deployment Architecture): generate a real project against the
|
|
26
|
+
# manifest-pinned commit, then build and boot it with Docker Compose and
|
|
27
|
+
# poll the backend health endpoint. This is the verification gate every
|
|
28
|
+
# PR — including upstream-bump PRs (ADR-002) — must pass.
|
|
29
|
+
generate-and-verify:
|
|
30
|
+
needs: test
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
timeout-minutes: 25
|
|
33
|
+
steps:
|
|
34
|
+
- uses: actions/checkout@v7
|
|
35
|
+
- uses: astral-sh/setup-uv@v7
|
|
36
|
+
- name: Sync dependencies
|
|
37
|
+
run: uv sync --dev
|
|
38
|
+
- name: Generate demo project
|
|
39
|
+
id: generate
|
|
40
|
+
run: uv run dev-ready init demo-app --yes
|
|
41
|
+
|
|
42
|
+
- name: Build containers
|
|
43
|
+
working-directory: demo-app
|
|
44
|
+
run: docker compose build
|
|
45
|
+
|
|
46
|
+
- name: Start containers
|
|
47
|
+
working-directory: demo-app
|
|
48
|
+
run: docker compose up -d
|
|
49
|
+
|
|
50
|
+
- name: Wait for backend health check
|
|
51
|
+
working-directory: demo-app
|
|
52
|
+
run: |
|
|
53
|
+
# GET /api/v1/utils/health-check/ on port 8000, confirmed against
|
|
54
|
+
# the manifest-pinned snapshot's compose.yml healthcheck and
|
|
55
|
+
# backend/app/api/routes/utils.py. Bounded retries, ~120s budget
|
|
56
|
+
# total — never an unbounded loop.
|
|
57
|
+
attempts=24
|
|
58
|
+
for i in $(seq 1 "$attempts"); do
|
|
59
|
+
if curl -fsS http://localhost:8000/api/v1/utils/health-check/; then
|
|
60
|
+
echo "backend is healthy"
|
|
61
|
+
exit 0
|
|
62
|
+
fi
|
|
63
|
+
echo "waiting for backend (attempt $i/$attempts)..."
|
|
64
|
+
sleep 5
|
|
65
|
+
done
|
|
66
|
+
echo "backend did not become healthy within the time budget"
|
|
67
|
+
exit 1
|
|
68
|
+
|
|
69
|
+
- name: Show container logs on failure
|
|
70
|
+
# Guarded on the generate step: if setup or generation failed there is
|
|
71
|
+
# no demo-app directory and these steps would fail with a confusing
|
|
72
|
+
# "No such file or directory" instead of the real error.
|
|
73
|
+
if: failure() && steps.generate.outcome == 'success'
|
|
74
|
+
working-directory: demo-app
|
|
75
|
+
run: docker compose logs
|
|
76
|
+
|
|
77
|
+
- name: Tear down containers
|
|
78
|
+
if: always() && steps.generate.outcome == 'success'
|
|
79
|
+
working-directory: demo-app
|
|
80
|
+
run: docker compose down -v
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags: ["v*"]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
publish:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
permissions:
|
|
11
|
+
id-token: write # trusted publishing to PyPI — no token/password needed
|
|
12
|
+
contents: read
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v7
|
|
15
|
+
- uses: astral-sh/setup-uv@v7
|
|
16
|
+
|
|
17
|
+
- name: Verify tag matches pyproject.toml version
|
|
18
|
+
run: |
|
|
19
|
+
tag_version="${GITHUB_REF_NAME#v}"
|
|
20
|
+
pkg_version="$(grep -m1 '^version = ' pyproject.toml | sed -E 's/version = "(.*)"/\1/')"
|
|
21
|
+
if [ "$tag_version" != "$pkg_version" ]; then
|
|
22
|
+
echo "::error::pushed tag $GITHUB_REF_NAME (version $tag_version) does not match pyproject.toml version $pkg_version"
|
|
23
|
+
exit 1
|
|
24
|
+
fi
|
|
25
|
+
echo "tag $GITHUB_REF_NAME matches pyproject.toml version $pkg_version"
|
|
26
|
+
|
|
27
|
+
- name: Build
|
|
28
|
+
run: uv build
|
|
29
|
+
|
|
30
|
+
- name: Smoke test the built wheel
|
|
31
|
+
run: |
|
|
32
|
+
python3 -m venv /tmp/dev-ready-smoke-venv
|
|
33
|
+
/tmp/dev-ready-smoke-venv/bin/pip install --quiet dist/*.whl
|
|
34
|
+
/tmp/dev-ready-smoke-venv/bin/dev-ready --version
|
|
35
|
+
|
|
36
|
+
- name: Publish to PyPI
|
|
37
|
+
uses: pypa/gh-action-pypi-publish@v1.14.0
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: Weekly upstream bump
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: "0 6 * * 1" # Mondays 06:00 UTC
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
# Verification of the bumped pin is NOT duplicated here: this workflow only
|
|
9
|
+
# resolves the latest upstream commit and opens a PR. That PR triggers
|
|
10
|
+
# ci.yml, whose generate-and-verify job regenerates a project against the
|
|
11
|
+
# new pin and runs the full docker-compose health check — that is the
|
|
12
|
+
# actual gate for the bump (ADR-002).
|
|
13
|
+
permissions:
|
|
14
|
+
contents: write
|
|
15
|
+
pull-requests: write
|
|
16
|
+
|
|
17
|
+
concurrency:
|
|
18
|
+
group: upstream-bump
|
|
19
|
+
cancel-in-progress: false
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
bump:
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v7
|
|
26
|
+
|
|
27
|
+
- name: Resolve latest upstream commit and update manifest
|
|
28
|
+
id: bump
|
|
29
|
+
run: python3 scripts/bump_upstream.py
|
|
30
|
+
|
|
31
|
+
- name: Open pull request
|
|
32
|
+
if: steps.bump.outputs.changed == 'true'
|
|
33
|
+
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
|
|
34
|
+
with:
|
|
35
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
36
|
+
commit-message: "chore: bump upstream pin to ${{ steps.bump.outputs.new_commit_short }}"
|
|
37
|
+
title: "chore: bump upstream pin to ${{ steps.bump.outputs.new_commit_short }}"
|
|
38
|
+
branch: chore/upstream-bump
|
|
39
|
+
delete-branch: true
|
|
40
|
+
body: |
|
|
41
|
+
Bumps the `fastapi/full-stack-fastapi-template` pin in `src/dev_ready/manifest.json`.
|
|
42
|
+
|
|
43
|
+
- old commit: `${{ steps.bump.outputs.old_commit }}`
|
|
44
|
+
- new commit: `${{ steps.bump.outputs.new_commit }}`
|
|
45
|
+
- compare: https://github.com/fastapi/full-stack-fastapi-template/compare/${{ steps.bump.outputs.old_commit }}...${{ steps.bump.outputs.new_commit }}
|
|
46
|
+
|
|
47
|
+
CI's `generate-and-verify` job regenerates a project against this pin
|
|
48
|
+
and runs the full docker-compose health check before merge — that is
|
|
49
|
+
the verification gate for this bump (ADR-002).
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
/MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
# Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
# poetry.lock
|
|
109
|
+
# poetry.toml
|
|
110
|
+
|
|
111
|
+
# pdm
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
113
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
114
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
115
|
+
# pdm.lock
|
|
116
|
+
# pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# pixi
|
|
121
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
122
|
+
# pixi.lock
|
|
123
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
124
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
125
|
+
.pixi
|
|
126
|
+
|
|
127
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
128
|
+
__pypackages__/
|
|
129
|
+
|
|
130
|
+
# Celery stuff
|
|
131
|
+
celerybeat-schedule
|
|
132
|
+
celerybeat.pid
|
|
133
|
+
|
|
134
|
+
# Redis
|
|
135
|
+
*.rdb
|
|
136
|
+
*.aof
|
|
137
|
+
*.pid
|
|
138
|
+
|
|
139
|
+
# RabbitMQ
|
|
140
|
+
mnesia/
|
|
141
|
+
rabbitmq/
|
|
142
|
+
rabbitmq-data/
|
|
143
|
+
|
|
144
|
+
# ActiveMQ
|
|
145
|
+
activemq-data/
|
|
146
|
+
|
|
147
|
+
# SageMath parsed files
|
|
148
|
+
*.sage.py
|
|
149
|
+
|
|
150
|
+
# Environments
|
|
151
|
+
.env
|
|
152
|
+
.envrc
|
|
153
|
+
.venv
|
|
154
|
+
env/
|
|
155
|
+
venv/
|
|
156
|
+
ENV/
|
|
157
|
+
env.bak/
|
|
158
|
+
venv.bak/
|
|
159
|
+
|
|
160
|
+
# Spyder project settings
|
|
161
|
+
.spyderproject
|
|
162
|
+
.spyproject
|
|
163
|
+
|
|
164
|
+
# Rope project settings
|
|
165
|
+
.ropeproject
|
|
166
|
+
|
|
167
|
+
# mkdocs documentation
|
|
168
|
+
/site
|
|
169
|
+
|
|
170
|
+
# mypy
|
|
171
|
+
.mypy_cache/
|
|
172
|
+
.dmypy.json
|
|
173
|
+
dmypy.json
|
|
174
|
+
|
|
175
|
+
# Pyre type checker
|
|
176
|
+
.pyre/
|
|
177
|
+
|
|
178
|
+
# pytype static type analyzer
|
|
179
|
+
.pytype/
|
|
180
|
+
|
|
181
|
+
# Cython debug symbols
|
|
182
|
+
cython_debug/
|
|
183
|
+
|
|
184
|
+
# PyCharm
|
|
185
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
186
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
187
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
188
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
189
|
+
# .idea/
|
|
190
|
+
|
|
191
|
+
# Abstra
|
|
192
|
+
# Abstra is an AI-powered process automation framework.
|
|
193
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
194
|
+
# Learn more at https://abstra.io/docs
|
|
195
|
+
.abstra/
|
|
196
|
+
|
|
197
|
+
# Visual Studio Code
|
|
198
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
199
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
200
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
201
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
202
|
+
# .vscode/
|
|
203
|
+
# Temporary file for partial code execution
|
|
204
|
+
tempCodeRunnerFile.py
|
|
205
|
+
|
|
206
|
+
# Ruff stuff:
|
|
207
|
+
.ruff_cache/
|
|
208
|
+
|
|
209
|
+
# PyPI configuration file
|
|
210
|
+
.pypirc
|
|
211
|
+
|
|
212
|
+
# Marimo
|
|
213
|
+
marimo/_static/
|
|
214
|
+
marimo/_lsp/
|
|
215
|
+
__marimo__/
|
|
216
|
+
|
|
217
|
+
# Streamlit
|
|
218
|
+
.streamlit/secrets.toml
|
|
219
|
+
|
|
220
|
+
handoff/
|
|
221
|
+
.bob/reviews/
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# CLAUDE.md — dev-ready
|
|
2
|
+
|
|
3
|
+
Guidance for AI agents (Claude Code, GPT, IBM Bob) working in this repo.
|
|
4
|
+
|
|
5
|
+
## What this project is
|
|
6
|
+
|
|
7
|
+
dev-ready is a Python CLI (`uvx dev-ready`) that scaffolds FastAPI projects pre-configured for AI-assisted development: base template from fastapi/full-stack-fastapi-template at a manifest-pinned commit, plus an overlay of CLAUDE.md, Claude Code skills, MCP config, and design docs.
|
|
8
|
+
|
|
9
|
+
Current phase: v0.1 complete. The full pipeline (prompt -> fetch -> overlay -> verify -> report) is implemented, along with CI generate-and-verify, the weekly upstream-bump automation, and the PyPI release pipeline.
|
|
10
|
+
|
|
11
|
+
## Read before writing code
|
|
12
|
+
|
|
13
|
+
1. `docs/requirements.md` — what to build and what is out of scope
|
|
14
|
+
2. `docs/architecture.md` — ADRs, module boundaries, dependency rules (binding, not suggestions)
|
|
15
|
+
3. `docs/cli-spec.md` — command interface and exit codes
|
|
16
|
+
|
|
17
|
+
## Commands
|
|
18
|
+
|
|
19
|
+
- `uv sync --dev` — install
|
|
20
|
+
- `uv run dev-ready` — run CLI
|
|
21
|
+
- `uv run pytest` — tests
|
|
22
|
+
- `uv run ruff check .` — lint
|
|
23
|
+
|
|
24
|
+
## Hard rules
|
|
25
|
+
|
|
26
|
+
- Never fetch upstream "latest" at generation time; pins live in `src/dev_ready/manifest.json` only (ADR-002).
|
|
27
|
+
- Network calls only in `src/dev_ready/fetch/` (module boundary table in architecture.md).
|
|
28
|
+
- Generation must be all-or-nothing: no partial output directories on failure.
|
|
29
|
+
- Unit tests: no network, no filesystem outside tmp_path.
|
|
30
|
+
- Conventional Commits.
|
|
31
|
+
|
|
32
|
+
## Multi-agent workflow
|
|
33
|
+
|
|
34
|
+
Architect (design docs) -> Engineer (implement) -> QA (`.bob/qa.md`) -> Security (`.bob/security.md`) -> SRE/Release (`.bob/sre.md`). Reviewer expectations are defined in `.bob/`.
|
dev_ready-0.1.2/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Moofon Li
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
dev_ready-0.1.2/PKG-INFO
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: dev-ready
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: Scaffold AI-development-ready FastAPI projects: pinned upstream template plus Claude Code skills, MCP config, and design docs
|
|
5
|
+
License: MIT License
|
|
6
|
+
|
|
7
|
+
Copyright (c) 2026 Moofon Li
|
|
8
|
+
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
in the Software without restriction, including without limitation the rights
|
|
12
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
furnished to do so, subject to the following conditions:
|
|
15
|
+
|
|
16
|
+
The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
copies or substantial portions of the Software.
|
|
18
|
+
|
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
SOFTWARE.
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
Requires-Python: >=3.12
|
|
28
|
+
Requires-Dist: questionary<3,>=2.0
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
|
|
31
|
+
# dev-ready
|
|
32
|
+
|
|
33
|
+
Scaffold a production-grade, AI-development-ready FastAPI + React project in one command:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
uvx dev-ready init my-app
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
The upstream template is pinned to a CI-verified commit (never an untested "latest"), and generation is all-or-nothing — if any step fails, your target directory is never touched.
|
|
40
|
+
|
|
41
|
+
## What you get
|
|
42
|
+
|
|
43
|
+
A generated project based on [fastapi/full-stack-fastapi-template](https://github.com/fastapi/full-stack-fastapi-template) (FastAPI, React, SQLModel, PostgreSQL, Docker Compose), plus an AI tooling overlay so it works well with coding agents out of the box:
|
|
44
|
+
|
|
45
|
+
- `CLAUDE.md` — project instructions for Claude Code
|
|
46
|
+
- Claude Code skills (e.g. project orientation)
|
|
47
|
+
- MCP server configuration (`mcp.json`)
|
|
48
|
+
- Design-doc templates (`architecture.md`, `requirements.md`)
|
|
49
|
+
|
|
50
|
+
## Requirements
|
|
51
|
+
|
|
52
|
+
- Python >= 3.12
|
|
53
|
+
- [uv](https://docs.astral.sh/uv/) (for `uvx`), or install with `pip install dev-ready`
|
|
54
|
+
- Network access to github.com (to fetch the pinned template snapshot)
|
|
55
|
+
- Docker is **not** required to generate a project — only to run the generated one
|
|
56
|
+
|
|
57
|
+
## Usage
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# Interactive: prompts for anything not given on the command line
|
|
61
|
+
uvx dev-ready init
|
|
62
|
+
|
|
63
|
+
# Non-interactive: accept all defaults, no prompts
|
|
64
|
+
uvx dev-ready init my-app --yes
|
|
65
|
+
|
|
66
|
+
# Options
|
|
67
|
+
uvx dev-ready init my-app \
|
|
68
|
+
--dir path/to/target \ # default: ./my-app
|
|
69
|
+
--no-skills \ # skip the Claude Code skills overlay
|
|
70
|
+
--no-mcp \ # skip the MCP configuration overlay
|
|
71
|
+
--no-docs # skip the design-doc templates
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Then follow the printed next steps (typically `docker compose watch` inside the generated project).
|
|
75
|
+
|
|
76
|
+
Exit codes: 0 success; 1 unexpected error or user abort; 2 argument error; 3 network/fetch failure; 4 target directory conflict; 5 structural verification failure.
|
|
77
|
+
|
|
78
|
+
## How it works
|
|
79
|
+
|
|
80
|
+
The CLI ships with a lockfile (`manifest.json`) pinning the upstream template commit. Generation fetches that exact snapshot, applies the overlay with variable substitution, verifies the result structurally — all inside a staging directory — and only then moves it into the target. The pin is kept current by a weekly CI job that opens bump PRs, each validated by actually generating and booting a project with Docker Compose.
|
|
81
|
+
|
|
82
|
+
## Links
|
|
83
|
+
|
|
84
|
+
- Source & issues: <https://github.com/MoofonLi/dev-ready>
|
|
85
|
+
- CLI spec, architecture, and ADRs: <https://github.com/MoofonLi/dev-ready/tree/main/docs>
|
|
86
|
+
|
|
87
|
+
## License
|
|
88
|
+
|
|
89
|
+
MIT. Generated projects include content derived from fastapi/full-stack-fastapi-template (MIT); see [THIRD_PARTY_NOTICES.md](https://github.com/MoofonLi/dev-ready/blob/main/THIRD_PARTY_NOTICES.md).
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# dev-ready
|
|
2
|
+
|
|
3
|
+
Scaffold a production-grade, AI-development-ready FastAPI + React project in one command:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
uvx dev-ready init my-app
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
The upstream template is pinned to a CI-verified commit (never an untested "latest"), and generation is all-or-nothing — if any step fails, your target directory is never touched.
|
|
10
|
+
|
|
11
|
+
## What you get
|
|
12
|
+
|
|
13
|
+
A generated project based on [fastapi/full-stack-fastapi-template](https://github.com/fastapi/full-stack-fastapi-template) (FastAPI, React, SQLModel, PostgreSQL, Docker Compose), plus an AI tooling overlay so it works well with coding agents out of the box:
|
|
14
|
+
|
|
15
|
+
- `CLAUDE.md` — project instructions for Claude Code
|
|
16
|
+
- Claude Code skills (e.g. project orientation)
|
|
17
|
+
- MCP server configuration (`mcp.json`)
|
|
18
|
+
- Design-doc templates (`architecture.md`, `requirements.md`)
|
|
19
|
+
|
|
20
|
+
## Requirements
|
|
21
|
+
|
|
22
|
+
- Python >= 3.12
|
|
23
|
+
- [uv](https://docs.astral.sh/uv/) (for `uvx`), or install with `pip install dev-ready`
|
|
24
|
+
- Network access to github.com (to fetch the pinned template snapshot)
|
|
25
|
+
- Docker is **not** required to generate a project — only to run the generated one
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
# Interactive: prompts for anything not given on the command line
|
|
31
|
+
uvx dev-ready init
|
|
32
|
+
|
|
33
|
+
# Non-interactive: accept all defaults, no prompts
|
|
34
|
+
uvx dev-ready init my-app --yes
|
|
35
|
+
|
|
36
|
+
# Options
|
|
37
|
+
uvx dev-ready init my-app \
|
|
38
|
+
--dir path/to/target \ # default: ./my-app
|
|
39
|
+
--no-skills \ # skip the Claude Code skills overlay
|
|
40
|
+
--no-mcp \ # skip the MCP configuration overlay
|
|
41
|
+
--no-docs # skip the design-doc templates
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Then follow the printed next steps (typically `docker compose watch` inside the generated project).
|
|
45
|
+
|
|
46
|
+
Exit codes: 0 success; 1 unexpected error or user abort; 2 argument error; 3 network/fetch failure; 4 target directory conflict; 5 structural verification failure.
|
|
47
|
+
|
|
48
|
+
## How it works
|
|
49
|
+
|
|
50
|
+
The CLI ships with a lockfile (`manifest.json`) pinning the upstream template commit. Generation fetches that exact snapshot, applies the overlay with variable substitution, verifies the result structurally — all inside a staging directory — and only then moves it into the target. The pin is kept current by a weekly CI job that opens bump PRs, each validated by actually generating and booting a project with Docker Compose.
|
|
51
|
+
|
|
52
|
+
## Links
|
|
53
|
+
|
|
54
|
+
- Source & issues: <https://github.com/MoofonLi/dev-ready>
|
|
55
|
+
- CLI spec, architecture, and ADRs: <https://github.com/MoofonLi/dev-ready/tree/main/docs>
|
|
56
|
+
|
|
57
|
+
## License
|
|
58
|
+
|
|
59
|
+
MIT. Generated projects include content derived from fastapi/full-stack-fastapi-template (MIT); see [THIRD_PARTY_NOTICES.md](https://github.com/MoofonLi/dev-ready/blob/main/THIRD_PARTY_NOTICES.md).
|