stkit 17.4.2__tar.gz → 17.5.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.
- {stkit-17.4.2 → stkit-17.5.0}/CHANGELOG.md +8 -0
- {stkit-17.4.2 → stkit-17.5.0}/PKG-INFO +1 -1
- {stkit-17.4.2 → stkit-17.5.0}/pyproject.toml +1 -1
- {stkit-17.4.2 → stkit-17.5.0}/stk/cli/database.py +37 -1
- {stkit-17.4.2 → stkit-17.5.0}/stk/cli/smoke.py +11 -5
- {stkit-17.4.2 → stkit-17.5.0}/stk/cli/users.py +1 -1
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/generator.py +11 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/templates.py +20 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_cli.py +28 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_scaffolder.py +17 -1
- {stkit-17.4.2 → stkit-17.5.0}/.gitignore +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/LICENSE +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/README.md +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/SECURITY.md +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/examples/minimal/.env-sample +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/examples/minimal/.gitignore +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/examples/minimal/README.md +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/examples/minimal/minimal/__init__.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/examples/minimal/minimal/app.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/examples/minimal/minimal/migrations/364232ae77d5_add_note.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/examples/minimal/minimal/note/__init__.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/examples/minimal/minimal/note/models.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/examples/minimal/minimal/note/templates/note/index.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/examples/minimal/minimal/note/views.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/examples/minimal/minimal/settings.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/examples/minimal/minimal/templates/layout.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/examples/minimal/pyproject.toml +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/examples/minimal/tests/__init__.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/examples/minimal/tests/test_app.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/examples/minimal/uv.lock +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/__init__.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/__main__.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/agent_login.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/app.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/checks.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/cli/__init__.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/cli/agent.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/cli/base.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/cli/copy_rules.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/cli/develop.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/cli/doctor.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/cli/main.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/cli/reports.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/cli/watch.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/extensions.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/files/__init__.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/files/models.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/files/store.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/files/views.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/mcp/__init__.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/mcp/models.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/mcp/server.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/mcp/views.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/migrations/__init__.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/migrations/env.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/migrations/script.py.mako +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/migrations/versions/stk_0001_initial_schema.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/migrations/versions/stk_0002_jobs.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/migrations/versions/stk_0003_files.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/migrations/versions/stk_0004_notifications.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/migrations/versions/stk_0005_mcp_tokens.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/migrations/versions/stk_0006_stk_mcp_token.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/migrations/versions/stk_0007_confirm_existing_users.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/migrations/versions/stk_0008_stk_message.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/notification/__init__.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/notification/models.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/notification/views.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/portal/views.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/public/__init__.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/public/models.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/public/views.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/__init__.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/CLAUDE.md +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/Dockerfile +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/README.md +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/__app__/__init__.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/__app__/app.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/__app__/settings.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/claude/skills/stk-api/SKILL.md +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/claude/skills/stk-blueprint/SKILL.md +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/claude/skills/stk-deploy/SKILL.md +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/claude/skills/stk-lessons/SKILL.md +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/claude/skills/stk-migrate/SKILL.md +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/docker-compose.yml +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/dockerignore +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/env-sample +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/github/workflows/checks.yml +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/gitignore +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/nginx/nginx.conf +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/nginx/stk.conf +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/postgres/init-db.sh +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/pyproject.toml +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/tests/__init__.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/scaffold/app/tests/test_app.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/security.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/settings.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/shell.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/VERSIONS.txt +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/css/app.css +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/css/layout.css +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/css/vuetify.min.css +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.animals.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.arrows-1.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.arrows-2.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.badges.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.brand-1.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.brand-2.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.buildings.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.charts.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.communication.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.computers.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.core.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.currencies.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.database.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.design-1.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.design-2.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.development.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.devices-1.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.devices-2.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.document.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.e-commerce.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.electrical.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.extensions.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.food.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.games.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.gender.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.gestures.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.health.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.laundry.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.letters.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.logic.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.map.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.math.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.media.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.mood.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.nature.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.numbers.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.photography.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.shapes.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.sport.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.symbols.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.system-1.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.system-2.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.system-3.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.text.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.vehicles.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.version-control.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.weather.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/fonts/tabler-icons.zodiac.woff2 +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/icons/tabler-icons.min.css +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/img/auth-bg.webp +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/img/favicon.ico +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/img/stk.svg +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/js/axios.min.js +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/js/components/NotificationDropdown.js +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/js/components/ThemeSwitcher.js +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/js/components/TransitionExpand.js +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/js/components/VerticalNavGroup.js +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/js/components/VerticalNavLink.js +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/js/components/VerticalNavSectionTitle.js +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/js/components/index.js +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/js/config.js +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/js/vue.min.js +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/js/vuetify.min.js +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/static/robots.txt +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/tasks/__init__.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/tasks/models.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/401.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/404.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/500.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/_brand.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/auth_layout.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/cms/activities.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/cms/jobs.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/cms/roles.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/cms/users.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/dashboard.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/index.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/layout.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/login-layout.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/mcp/tokens.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/_macros.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/_messages.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/change_password.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/confirm_email.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/email/change_notice.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/email/change_notice.txt +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/email/confirmation_instructions.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/email/confirmation_instructions.txt +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/email/login_instructions.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/email/login_instructions.txt +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/email/reset_instructions.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/email/reset_instructions.txt +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/email/reset_notice.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/email/reset_notice.txt +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/email/welcome.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/email/welcome.txt +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/forgot_password.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/login_user.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/mf_recovery.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/mf_recovery_codes.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/register_user.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/reset_password.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/send_confirmation.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/send_login.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/two_factor_select.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/two_factor_setup.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/two_factor_verify_code.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/wan_register.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/wan_signin.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/templates/security/wan_verify.html +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/user/__init__.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/user/forms.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/user/models.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/user/views.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/utils/email.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/utils/netguard.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/utils/ratelimit.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/stk/websocket.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_agent_operability.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_app_index.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_branding.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_builder_ux.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_composition.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_confirm_migration.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_copy_rules.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_csrf_exempt.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_error_handler.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_files.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_jobs.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_mcp.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_mcp_migration.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_migration_drift.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_model_names.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_netguard.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_notifications.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_production_security.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_revision_imports.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_route_collisions.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_security_compatibility.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_shell.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_smoke_pages.py +0 -0
- {stkit-17.4.2 → stkit-17.5.0}/tests/test_static_versioning.py +0 -0
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v17.5.0 (2026-11-03)
|
|
4
|
+
|
|
5
|
+
No migration required.
|
|
6
|
+
|
|
7
|
+
- `seed.py`: an app's `async def run(session)` that adds sample rows. `stk smoke` runs it on its temporary database, so pages render rows instead of empty states and a template that breaks only on a row fails smoke, locally and in CI. `--json` reports `seeded`. `stk db seed` adds the same rows to the dev database, and `stk new` writes `seed.py` for its model when the app has none.
|
|
8
|
+
- `stk install` no longer crashes when the database has more than one admin.
|
|
9
|
+
- `stk smoke` keeps Redis off in its server: it removed the setting, and the server's own `.env` load put it back.
|
|
10
|
+
|
|
3
11
|
## v17.4.2 (2026-11-02)
|
|
4
12
|
|
|
5
13
|
No migration required.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import click
|
|
4
4
|
from alembic import command
|
|
5
5
|
|
|
6
|
-
from stk.cli.base import cli_app, console
|
|
6
|
+
from stk.cli.base import cli_app, console, run_async
|
|
7
7
|
from stk.migrations import (
|
|
8
8
|
CORE_LABEL,
|
|
9
9
|
app_label,
|
|
@@ -196,6 +196,42 @@ def db_revision(message, autogenerate, head):
|
|
|
196
196
|
generate_revision(cli_app(), message, autogenerate=autogenerate, head=head)
|
|
197
197
|
|
|
198
198
|
|
|
199
|
+
def seed_module(app):
|
|
200
|
+
"""The app's `seed` module name, or None when the app has no seed.py."""
|
|
201
|
+
import importlib.util
|
|
202
|
+
from pathlib import Path
|
|
203
|
+
|
|
204
|
+
name = f"{app.import_name.split('.')[0]}.seed"
|
|
205
|
+
spec = importlib.util.find_spec(name)
|
|
206
|
+
# An extension package named seed is the app's own, not a seed file.
|
|
207
|
+
return name if spec and Path(spec.origin or "").name == "seed.py" else None
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
@db.command("seed")
|
|
211
|
+
def db_seed():
|
|
212
|
+
"""Add the app's sample rows from seed.py (`async def run(session)`)."""
|
|
213
|
+
import importlib
|
|
214
|
+
|
|
215
|
+
import stk.extensions as ext
|
|
216
|
+
|
|
217
|
+
app = cli_app()
|
|
218
|
+
name = seed_module(app)
|
|
219
|
+
if name is None:
|
|
220
|
+
package = app.import_name.split(".")[0]
|
|
221
|
+
raise click.ClickException(
|
|
222
|
+
f"no {package}/seed.py: add one with `async def run(session)`"
|
|
223
|
+
" that adds sample rows"
|
|
224
|
+
)
|
|
225
|
+
|
|
226
|
+
async def _run():
|
|
227
|
+
async with app.app_context(), ext.async_session_factory() as session:
|
|
228
|
+
await importlib.import_module(name).run(session)
|
|
229
|
+
await session.commit()
|
|
230
|
+
|
|
231
|
+
run_async(_run())
|
|
232
|
+
console.print(f"[green]Seeded[/] from {name}")
|
|
233
|
+
|
|
234
|
+
|
|
199
235
|
@db.command("check")
|
|
200
236
|
def db_check():
|
|
201
237
|
"""Fail if models have drifted away from the migrations."""
|
|
@@ -181,12 +181,12 @@ def _smoke_env(database_uri):
|
|
|
181
181
|
"SESSION_COOKIE_SECURE": "False",
|
|
182
182
|
}
|
|
183
183
|
)
|
|
184
|
-
env
|
|
185
|
-
env.
|
|
184
|
+
# Empty, not removed: each child reloads .env, which fills in missing keys.
|
|
185
|
+
env.update({"REDIS_URL": "", "REDIS_SESSION": ""})
|
|
186
186
|
return env
|
|
187
187
|
|
|
188
188
|
|
|
189
|
-
def _run_smoke_setup(env):
|
|
189
|
+
def _run_smoke_setup(env, seed):
|
|
190
190
|
commands = [
|
|
191
191
|
[sys.executable, "-m", "stk", "db", "upgrade"],
|
|
192
192
|
[
|
|
@@ -200,6 +200,8 @@ def _run_smoke_setup(env):
|
|
|
200
200
|
SMOKE_PASSWORD,
|
|
201
201
|
],
|
|
202
202
|
]
|
|
203
|
+
if seed:
|
|
204
|
+
commands.append([sys.executable, "-m", "stk", "db", "seed"])
|
|
203
205
|
for command_args in commands:
|
|
204
206
|
result = subprocess.run(
|
|
205
207
|
command_args,
|
|
@@ -382,12 +384,14 @@ async def _run_playwright_smoke(base_url, token, extra_paths, copy_allow):
|
|
|
382
384
|
|
|
383
385
|
def run_smoke():
|
|
384
386
|
"""Boot a throwaway app on a free port and drive it with a real browser."""
|
|
387
|
+
from stk.cli.database import seed_module
|
|
385
388
|
from stk.migrations import throwaway_database_url
|
|
386
389
|
|
|
387
390
|
app = cli_app()
|
|
391
|
+
seed = seed_module(app)
|
|
388
392
|
with throwaway_database_url(app.config["SQLALCHEMY_DATABASE_URI"]) as database_uri:
|
|
389
393
|
env = _smoke_env(database_uri)
|
|
390
|
-
_run_smoke_setup(env)
|
|
394
|
+
_run_smoke_setup(env, seed)
|
|
391
395
|
|
|
392
396
|
token, extra_paths = _prepare_smoke(app, env["SECRET_KEY"])
|
|
393
397
|
copy_allow = app.config.get("STK_SMOKE_COPY_ALLOW", ())
|
|
@@ -398,13 +402,15 @@ def run_smoke():
|
|
|
398
402
|
_wait_for_smoke_server(base_url, server)
|
|
399
403
|
return asyncio.run(
|
|
400
404
|
_run_playwright_smoke(base_url, token, extra_paths, copy_allow)
|
|
401
|
-
)
|
|
405
|
+
) | {"seeded": seed is not None}
|
|
402
406
|
finally:
|
|
403
407
|
_stop_smoke_server(server)
|
|
404
408
|
|
|
405
409
|
|
|
406
410
|
def print_smoke_report(report):
|
|
407
411
|
click.echo(f"Smoke status: {report['status']}")
|
|
412
|
+
if not report.get("seeded"):
|
|
413
|
+
click.echo("Pages ran on an empty database: add seed.py for real rows")
|
|
408
414
|
click.echo(f"Dashboard screenshot: {report['dashboard_screenshot']}")
|
|
409
415
|
for page in report["pages"]:
|
|
410
416
|
click.echo(f"{page['status'].upper()} {page['name']} {page['path']}")
|
|
@@ -16,6 +16,7 @@ import stk
|
|
|
16
16
|
from stk.scaffold.templates import (
|
|
17
17
|
render_init,
|
|
18
18
|
render_models,
|
|
19
|
+
render_seed,
|
|
19
20
|
render_template_html,
|
|
20
21
|
render_views,
|
|
21
22
|
)
|
|
@@ -41,6 +42,7 @@ RESERVED = frozenset(
|
|
|
41
42
|
"portal",
|
|
42
43
|
"websocket",
|
|
43
44
|
"ws",
|
|
45
|
+
"seed", # the app's seed.py
|
|
44
46
|
"activity",
|
|
45
47
|
"session",
|
|
46
48
|
"security",
|
|
@@ -203,6 +205,15 @@ def generate_module(name: str, app) -> list[str]:
|
|
|
203
205
|
path.write_text(text)
|
|
204
206
|
actions.append(f"created {path.relative_to(project)}")
|
|
205
207
|
|
|
208
|
+
seed = root / "seed.py"
|
|
209
|
+
if seed.exists():
|
|
210
|
+
actions.append(
|
|
211
|
+
f"kept {seed.relative_to(project)}: add sample {name} rows to it"
|
|
212
|
+
)
|
|
213
|
+
else:
|
|
214
|
+
seed.write_text(render_seed(name, package))
|
|
215
|
+
actions.append(f"created {seed.relative_to(project)} with sample {name} rows")
|
|
216
|
+
|
|
206
217
|
app_module.write_text(_add_extension(app_module.read_text(), package, name))
|
|
207
218
|
actions.append(
|
|
208
219
|
f"added {name} to the extensions in {app_module.relative_to(project)}"
|
|
@@ -51,6 +51,26 @@ def init_app(app):
|
|
|
51
51
|
)
|
|
52
52
|
|
|
53
53
|
|
|
54
|
+
def render_seed(name: str, package: str) -> str:
|
|
55
|
+
cls = _cls(name)
|
|
56
|
+
words = name.replace("_", " ")
|
|
57
|
+
return _t(
|
|
58
|
+
'''\
|
|
59
|
+
"""Sample rows. `stk db seed` adds them; `stk smoke` renders every page with them."""
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
async def run(session):
|
|
63
|
+
from $package.$name.models import $cls
|
|
64
|
+
|
|
65
|
+
session.add_all($cls(name=f"Sample $words {n}") for n in range(1, 4))
|
|
66
|
+
''',
|
|
67
|
+
package=package,
|
|
68
|
+
name=name,
|
|
69
|
+
cls=cls,
|
|
70
|
+
words=words,
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
|
|
54
74
|
def render_models(name: str) -> str:
|
|
55
75
|
cls = _cls(name)
|
|
56
76
|
return _t(
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"""The `stk` command must expose the whole framework without QUART_APP set."""
|
|
2
2
|
|
|
3
|
+
import sys
|
|
4
|
+
import tempfile
|
|
3
5
|
import unittest
|
|
6
|
+
from pathlib import Path
|
|
4
7
|
from unittest.mock import patch
|
|
5
8
|
|
|
6
9
|
from click.testing import CliRunner
|
|
@@ -104,3 +107,28 @@ class RunCommandTest(unittest.TestCase):
|
|
|
104
107
|
|
|
105
108
|
async def _done():
|
|
106
109
|
return None
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
class SeedModuleTest(unittest.TestCase):
|
|
113
|
+
def test_only_a_seed_file_counts_as_the_seed(self):
|
|
114
|
+
from types import SimpleNamespace
|
|
115
|
+
|
|
116
|
+
from stk.cli.database import seed_module
|
|
117
|
+
|
|
118
|
+
with tempfile.TemporaryDirectory() as root:
|
|
119
|
+
for package, path in (
|
|
120
|
+
("seedfile_app", "seed.py"),
|
|
121
|
+
("seedpkg_app", "seed/__init__.py"),
|
|
122
|
+
):
|
|
123
|
+
(Path(root) / package / path).parent.mkdir(parents=True)
|
|
124
|
+
(Path(root) / package / "__init__.py").touch()
|
|
125
|
+
(Path(root) / package / path).touch()
|
|
126
|
+
sys.path.insert(0, root)
|
|
127
|
+
try:
|
|
128
|
+
app = SimpleNamespace(import_name="seedfile_app.app")
|
|
129
|
+
self.assertEqual(seed_module(app), "seedfile_app.seed")
|
|
130
|
+
self.assertIsNone(
|
|
131
|
+
seed_module(SimpleNamespace(import_name="seedpkg_app.app"))
|
|
132
|
+
)
|
|
133
|
+
finally:
|
|
134
|
+
sys.path.remove(root)
|
|
@@ -349,11 +349,27 @@ class InitAndNewTests(unittest.TestCase):
|
|
|
349
349
|
rules = {route["rule"] for route in json.loads(result.stdout)}
|
|
350
350
|
self.assertLessEqual({"/widgets/", "/api/widgets", "/gadgets/"}, rules)
|
|
351
351
|
|
|
352
|
+
def test_seed_holds_sample_rows_of_the_first_module(self):
|
|
353
|
+
seed = (self.app / "acme" / "seed.py").read_text()
|
|
354
|
+
self.assertIn("Widget(name=", seed)
|
|
355
|
+
self.assertNotIn("Gadget", seed) # an existing seed.py is the app's own
|
|
356
|
+
self.assertIn("kept acme/seed.py", self.second.stdout)
|
|
357
|
+
result = _stk("db", "seed", cwd=self.app)
|
|
358
|
+
self.assertEqual(result.returncode, 0, result.stderr)
|
|
359
|
+
result = _stk(
|
|
360
|
+
"shell",
|
|
361
|
+
"-c",
|
|
362
|
+
"from acme.widget.models import Widget; print(await count(Widget))",
|
|
363
|
+
cwd=self.app,
|
|
364
|
+
)
|
|
365
|
+
self.assertEqual(result.returncode, 0, result.stderr)
|
|
366
|
+
self.assertEqual(result.stdout.strip().splitlines()[-1], "3")
|
|
367
|
+
|
|
352
368
|
def test_new_never_touches_stk(self):
|
|
353
369
|
self.assertEqual(_package_digest(), self.before)
|
|
354
370
|
|
|
355
371
|
def test_new_refuses_duplicates_and_reserved_names(self):
|
|
356
|
-
for name in ("widget", "user"):
|
|
372
|
+
for name in ("widget", "user", "seed"):
|
|
357
373
|
with self.subTest(name=name):
|
|
358
374
|
result = _stk("new", name, "--no-migrate", cwd=self.app)
|
|
359
375
|
self.assertNotEqual(result.returncode, 0)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|