prettyplay 0.0.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.
- prettyplay-0.0.0/.github/workflows/docs.yml +27 -0
- prettyplay-0.0.0/.github/workflows/lint.yml +20 -0
- prettyplay-0.0.0/.github/workflows/new_version.yml +21 -0
- prettyplay-0.0.0/.github/workflows/notify.yml +17 -0
- prettyplay-0.0.0/.github/workflows/publish.yml +17 -0
- prettyplay-0.0.0/.github/workflows/strictacode.yml +43 -0
- prettyplay-0.0.0/.github/workflows/tests.yml +14 -0
- prettyplay-0.0.0/.gitignore +232 -0
- prettyplay-0.0.0/.goga/Dockerfile +15 -0
- prettyplay-0.0.0/.goga/config.yml +27 -0
- prettyplay-0.0.0/.goga/history/2026/additional-configuration/adr.md +60 -0
- prettyplay-0.0.0/.goga/history/2026/additional-configuration/arch.md +1408 -0
- prettyplay-0.0.0/.goga/history/2026/additional-configuration/completed/plan.md +1038 -0
- prettyplay-0.0.0/.goga/history/2026/additional-configuration/design.md +1162 -0
- prettyplay-0.0.0/.goga/history/2026/additional-configuration/task.md +150 -0
- prettyplay-0.0.0/.goga/history/2026/more-usability/adr.md +70 -0
- prettyplay-0.0.0/.goga/history/2026/more-usability/arch.md +1394 -0
- prettyplay-0.0.0/.goga/history/2026/more-usability/completed/plan.md +1424 -0
- prettyplay-0.0.0/.goga/history/2026/more-usability/design.md +2131 -0
- prettyplay-0.0.0/.goga/history/2026/more-usability/task.md +110 -0
- prettyplay-0.0.0/.goga/history/2026/the-first-version/adr.md +101 -0
- prettyplay-0.0.0/.goga/history/2026/the-first-version/arch.md +1544 -0
- prettyplay-0.0.0/.goga/history/2026/the-first-version/completed/plan.md +2091 -0
- prettyplay-0.0.0/.goga/history/2026/the-first-version/design.md +2171 -0
- prettyplay-0.0.0/.goga/history/2026/the-first-version/prd.md +162 -0
- prettyplay-0.0.0/.goga/history/2026/the-first-version/task.md +138 -0
- prettyplay-0.0.0/.goga/memory/architecture.md +95 -0
- prettyplay-0.0.0/.goga/memory/code-design.md +19 -0
- prettyplay-0.0.0/.goga/scaffold.yml +4 -0
- prettyplay-0.0.0/.goga/usages/conventions.md +271 -0
- prettyplay-0.0.0/.goga/usages/cooks/anthropic.md +52 -0
- prettyplay-0.0.0/.goga/usages/cooks/openai.md +53 -0
- prettyplay-0.0.0/.goga/usages/cooks/playwright.md +115 -0
- prettyplay-0.0.0/.goga/usages/cooks/pydantic.md +105 -0
- prettyplay-0.0.0/.goga/workflows/bugfix.yml +15 -0
- prettyplay-0.0.0/.goga/workflows/development.yml +46 -0
- prettyplay-0.0.0/.goga/workflows/epic.yml +13 -0
- prettyplay-0.0.0/.goga/workflows/story.yml +13 -0
- prettyplay-0.0.0/.goga/workflows/task.yml +13 -0
- prettyplay-0.0.0/.strictacode.yml +3 -0
- prettyplay-0.0.0/LICENSE +28 -0
- prettyplay-0.0.0/PKG-INFO +236 -0
- prettyplay-0.0.0/README.md +205 -0
- prettyplay-0.0.0/agents/analyst.sh +7 -0
- prettyplay-0.0.0/agents/architector.sh +7 -0
- prettyplay-0.0.0/agents/developer.sh +7 -0
- prettyplay-0.0.0/agents/manager.sh +7 -0
- prettyplay-0.0.0/agents/product.sh +7 -0
- prettyplay-0.0.0/agents/reviewer.sh +7 -0
- prettyplay-0.0.0/agents/tester.sh +7 -0
- prettyplay-0.0.0/docs/defines/master.md +162 -0
- prettyplay-0.0.0/docs/overrides/main.html +68 -0
- prettyplay-0.0.0/mkdocs.yml +38 -0
- prettyplay-0.0.0/prettyplay/.usages/lifecycle.md +50 -0
- prettyplay-0.0.0/prettyplay/.usages/steps.md +56 -0
- prettyplay-0.0.0/prettyplay/CODEMANIFEST +182 -0
- prettyplay-0.0.0/prettyplay/__init__.py +13 -0
- prettyplay-0.0.0/prettyplay/cache/.usages/addressing.md +31 -0
- prettyplay-0.0.0/prettyplay/cache/.usages/budgets.md +21 -0
- prettyplay-0.0.0/prettyplay/cache/.usages/storage.md +32 -0
- prettyplay-0.0.0/prettyplay/cache/CODEMANIFEST +152 -0
- prettyplay-0.0.0/prettyplay/cache/__init__.py +8 -0
- prettyplay-0.0.0/prettyplay/cache/budgets.py +73 -0
- prettyplay-0.0.0/prettyplay/cache/models.py +60 -0
- prettyplay-0.0.0/prettyplay/cache/store.py +260 -0
- prettyplay-0.0.0/prettyplay/cache/text.py +35 -0
- prettyplay-0.0.0/prettyplay/config/.usages/configuration.md +87 -0
- prettyplay-0.0.0/prettyplay/config/CODEMANIFEST +132 -0
- prettyplay-0.0.0/prettyplay/config/__init__.py +6 -0
- prettyplay-0.0.0/prettyplay/config/loader.py +192 -0
- prettyplay-0.0.0/prettyplay/config/models.py +92 -0
- prettyplay-0.0.0/prettyplay/driver/.usages/facade.md +66 -0
- prettyplay-0.0.0/prettyplay/driver/CODEMANIFEST +162 -0
- prettyplay-0.0.0/prettyplay/driver/__init__.py +6 -0
- prettyplay-0.0.0/prettyplay/driver/page.py +350 -0
- prettyplay-0.0.0/prettyplay/driver/session.py +288 -0
- prettyplay-0.0.0/prettyplay/engine/.usages/generation.md +45 -0
- prettyplay-0.0.0/prettyplay/engine/.usages/healing.md +31 -0
- prettyplay-0.0.0/prettyplay/engine/CODEMANIFEST +215 -0
- prettyplay-0.0.0/prettyplay/engine/__init__.py +8 -0
- prettyplay-0.0.0/prettyplay/engine/classification.py +69 -0
- prettyplay-0.0.0/prettyplay/engine/execution.py +25 -0
- prettyplay-0.0.0/prettyplay/engine/generator.py +318 -0
- prettyplay-0.0.0/prettyplay/engine/healer.py +116 -0
- prettyplay-0.0.0/prettyplay/engine/text.py +19 -0
- prettyplay-0.0.0/prettyplay/executor.py +109 -0
- prettyplay-0.0.0/prettyplay/failures/.usages/taxonomy.md +40 -0
- prettyplay-0.0.0/prettyplay/failures/CODEMANIFEST +117 -0
- prettyplay-0.0.0/prettyplay/failures/__init__.py +17 -0
- prettyplay-0.0.0/prettyplay/failures/errors.py +147 -0
- prettyplay-0.0.0/prettyplay/llm/.usages/classification.md +25 -0
- prettyplay-0.0.0/prettyplay/llm/.usages/providers.md +33 -0
- prettyplay-0.0.0/prettyplay/llm/CODEMANIFEST +125 -0
- prettyplay-0.0.0/prettyplay/llm/__init__.py +8 -0
- prettyplay-0.0.0/prettyplay/llm/_request.py +216 -0
- prettyplay-0.0.0/prettyplay/llm/anthropic_provider.py +213 -0
- prettyplay-0.0.0/prettyplay/llm/models.py +22 -0
- prettyplay-0.0.0/prettyplay/llm/openai_provider.py +187 -0
- prettyplay-0.0.0/prettyplay/llm/provider.py +115 -0
- prettyplay-0.0.0/prettyplay/reporting/.usages/hooks.md +41 -0
- prettyplay-0.0.0/prettyplay/reporting/CODEMANIFEST +79 -0
- prettyplay-0.0.0/prettyplay/reporting/__init__.py +6 -0
- prettyplay-0.0.0/prettyplay/reporting/hooks.py +37 -0
- prettyplay-0.0.0/prettyplay/reporting/reporter.py +70 -0
- prettyplay-0.0.0/prettyplay/runtime.py +107 -0
- prettyplay-0.0.0/prettyplay/scenario.py +291 -0
- prettyplay-0.0.0/prettyplay.egg-info/PKG-INFO +236 -0
- prettyplay-0.0.0/prettyplay.egg-info/SOURCES.txt +144 -0
- prettyplay-0.0.0/prettyplay.egg-info/dependency_links.txt +1 -0
- prettyplay-0.0.0/prettyplay.egg-info/requires.txt +17 -0
- prettyplay-0.0.0/prettyplay.egg-info/top_level.txt +1 -0
- prettyplay-0.0.0/pyproject.toml +118 -0
- prettyplay-0.0.0/setup.cfg +4 -0
- prettyplay-0.0.0/tests/__init__.py +0 -0
- prettyplay-0.0.0/tests/cache/__init__.py +0 -0
- prettyplay-0.0.0/tests/cache/test_budgets.py +94 -0
- prettyplay-0.0.0/tests/cache/test_models.py +118 -0
- prettyplay-0.0.0/tests/cache/test_store.py +306 -0
- prettyplay-0.0.0/tests/cache/test_text.py +45 -0
- prettyplay-0.0.0/tests/config/__init__.py +0 -0
- prettyplay-0.0.0/tests/config/test_loader.py +318 -0
- prettyplay-0.0.0/tests/config/test_models.py +166 -0
- prettyplay-0.0.0/tests/conftest.py +47 -0
- prettyplay-0.0.0/tests/driver/__init__.py +0 -0
- prettyplay-0.0.0/tests/driver/test_page.py +637 -0
- prettyplay-0.0.0/tests/driver/test_session.py +639 -0
- prettyplay-0.0.0/tests/engine/__init__.py +0 -0
- prettyplay-0.0.0/tests/engine/test_classification.py +122 -0
- prettyplay-0.0.0/tests/engine/test_execution.py +148 -0
- prettyplay-0.0.0/tests/engine/test_generator.py +713 -0
- prettyplay-0.0.0/tests/engine/test_healer.py +505 -0
- prettyplay-0.0.0/tests/failures/__init__.py +0 -0
- prettyplay-0.0.0/tests/failures/test_errors.py +199 -0
- prettyplay-0.0.0/tests/llm/__init__.py +0 -0
- prettyplay-0.0.0/tests/llm/test_anthropic_provider.py +472 -0
- prettyplay-0.0.0/tests/llm/test_models.py +47 -0
- prettyplay-0.0.0/tests/llm/test_openai_provider.py +499 -0
- prettyplay-0.0.0/tests/llm/test_provider.py +109 -0
- prettyplay-0.0.0/tests/llm/test_request.py +65 -0
- prettyplay-0.0.0/tests/reporting/__init__.py +0 -0
- prettyplay-0.0.0/tests/reporting/test_hooks.py +81 -0
- prettyplay-0.0.0/tests/reporting/test_reporter.py +171 -0
- prettyplay-0.0.0/tests/test_executor.py +421 -0
- prettyplay-0.0.0/tests/test_integration.py +555 -0
- prettyplay-0.0.0/tests/test_runtime.py +150 -0
- prettyplay-0.0.0/tests/test_scenario.py +613 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: Release docs
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- 0.0.x
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: write
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
deploy:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
|
|
16
|
+
- name: Configure Python
|
|
17
|
+
uses: actions/setup-python@v5
|
|
18
|
+
with:
|
|
19
|
+
python-version: 3.x
|
|
20
|
+
|
|
21
|
+
- name: Install dependencies
|
|
22
|
+
run: |
|
|
23
|
+
pip install -e ".[docs]"
|
|
24
|
+
|
|
25
|
+
- name: Build and Deploy
|
|
26
|
+
# gh-deploy creates the gh-pages branch and pushes static content there
|
|
27
|
+
run: mkdocs gh-deploy --force
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
name: Lint
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- 0.0.x
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- 0.0.x
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
ruff:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
|
|
17
|
+
- uses: astral-sh/ruff-action@v3
|
|
18
|
+
|
|
19
|
+
- name: Check formatting
|
|
20
|
+
run: ruff format --check prettyplay/ tests/
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: Open New Version
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
type:
|
|
7
|
+
description: "New version type"
|
|
8
|
+
required: true
|
|
9
|
+
type: choice
|
|
10
|
+
options: [minor, major]
|
|
11
|
+
|
|
12
|
+
permissions:
|
|
13
|
+
contents: write
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
create-branch:
|
|
17
|
+
uses: qarium/ci/.github/workflows/library-new-version.yml@0.0.x
|
|
18
|
+
with:
|
|
19
|
+
type: ${{ inputs.type }}
|
|
20
|
+
secrets:
|
|
21
|
+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
name: Notify Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_run:
|
|
5
|
+
workflows: ["Publish Release"]
|
|
6
|
+
types: [completed]
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
notify:
|
|
13
|
+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
14
|
+
uses: qarium/ci/.github/workflows/library-notify.yml@0.0.x
|
|
15
|
+
secrets:
|
|
16
|
+
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
|
|
17
|
+
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
name: Publish Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
permissions:
|
|
7
|
+
contents: write
|
|
8
|
+
id-token: write
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
release:
|
|
12
|
+
uses: qarium/ci/.github/workflows/library-publish.yml@0.0.x
|
|
13
|
+
with:
|
|
14
|
+
src-package: prettyplay
|
|
15
|
+
secrets:
|
|
16
|
+
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
17
|
+
ZAI_TOKEN: ${{ secrets.ZAI_TOKEN }}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
name: Strictacode
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- '[0-9]+.[0-9]+.x'
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- '[0-9]+.[0-9]+.x'
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
analyze:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
with:
|
|
17
|
+
fetch-depth: 0
|
|
18
|
+
|
|
19
|
+
- uses: actions/setup-python@v5
|
|
20
|
+
with:
|
|
21
|
+
python-version: "3.13"
|
|
22
|
+
|
|
23
|
+
- uses: actions/cache@v4
|
|
24
|
+
with:
|
|
25
|
+
path: ~/.cache/pip
|
|
26
|
+
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
|
|
27
|
+
restore-keys: |
|
|
28
|
+
${{ runner.os }}-pip-
|
|
29
|
+
|
|
30
|
+
- uses: qarium/strictacode/.github/actions/analyze@0.0.x
|
|
31
|
+
with:
|
|
32
|
+
install-cmd: pip install strictacode
|
|
33
|
+
working-directory: prettyplay
|
|
34
|
+
env:
|
|
35
|
+
STRICTACODE_SCORE: 30
|
|
36
|
+
STRICTACODE_RP: 40
|
|
37
|
+
STRICTACODE_OP: 40
|
|
38
|
+
STRICTACODE_IMB: 15
|
|
39
|
+
STRICTACODE_DENSITY: 20
|
|
40
|
+
STRICTACODE_RP_DIFF: 5
|
|
41
|
+
STRICTACODE_OP_DIFF: 5
|
|
42
|
+
STRICTACODE_DENSITY_DIFF: 5
|
|
43
|
+
STRICTACODE_SCORE_DIFF: 3
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
name: Tests
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- '[0-9]+.[0-9]+.x'
|
|
6
|
+
pull_request:
|
|
7
|
+
branches:
|
|
8
|
+
- '[0-9]+.[0-9]+.x'
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
test:
|
|
12
|
+
uses: qarium/ci/.github/workflows/library-tests.yml@0.0.x
|
|
13
|
+
with:
|
|
14
|
+
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
|
|
@@ -0,0 +1,232 @@
|
|
|
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
|
+
*,cover
|
|
51
|
+
.hypothesis/
|
|
52
|
+
.pytest_cache/
|
|
53
|
+
cover/
|
|
54
|
+
|
|
55
|
+
# Translations
|
|
56
|
+
*.mo
|
|
57
|
+
*.pot
|
|
58
|
+
|
|
59
|
+
# Django stuff:
|
|
60
|
+
*.log
|
|
61
|
+
local_settings.py
|
|
62
|
+
db.sqlite3
|
|
63
|
+
db.sqlite3-journal
|
|
64
|
+
|
|
65
|
+
# Flask stuff:
|
|
66
|
+
instance/
|
|
67
|
+
.webassets-cache
|
|
68
|
+
|
|
69
|
+
# Scrapy stuff:
|
|
70
|
+
.scrapy
|
|
71
|
+
|
|
72
|
+
# Sphinx documentation
|
|
73
|
+
docs/_build/
|
|
74
|
+
|
|
75
|
+
# PyBuilder
|
|
76
|
+
.pybuilder/
|
|
77
|
+
target/
|
|
78
|
+
|
|
79
|
+
# Jupyter Notebook
|
|
80
|
+
.ipynb_checkpoints
|
|
81
|
+
|
|
82
|
+
# IPython
|
|
83
|
+
profile_default/
|
|
84
|
+
ipython_config.py
|
|
85
|
+
|
|
86
|
+
# pyenv
|
|
87
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
88
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
89
|
+
# .python-version
|
|
90
|
+
|
|
91
|
+
# pipenv
|
|
92
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
93
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
94
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
95
|
+
# install all needed dependencies.
|
|
96
|
+
#Pipfile.lock
|
|
97
|
+
|
|
98
|
+
# UV
|
|
99
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
100
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
101
|
+
# commonly ignored for libraries.
|
|
102
|
+
#uv.lock
|
|
103
|
+
|
|
104
|
+
# poetry
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
106
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
107
|
+
# commonly ignored for libraries.
|
|
108
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
109
|
+
#poetry.lock
|
|
110
|
+
#poetry.toml
|
|
111
|
+
|
|
112
|
+
# pdm
|
|
113
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
114
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
115
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
116
|
+
#pdm.lock
|
|
117
|
+
#pdm.toml
|
|
118
|
+
.pdm-python
|
|
119
|
+
.pdm-build/
|
|
120
|
+
|
|
121
|
+
# pixi
|
|
122
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
123
|
+
#pixi.lock
|
|
124
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
125
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
126
|
+
.pixi
|
|
127
|
+
|
|
128
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
129
|
+
__pypackages__/
|
|
130
|
+
|
|
131
|
+
# Celery stuff
|
|
132
|
+
celerybeat-schedule
|
|
133
|
+
celerybeat.pid
|
|
134
|
+
|
|
135
|
+
# SageMath parsed files
|
|
136
|
+
*.sage.py
|
|
137
|
+
|
|
138
|
+
# Environments
|
|
139
|
+
.env
|
|
140
|
+
.envrc
|
|
141
|
+
.venv*
|
|
142
|
+
.docker-env
|
|
143
|
+
env/
|
|
144
|
+
venv/
|
|
145
|
+
ENV/
|
|
146
|
+
env.bak/
|
|
147
|
+
venv.bak/
|
|
148
|
+
|
|
149
|
+
# Spyder project settings
|
|
150
|
+
.spyderproject
|
|
151
|
+
.spyproject
|
|
152
|
+
|
|
153
|
+
# Rope project settings
|
|
154
|
+
.ropeproject
|
|
155
|
+
|
|
156
|
+
# mkdocs documentation
|
|
157
|
+
/site
|
|
158
|
+
|
|
159
|
+
# mypy
|
|
160
|
+
.mypy_cache/
|
|
161
|
+
.dmypy.json
|
|
162
|
+
dmypy.json
|
|
163
|
+
|
|
164
|
+
# Pyre type checker
|
|
165
|
+
.pyre/
|
|
166
|
+
|
|
167
|
+
# pytype static type analyzer
|
|
168
|
+
.pytype/
|
|
169
|
+
|
|
170
|
+
# Cython debug symbols
|
|
171
|
+
cython_debug/
|
|
172
|
+
|
|
173
|
+
# PyCharm
|
|
174
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
175
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
176
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
177
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
178
|
+
#.idea/
|
|
179
|
+
|
|
180
|
+
# Abstra
|
|
181
|
+
# Abstra is an AI-powered process automation framework.
|
|
182
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
183
|
+
# Learn more at https://abstra.io/docs
|
|
184
|
+
.abstra/
|
|
185
|
+
|
|
186
|
+
# Visual Studio Code
|
|
187
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
188
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
189
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
190
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
191
|
+
# .vscode/
|
|
192
|
+
|
|
193
|
+
# Ruff stuff:
|
|
194
|
+
.ruff_cache/
|
|
195
|
+
|
|
196
|
+
# PyPI configuration file
|
|
197
|
+
.pypirc
|
|
198
|
+
|
|
199
|
+
# Cursor
|
|
200
|
+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
|
|
201
|
+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
|
|
202
|
+
# refer to https://docs.cursor.com/context/ignore-files
|
|
203
|
+
.cursorignore
|
|
204
|
+
.cursorindexingignore
|
|
205
|
+
|
|
206
|
+
# Marimo
|
|
207
|
+
marimo/_static/
|
|
208
|
+
marimo/_lsp/
|
|
209
|
+
__marimo__/
|
|
210
|
+
|
|
211
|
+
# IDE
|
|
212
|
+
.idea/
|
|
213
|
+
|
|
214
|
+
# AI
|
|
215
|
+
.claude/
|
|
216
|
+
.ralphex/
|
|
217
|
+
docs/plans/
|
|
218
|
+
docs/design/
|
|
219
|
+
docs/arch/
|
|
220
|
+
docs/tasks/
|
|
221
|
+
docs/proposals/
|
|
222
|
+
docs/superpowers/
|
|
223
|
+
|
|
224
|
+
# Prettyplay step cache
|
|
225
|
+
.prettyplay/
|
|
226
|
+
|
|
227
|
+
# examole
|
|
228
|
+
example.py
|
|
229
|
+
|
|
230
|
+
# Agents
|
|
231
|
+
.claude/
|
|
232
|
+
CLAUDE.md
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
FROM qarium/goga-python-3.14:1.3
|
|
2
|
+
|
|
3
|
+
USER root
|
|
4
|
+
|
|
5
|
+
COPY agents/architector.sh /home/goga/bin/architector-as-claude.sh
|
|
6
|
+
COPY agents/developer.sh /home/goga/bin/developer-as-claude.sh
|
|
7
|
+
COPY agents/reviewer.sh /home/goga/bin/reviewer-as-claude.sh
|
|
8
|
+
COPY agents/product.sh /home/goga/bin/product-as-claude.sh
|
|
9
|
+
COPY agents/manager.sh /home/goga/bin/manager-as-claude.sh
|
|
10
|
+
COPY agents/analyst.sh /home/goga/bin/analyst-as-claude.sh
|
|
11
|
+
COPY agents/tester.sh /home/goga/bin/tester-as-claude.sh
|
|
12
|
+
|
|
13
|
+
RUN chmod +x /home/goga/bin/*.sh
|
|
14
|
+
|
|
15
|
+
USER goga
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
language: python
|
|
2
|
+
|
|
3
|
+
image: prettyplay:latest
|
|
4
|
+
dockerfile: .goga/Dockerfile
|
|
5
|
+
|
|
6
|
+
.claude-env: &claude-env
|
|
7
|
+
ANTHROPIC_MODEL: opus
|
|
8
|
+
ANTHROPIC_BASE_URL: "https://api.z.ai/api/anthropic"
|
|
9
|
+
|
|
10
|
+
build:
|
|
11
|
+
task_executor:
|
|
12
|
+
agent: developer
|
|
13
|
+
review_executor:
|
|
14
|
+
agent: reviewer
|
|
15
|
+
base_ref: master
|
|
16
|
+
|
|
17
|
+
pipeline:
|
|
18
|
+
agent: claude
|
|
19
|
+
env:
|
|
20
|
+
<<: *claude-env
|
|
21
|
+
ANTHROPIC_DEFAULT_OPUS_MODEL: "glm-5.3[1m]"
|
|
22
|
+
|
|
23
|
+
codemanifest:
|
|
24
|
+
usages:
|
|
25
|
+
conventions: .goga/usages/conventions.md
|
|
26
|
+
annotations: |
|
|
27
|
+
Use `conventions` for code writing rules and testing.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Prettyplay Configuration Extension Decisions (branch `additional-configuration`)
|
|
2
|
+
|
|
3
|
+
> Recorded from the technical discovery interview of 09.09.2026. Status: **approved**.
|
|
4
|
+
> The topic was initiated by three user wishes formulated in the file-based dialog (no PRD/TODO was created for the topic). Facts about the current architecture were collected from `goga schema` and the CODEMANIFESTs of the config, driver, engine, cache cells. Each entry records the fact of the decision and its "why".
|
|
5
|
+
|
|
6
|
+
## Terms
|
|
7
|
+
|
|
8
|
+
- **Per-test runtime** — a runtime (a configuration instance, a browser process, an LLM provider, attempt budgets) owned by one `PrettyTest`, not by the whole process.
|
|
9
|
+
- **PrettyConfig** — the public name of prettyplay's single full settings model (an alias of the config cell's `Config`); passed into `PrettyTest` for per-test overrides.
|
|
10
|
+
- **Layered merging** — the rule for resolving a test's settings: a value explicitly set in `PrettyConfig` wins; an unset/empty one falls back to pyproject+env.
|
|
11
|
+
- **Generation user instructions** — a `generation_prompt` settings string that lands in generation and regeneration requests as a separate USER INSTRUCTIONS block; it governs the style of the generated code (user's example: "prefer data-test-id attributes"), not failure diagnostics.
|
|
12
|
+
- **`browser_endpoint`** — the ws endpoint address of a remote browser; an empty value means local launch, as today.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## ADR-1. Per-test runtime: every test gets its own browser and its own configuration
|
|
17
|
+
|
|
18
|
+
Every `PrettyTest` builds its own runtime: its own configuration instance, its own browser process, its own provider, its own attempt budgets. The process-wide singleton is gone; `get_runtime()` leaves the public contract (an internal facade detail). Attempt budgets become per-test — the documented invariant "budgets are not reset between tests" is reversed. The user's choice: test isolation matters more than the economy of one browser per launch — "every test gets its own runtime, its own configuration instance and its own browser instance".
|
|
19
|
+
|
|
20
|
+
**Alternatives considered:** keying runtimes by effective config (tests with an identical config share one browser) — rejected by the user: the runtime belongs to the test, not the config; a private runtime only when a config is explicitly passed — rejected: two behavior semantics in one library.
|
|
21
|
+
|
|
22
|
+
**Consequences:** launching a browser per test (~a second) is the accepted price; a step reused by N tests gets N× attempts per launch — protection from infinite retries is preserved within each test; every runtime registers its own shutdown in atexit — all browsers stop by process exit; laziness is preserved — constructing `PrettyTest` is cheap, the browser starts on the first step.
|
|
23
|
+
|
|
24
|
+
## ADR-2. PrettyConfig — a single settings model and layered merging
|
|
25
|
+
|
|
26
|
+
`PrettyConfig` is the public name of the same full settings model (an alias of `Config`), not a separate lightweight override object. A config passed into `PrettyTest` sets only explicitly given values; unset/empty fields are resolved by layered merging against pyproject+env. One model — one place of validation and one resolution chain; "to pass a config" intuitively means "to override the specific", whereas with full replacement the `base_url`/`model` set in pyproject would be silently lost.
|
|
27
|
+
|
|
28
|
+
**Alternatives considered:** a separate subset object for per-test overrides — rejected: divergence of two settings models; full replacement without merging — rejected: silent loss of file settings.
|
|
29
|
+
|
|
30
|
+
**Consequences:** every new setting is automatically available along the whole pyproject → env → `PrettyConfig` chain; value validation is uniform for file-based and programmatic settings.
|
|
31
|
+
|
|
32
|
+
## ADR-3. The `generation_prompt` setting — user instructions into generation requests
|
|
33
|
+
|
|
34
|
+
A string setting `generation_prompt` appears (env `PRETTYPLAY_GENERATION_PROMPT`, default empty). A non-empty value lands as a separate **USER INSTRUCTIONS** block in generation and regeneration (healing) requests; the fixed system prompt does not change; failure classification is untouched (the instructions are about code style, classification is about diagnostics). The instructions are **not part of** the cache address: the cache is a repository of verified code — a working cached step is not regenerated because the style changed — the user's choice.
|
|
35
|
+
|
|
36
|
+
**Alternatives considered:** pasting the instructions into the system prompt — rejected: the system prompt is a stable product, the instructions are variable request data; including an instructions hash in the step address — rejected by the user: changing the instructions must not invalidate the cache; extending to classification — rejected.
|
|
37
|
+
|
|
38
|
+
**Consequences:** a change of instructions is visible only on fresh generation — cached steps stay as they are until a manual cache cleanup or regeneration by healing; the engine's internal usage named `generation_prompt` (the fixed system prompt) is renamed to `system_prompt`, freeing the term for the public setting — otherwise one name would be doing two jobs within one manifest.
|
|
39
|
+
|
|
40
|
+
## ADR-4. Facade: universal locators — data attributes, CSS, XPath
|
|
41
|
+
|
|
42
|
+
The page facade is extended with the ability to locate by any data attributes, CSS selectors and XPath. The system prompt's default priority (role → text → label) does not change — accessibility remains the global default, the priority is tuned per-project by user instructions. The topic's flagship scenario ("prefer data-test-id") requires the generated code to *be able* to search by test-id: the code works only through the facade, instructions alone without extending the surface are insufficient.
|
|
43
|
+
|
|
44
|
+
**Alternatives considered:** changing the prompt's default priority to test-id-first — rejected: the global default is conservative, the priority is a project decision; limiting to instructions without extending the facade — rejected: the example is unfulfillable.
|
|
45
|
+
|
|
46
|
+
**Consequences:** the backward-compatibility contract is honored — extend only, no renames or removals; the API surface is sent into requests from the facade usage, the model will see the new locators automatically (the listing and the usage change together).
|
|
47
|
+
|
|
48
|
+
## ADR-5. Remote execution via the Playwright ws endpoint
|
|
49
|
+
|
|
50
|
+
A string setting `browser_endpoint` appears (env `PRETTYPLAY_BROWSER_ENDPOINT`, default empty = local launch, as today). The mechanism is the Playwright ws endpoint (connect). An endpoint is set → the driver **connects** instead of launching locally; `headless` is ignored (window visibility is controlled by the server); `browser` still selects the engine type to connect to. An endpoint URL in the config is acceptable — it is an address, not a key; rotation in CI — via the env override (the user's remark "don't forget env" is covered by the general rule "every setting has an env override").
|
|
51
|
+
|
|
52
|
+
**Alternatives considered:** CDP connection (`connect_over_cdp` to a running Chrome with a debugging port) — deferred as a future extension via a separate field; both mechanisms at once — rejected: extra surface before a real need.
|
|
53
|
+
|
|
54
|
+
**Consequences:** the playwright usage (`.goga/usages/cooks/playwright.md`) gains a section on remote connection — remote is not described there today; combined with ADR-1, every test can connect to its own endpoint.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Interview summary
|
|
59
|
+
|
|
60
|
+
Three user wishes → solutions: a config in `PrettyTest` → ADR-1 + ADR-2; user input into the generation prompt → ADR-3 + ADR-4 (the data-test-id example pulled the facade extension along); playwright to remote execution → ADR-5. All decisions were approved by the user in the file-based dialog (questions q1–q5 in the pipeline stage directory): q1 — task formulation, q2 — a round of 10 frontier questions, q3 — a round of 6 (consequences of the per-test runtime), q4–q5 — the `generation_prompt` term collision and final confirmation. Contract design (signatures, CODEMANIFEST changes) — outside discovery scope.
|