stkit 17.3.1__tar.gz → 17.3.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.
Files changed (241) hide show
  1. {stkit-17.3.1 → stkit-17.3.2}/CHANGELOG.md +11 -0
  2. {stkit-17.3.1 → stkit-17.3.2}/PKG-INFO +2 -2
  3. {stkit-17.3.1 → stkit-17.3.2}/examples/minimal/uv.lock +8 -8
  4. {stkit-17.3.1 → stkit-17.3.2}/pyproject.toml +2 -2
  5. {stkit-17.3.1 → stkit-17.3.2}/stk/app.py +11 -1
  6. {stkit-17.3.1 → stkit-17.3.2}/stk/user/models.py +16 -6
  7. {stkit-17.3.1 → stkit-17.3.2}/stk/websocket.py +1 -1
  8. {stkit-17.3.1 → stkit-17.3.2}/tests/test_production_security.py +33 -0
  9. {stkit-17.3.1 → stkit-17.3.2}/tests/test_static_versioning.py +13 -0
  10. {stkit-17.3.1 → stkit-17.3.2}/.gitignore +0 -0
  11. {stkit-17.3.1 → stkit-17.3.2}/LICENSE +0 -0
  12. {stkit-17.3.1 → stkit-17.3.2}/README.md +0 -0
  13. {stkit-17.3.1 → stkit-17.3.2}/SECURITY.md +0 -0
  14. {stkit-17.3.1 → stkit-17.3.2}/examples/minimal/.env-sample +0 -0
  15. {stkit-17.3.1 → stkit-17.3.2}/examples/minimal/.gitignore +0 -0
  16. {stkit-17.3.1 → stkit-17.3.2}/examples/minimal/README.md +0 -0
  17. {stkit-17.3.1 → stkit-17.3.2}/examples/minimal/minimal/__init__.py +0 -0
  18. {stkit-17.3.1 → stkit-17.3.2}/examples/minimal/minimal/app.py +0 -0
  19. {stkit-17.3.1 → stkit-17.3.2}/examples/minimal/minimal/migrations/364232ae77d5_add_note.py +0 -0
  20. {stkit-17.3.1 → stkit-17.3.2}/examples/minimal/minimal/note/__init__.py +0 -0
  21. {stkit-17.3.1 → stkit-17.3.2}/examples/minimal/minimal/note/models.py +0 -0
  22. {stkit-17.3.1 → stkit-17.3.2}/examples/minimal/minimal/note/templates/note/index.html +0 -0
  23. {stkit-17.3.1 → stkit-17.3.2}/examples/minimal/minimal/note/views.py +0 -0
  24. {stkit-17.3.1 → stkit-17.3.2}/examples/minimal/minimal/settings.py +0 -0
  25. {stkit-17.3.1 → stkit-17.3.2}/examples/minimal/minimal/templates/layout.html +0 -0
  26. {stkit-17.3.1 → stkit-17.3.2}/examples/minimal/pyproject.toml +0 -0
  27. {stkit-17.3.1 → stkit-17.3.2}/examples/minimal/tests/__init__.py +0 -0
  28. {stkit-17.3.1 → stkit-17.3.2}/examples/minimal/tests/test_app.py +0 -0
  29. {stkit-17.3.1 → stkit-17.3.2}/stk/__init__.py +0 -0
  30. {stkit-17.3.1 → stkit-17.3.2}/stk/__main__.py +0 -0
  31. {stkit-17.3.1 → stkit-17.3.2}/stk/agent_login.py +0 -0
  32. {stkit-17.3.1 → stkit-17.3.2}/stk/checks.py +0 -0
  33. {stkit-17.3.1 → stkit-17.3.2}/stk/cli/__init__.py +0 -0
  34. {stkit-17.3.1 → stkit-17.3.2}/stk/cli/agent.py +0 -0
  35. {stkit-17.3.1 → stkit-17.3.2}/stk/cli/base.py +0 -0
  36. {stkit-17.3.1 → stkit-17.3.2}/stk/cli/copy_rules.py +0 -0
  37. {stkit-17.3.1 → stkit-17.3.2}/stk/cli/database.py +0 -0
  38. {stkit-17.3.1 → stkit-17.3.2}/stk/cli/develop.py +0 -0
  39. {stkit-17.3.1 → stkit-17.3.2}/stk/cli/doctor.py +0 -0
  40. {stkit-17.3.1 → stkit-17.3.2}/stk/cli/main.py +0 -0
  41. {stkit-17.3.1 → stkit-17.3.2}/stk/cli/reports.py +0 -0
  42. {stkit-17.3.1 → stkit-17.3.2}/stk/cli/smoke.py +0 -0
  43. {stkit-17.3.1 → stkit-17.3.2}/stk/cli/users.py +0 -0
  44. {stkit-17.3.1 → stkit-17.3.2}/stk/cli/watch.py +0 -0
  45. {stkit-17.3.1 → stkit-17.3.2}/stk/extensions.py +0 -0
  46. {stkit-17.3.1 → stkit-17.3.2}/stk/files/__init__.py +0 -0
  47. {stkit-17.3.1 → stkit-17.3.2}/stk/files/models.py +0 -0
  48. {stkit-17.3.1 → stkit-17.3.2}/stk/files/store.py +0 -0
  49. {stkit-17.3.1 → stkit-17.3.2}/stk/files/views.py +0 -0
  50. {stkit-17.3.1 → stkit-17.3.2}/stk/mcp/__init__.py +0 -0
  51. {stkit-17.3.1 → stkit-17.3.2}/stk/mcp/models.py +0 -0
  52. {stkit-17.3.1 → stkit-17.3.2}/stk/mcp/server.py +0 -0
  53. {stkit-17.3.1 → stkit-17.3.2}/stk/mcp/views.py +0 -0
  54. {stkit-17.3.1 → stkit-17.3.2}/stk/migrations/__init__.py +0 -0
  55. {stkit-17.3.1 → stkit-17.3.2}/stk/migrations/env.py +0 -0
  56. {stkit-17.3.1 → stkit-17.3.2}/stk/migrations/script.py.mako +0 -0
  57. {stkit-17.3.1 → stkit-17.3.2}/stk/migrations/versions/stk_0001_initial_schema.py +0 -0
  58. {stkit-17.3.1 → stkit-17.3.2}/stk/migrations/versions/stk_0002_jobs.py +0 -0
  59. {stkit-17.3.1 → stkit-17.3.2}/stk/migrations/versions/stk_0003_files.py +0 -0
  60. {stkit-17.3.1 → stkit-17.3.2}/stk/migrations/versions/stk_0004_notifications.py +0 -0
  61. {stkit-17.3.1 → stkit-17.3.2}/stk/migrations/versions/stk_0005_mcp_tokens.py +0 -0
  62. {stkit-17.3.1 → stkit-17.3.2}/stk/migrations/versions/stk_0006_stk_mcp_token.py +0 -0
  63. {stkit-17.3.1 → stkit-17.3.2}/stk/migrations/versions/stk_0007_confirm_existing_users.py +0 -0
  64. {stkit-17.3.1 → stkit-17.3.2}/stk/notification/__init__.py +0 -0
  65. {stkit-17.3.1 → stkit-17.3.2}/stk/notification/models.py +0 -0
  66. {stkit-17.3.1 → stkit-17.3.2}/stk/notification/views.py +0 -0
  67. {stkit-17.3.1 → stkit-17.3.2}/stk/portal/views.py +0 -0
  68. {stkit-17.3.1 → stkit-17.3.2}/stk/public/__init__.py +0 -0
  69. {stkit-17.3.1 → stkit-17.3.2}/stk/public/models.py +0 -0
  70. {stkit-17.3.1 → stkit-17.3.2}/stk/public/views.py +0 -0
  71. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/__init__.py +0 -0
  72. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/CLAUDE.md +0 -0
  73. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/Dockerfile +0 -0
  74. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/README.md +0 -0
  75. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/__app__/__init__.py +0 -0
  76. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/__app__/app.py +0 -0
  77. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/__app__/settings.py +0 -0
  78. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/claude/skills/stk-api/SKILL.md +0 -0
  79. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/claude/skills/stk-blueprint/SKILL.md +0 -0
  80. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/claude/skills/stk-deploy/SKILL.md +0 -0
  81. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/claude/skills/stk-lessons/SKILL.md +0 -0
  82. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/claude/skills/stk-migrate/SKILL.md +0 -0
  83. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/docker-compose.yml +0 -0
  84. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/dockerignore +0 -0
  85. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/env-sample +0 -0
  86. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/github/workflows/checks.yml +0 -0
  87. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/gitignore +0 -0
  88. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/nginx/nginx.conf +0 -0
  89. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/nginx/stk.conf +0 -0
  90. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/postgres/init-db.sh +0 -0
  91. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/pyproject.toml +0 -0
  92. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/tests/__init__.py +0 -0
  93. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/app/tests/test_app.py +0 -0
  94. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/generator.py +0 -0
  95. {stkit-17.3.1 → stkit-17.3.2}/stk/scaffold/templates.py +0 -0
  96. {stkit-17.3.1 → stkit-17.3.2}/stk/security.py +0 -0
  97. {stkit-17.3.1 → stkit-17.3.2}/stk/settings.py +0 -0
  98. {stkit-17.3.1 → stkit-17.3.2}/stk/shell.py +0 -0
  99. {stkit-17.3.1 → stkit-17.3.2}/stk/static/VERSIONS.txt +0 -0
  100. {stkit-17.3.1 → stkit-17.3.2}/stk/static/css/app.css +0 -0
  101. {stkit-17.3.1 → stkit-17.3.2}/stk/static/css/layout.css +0 -0
  102. {stkit-17.3.1 → stkit-17.3.2}/stk/static/css/vuetify.min.css +0 -0
  103. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.animals.woff2 +0 -0
  104. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.arrows-1.woff2 +0 -0
  105. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.arrows-2.woff2 +0 -0
  106. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.badges.woff2 +0 -0
  107. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.brand-1.woff2 +0 -0
  108. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.brand-2.woff2 +0 -0
  109. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.buildings.woff2 +0 -0
  110. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.charts.woff2 +0 -0
  111. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.communication.woff2 +0 -0
  112. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.computers.woff2 +0 -0
  113. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.core.woff2 +0 -0
  114. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.currencies.woff2 +0 -0
  115. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.database.woff2 +0 -0
  116. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.design-1.woff2 +0 -0
  117. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.design-2.woff2 +0 -0
  118. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.development.woff2 +0 -0
  119. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.devices-1.woff2 +0 -0
  120. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.devices-2.woff2 +0 -0
  121. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.document.woff2 +0 -0
  122. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.e-commerce.woff2 +0 -0
  123. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.electrical.woff2 +0 -0
  124. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.extensions.woff2 +0 -0
  125. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.food.woff2 +0 -0
  126. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.games.woff2 +0 -0
  127. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.gender.woff2 +0 -0
  128. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.gestures.woff2 +0 -0
  129. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.health.woff2 +0 -0
  130. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.laundry.woff2 +0 -0
  131. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.letters.woff2 +0 -0
  132. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.logic.woff2 +0 -0
  133. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.map.woff2 +0 -0
  134. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.math.woff2 +0 -0
  135. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.media.woff2 +0 -0
  136. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.mood.woff2 +0 -0
  137. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.nature.woff2 +0 -0
  138. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.numbers.woff2 +0 -0
  139. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.photography.woff2 +0 -0
  140. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.shapes.woff2 +0 -0
  141. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.sport.woff2 +0 -0
  142. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.symbols.woff2 +0 -0
  143. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.system-1.woff2 +0 -0
  144. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.system-2.woff2 +0 -0
  145. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.system-3.woff2 +0 -0
  146. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.text.woff2 +0 -0
  147. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.vehicles.woff2 +0 -0
  148. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.version-control.woff2 +0 -0
  149. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.weather.woff2 +0 -0
  150. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/fonts/tabler-icons.zodiac.woff2 +0 -0
  151. {stkit-17.3.1 → stkit-17.3.2}/stk/static/icons/tabler-icons.min.css +0 -0
  152. {stkit-17.3.1 → stkit-17.3.2}/stk/static/img/auth-bg.webp +0 -0
  153. {stkit-17.3.1 → stkit-17.3.2}/stk/static/img/favicon.ico +0 -0
  154. {stkit-17.3.1 → stkit-17.3.2}/stk/static/img/stk.svg +0 -0
  155. {stkit-17.3.1 → stkit-17.3.2}/stk/static/js/axios.min.js +0 -0
  156. {stkit-17.3.1 → stkit-17.3.2}/stk/static/js/components/NotificationDropdown.js +0 -0
  157. {stkit-17.3.1 → stkit-17.3.2}/stk/static/js/components/ThemeSwitcher.js +0 -0
  158. {stkit-17.3.1 → stkit-17.3.2}/stk/static/js/components/TransitionExpand.js +0 -0
  159. {stkit-17.3.1 → stkit-17.3.2}/stk/static/js/components/VerticalNavGroup.js +0 -0
  160. {stkit-17.3.1 → stkit-17.3.2}/stk/static/js/components/VerticalNavLink.js +0 -0
  161. {stkit-17.3.1 → stkit-17.3.2}/stk/static/js/components/VerticalNavSectionTitle.js +0 -0
  162. {stkit-17.3.1 → stkit-17.3.2}/stk/static/js/components/index.js +0 -0
  163. {stkit-17.3.1 → stkit-17.3.2}/stk/static/js/config.js +0 -0
  164. {stkit-17.3.1 → stkit-17.3.2}/stk/static/js/vue.min.js +0 -0
  165. {stkit-17.3.1 → stkit-17.3.2}/stk/static/js/vuetify.min.js +0 -0
  166. {stkit-17.3.1 → stkit-17.3.2}/stk/static/robots.txt +0 -0
  167. {stkit-17.3.1 → stkit-17.3.2}/stk/tasks/__init__.py +0 -0
  168. {stkit-17.3.1 → stkit-17.3.2}/stk/tasks/models.py +0 -0
  169. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/401.html +0 -0
  170. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/404.html +0 -0
  171. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/500.html +0 -0
  172. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/_brand.html +0 -0
  173. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/auth_layout.html +0 -0
  174. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/cms/activities.html +0 -0
  175. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/cms/jobs.html +0 -0
  176. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/cms/roles.html +0 -0
  177. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/cms/users.html +0 -0
  178. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/dashboard.html +0 -0
  179. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/index.html +0 -0
  180. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/layout.html +0 -0
  181. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/login-layout.html +0 -0
  182. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/mcp/tokens.html +0 -0
  183. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/_macros.html +0 -0
  184. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/_messages.html +0 -0
  185. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/change_password.html +0 -0
  186. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/confirm_email.html +0 -0
  187. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/email/change_notice.html +0 -0
  188. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/email/change_notice.txt +0 -0
  189. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/email/confirmation_instructions.html +0 -0
  190. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/email/confirmation_instructions.txt +0 -0
  191. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/email/login_instructions.html +0 -0
  192. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/email/login_instructions.txt +0 -0
  193. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/email/reset_instructions.html +0 -0
  194. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/email/reset_instructions.txt +0 -0
  195. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/email/reset_notice.html +0 -0
  196. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/email/reset_notice.txt +0 -0
  197. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/email/welcome.html +0 -0
  198. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/email/welcome.txt +0 -0
  199. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/forgot_password.html +0 -0
  200. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/login_user.html +0 -0
  201. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/mf_recovery.html +0 -0
  202. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/mf_recovery_codes.html +0 -0
  203. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/register_user.html +0 -0
  204. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/reset_password.html +0 -0
  205. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/send_confirmation.html +0 -0
  206. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/send_login.html +0 -0
  207. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/two_factor_select.html +0 -0
  208. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/two_factor_setup.html +0 -0
  209. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/two_factor_verify_code.html +0 -0
  210. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/wan_register.html +0 -0
  211. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/wan_signin.html +0 -0
  212. {stkit-17.3.1 → stkit-17.3.2}/stk/templates/security/wan_verify.html +0 -0
  213. {stkit-17.3.1 → stkit-17.3.2}/stk/user/__init__.py +0 -0
  214. {stkit-17.3.1 → stkit-17.3.2}/stk/user/forms.py +0 -0
  215. {stkit-17.3.1 → stkit-17.3.2}/stk/user/views.py +0 -0
  216. {stkit-17.3.1 → stkit-17.3.2}/stk/utils/email.py +0 -0
  217. {stkit-17.3.1 → stkit-17.3.2}/stk/utils/netguard.py +0 -0
  218. {stkit-17.3.1 → stkit-17.3.2}/stk/utils/ratelimit.py +0 -0
  219. {stkit-17.3.1 → stkit-17.3.2}/tests/test_agent_operability.py +0 -0
  220. {stkit-17.3.1 → stkit-17.3.2}/tests/test_app_index.py +0 -0
  221. {stkit-17.3.1 → stkit-17.3.2}/tests/test_branding.py +0 -0
  222. {stkit-17.3.1 → stkit-17.3.2}/tests/test_builder_ux.py +0 -0
  223. {stkit-17.3.1 → stkit-17.3.2}/tests/test_cli.py +0 -0
  224. {stkit-17.3.1 → stkit-17.3.2}/tests/test_composition.py +0 -0
  225. {stkit-17.3.1 → stkit-17.3.2}/tests/test_confirm_migration.py +0 -0
  226. {stkit-17.3.1 → stkit-17.3.2}/tests/test_copy_rules.py +0 -0
  227. {stkit-17.3.1 → stkit-17.3.2}/tests/test_csrf_exempt.py +0 -0
  228. {stkit-17.3.1 → stkit-17.3.2}/tests/test_error_handler.py +0 -0
  229. {stkit-17.3.1 → stkit-17.3.2}/tests/test_files.py +0 -0
  230. {stkit-17.3.1 → stkit-17.3.2}/tests/test_jobs.py +0 -0
  231. {stkit-17.3.1 → stkit-17.3.2}/tests/test_mcp.py +0 -0
  232. {stkit-17.3.1 → stkit-17.3.2}/tests/test_mcp_migration.py +0 -0
  233. {stkit-17.3.1 → stkit-17.3.2}/tests/test_migration_drift.py +0 -0
  234. {stkit-17.3.1 → stkit-17.3.2}/tests/test_netguard.py +0 -0
  235. {stkit-17.3.1 → stkit-17.3.2}/tests/test_notifications.py +0 -0
  236. {stkit-17.3.1 → stkit-17.3.2}/tests/test_revision_imports.py +0 -0
  237. {stkit-17.3.1 → stkit-17.3.2}/tests/test_route_collisions.py +0 -0
  238. {stkit-17.3.1 → stkit-17.3.2}/tests/test_scaffolder.py +0 -0
  239. {stkit-17.3.1 → stkit-17.3.2}/tests/test_security_compatibility.py +0 -0
  240. {stkit-17.3.1 → stkit-17.3.2}/tests/test_shell.py +0 -0
  241. {stkit-17.3.1 → stkit-17.3.2}/tests/test_smoke_pages.py +0 -0
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## v17.3.2 (2026-11-01)
4
+
5
+ No migration required. Requires quart-security 2.2.0, which normalizes emails more fully: an account stored with a decomposed Unicode or punycode email must be rewritten with `quart_security.normalize_email` to sign in. ASCII addresses are unaffected.
6
+
7
+ - When an admin changes a user's email, the user is signed out everywhere and their MCP tokens are revoked, so reset and confirmation links sent to the old address stop working. Retyping the same address in other case is no change (Authentication).
8
+ - Pages behind `auth_required`, which includes every admin page, now come back after login. Before, the user always landed on the dashboard.
9
+ - One mailbox is one account: `josé@` composed and decomposed, or `münchen.de` and its punycode form, no longer make separate users. Passwords match whichever Unicode form they are typed in.
10
+ - Passkey sign-in refuses locked and unconfirmed accounts, like password login.
11
+ - `STK_PUBLIC_URL` with a trailing slash no longer closes every WebSocket with 4003.
12
+ - A static file is cached as immutable only under the version this instance would link to. During a rolling deploy an old instance could pin old bytes under a new URL for a year. An app test that requests a made-up `?v=` and expects `immutable` must build the URL with `url_for('static', ...)` instead.
13
+
3
14
  ## v17.3.1 (2026-10-31)
4
15
 
5
16
  No migration required.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: stkit
3
- Version: 17.3.1
3
+ Version: 17.3.2
4
4
  Summary: An async Quart framework optimized for AI-assisted development workflows
5
5
  Project-URL: Documentation, https://docs.stkit.dev
6
6
  Project-URL: Source, https://github.com/level09/stk
@@ -28,7 +28,7 @@ Requires-Dist: pillow>=13.0.0
28
28
  Requires-Dist: psycopg2-binary>=2.9.10
29
29
  Requires-Dist: python-dotenv>=1.2.2
30
30
  Requires-Dist: qrcode>=8.2
31
- Requires-Dist: quart-security<3,>=2.1.0
31
+ Requires-Dist: quart-security<3,>=2.2.0
32
32
  Requires-Dist: quart-session>=3.0.0
33
33
  Requires-Dist: quart>=0.20.0
34
34
  Requires-Dist: rich>=14.0.0
@@ -1414,11 +1414,11 @@ wheels = [
1414
1414
 
1415
1415
  [[package]]
1416
1416
  name = "pyasn1"
1417
- version = "0.6.4"
1417
+ version = "0.6.5"
1418
1418
  source = { registry = "https://pypi.org/simple" }
1419
- sdist = { url = "https://files.pythonhosted.org/packages/a4/9a/23310166d960def5897e91fe20e5b724601b02a22e84ba1f94232c0b7f67/pyasn1-0.6.4.tar.gz", hash = "sha256:9c447d8431c947fe4c8febc4ed9e760bc29011a5b01e5c74b67025bd9fb8ce81", size = 151262, upload-time = "2026-07-09T01:12:33.988Z" }
1419
+ sdist = { url = "https://files.pythonhosted.org/packages/88/7e/3c0da41061a2021cac7cd524fd57092adbe5b515e8bf9005702e366802e2/pyasn1-0.6.5.tar.gz", hash = "sha256:6b11616a6bcf3a40e635f082bb232fa57b5e0dd7f517bd7ddd69ec3794508a47", size = 155152, upload-time = "2026-10-27T06:32:49.125Z" }
1420
1420
  wheels = [
1421
- { url = "https://files.pythonhosted.org/packages/9a/3b/6163796d69c3977d1e4287bea4a6979161cbbdd170ebb430511e8e1999ce/pyasn1-0.6.4-py3-none-any.whl", hash = "sha256:deda9277cfd454080ec40b207fb6df82206a3a2688735233cdcd8d3d565f088b", size = 84410, upload-time = "2026-07-09T01:12:32.92Z" },
1421
+ { url = "https://files.pythonhosted.org/packages/19/1f/3eefd5c84c35cae44549ce1c7f7e58f7945b34f5a6bce07a135438522073/pyasn1-0.6.5-py3-none-any.whl", hash = "sha256:4017b0fce125096b8573b39c989fdb1a4b19cf761e683398184550fea0e66587", size = 84807, upload-time = "2026-10-27T06:32:48.045Z" },
1422
1422
  ]
1423
1423
 
1424
1424
  [[package]]
@@ -1654,7 +1654,7 @@ wheels = [
1654
1654
 
1655
1655
  [[package]]
1656
1656
  name = "quart-security"
1657
- version = "2.0.3"
1657
+ version = "2.2.0"
1658
1658
  source = { registry = "https://pypi.org/simple" }
1659
1659
  dependencies = [
1660
1660
  { name = "aiosmtplib" },
@@ -1673,9 +1673,9 @@ dependencies = [
1673
1673
  { name = "webauthn" },
1674
1674
  { name = "wtforms" },
1675
1675
  ]
1676
- sdist = { url = "https://files.pythonhosted.org/packages/2b/88/43c45890dd40db6fa5e57d09705b35c42f3a36981997ab3269a2c33403a0/quart_security-2.0.3.tar.gz", hash = "sha256:74be1c5177afca54cc90bafd10d7ae69a1f4923e1786ff106fb9990dd8f7eb5c", size = 35687, upload-time = "2026-10-25T10:39:02.875Z" }
1676
+ sdist = { url = "https://files.pythonhosted.org/packages/5e/89/57c9ac93ded704454db3dd97c5932cee149bcded7aa4e002a8c2dd3e3b46/quart_security-2.2.0.tar.gz", hash = "sha256:b125b0fc1523b9fddc0929fb2d1bd63768c679bbdd4bbfffb03861f81a00d7d5", size = 45480, upload-time = "2026-11-01T12:04:07.306Z" }
1677
1677
  wheels = [
1678
- { url = "https://files.pythonhosted.org/packages/ef/b5/798c32a417ecba01152a4633cc4552b7ae0a4d70285f003ea7e5f1799e61/quart_security-2.0.3-py3-none-any.whl", hash = "sha256:08ac07b53242b70b519515299e89912cca2c21fabf12a6d25b87f6e4c8601268", size = 41815, upload-time = "2026-10-25T10:39:01.684Z" },
1678
+ { url = "https://files.pythonhosted.org/packages/5c/54/775f754344c5602b87a59b3c6eba8db9793a18b1a7c14e47c2355f8ac479/quart_security-2.2.0-py3-none-any.whl", hash = "sha256:d3b7cd1ecabb0b9610417a10d6a056eaaf12a7959a43509af565b41942f92542", size = 52995, upload-time = "2026-11-01T12:04:05.767Z" },
1679
1679
  ]
1680
1680
 
1681
1681
  [[package]]
@@ -1976,7 +1976,7 @@ asyncio = [
1976
1976
 
1977
1977
  [[package]]
1978
1978
  name = "stkit"
1979
- version = "17.1.1"
1979
+ version = "17.3.2"
1980
1980
  source = { editable = "../../" }
1981
1981
  dependencies = [
1982
1982
  { name = "aiosmtplib" },
@@ -2048,7 +2048,7 @@ requires-dist = [
2048
2048
  { name = "python-dotenv", specifier = ">=1.2.2" },
2049
2049
  { name = "qrcode", specifier = ">=8.2" },
2050
2050
  { name = "quart", specifier = ">=0.20.0" },
2051
- { name = "quart-security", specifier = ">=2.0.3,<3" },
2051
+ { name = "quart-security", specifier = ">=2.2.0,<3" },
2052
2052
  { name = "quart-session", specifier = ">=3.0.0" },
2053
2053
  { name = "redis", marker = "extra == 'full'", specifier = ">=7.1.0" },
2054
2054
  { name = "rich", specifier = ">=14.0.0" },
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "stkit"
3
- version = "17.3.1"
3
+ version = "17.3.2"
4
4
  description = "An async Quart framework optimized for AI-assisted development workflows"
5
5
  authors = [
6
6
  {name = "Level09", email = "hello@level09.com"}
@@ -30,7 +30,7 @@ dependencies = [
30
30
  "python-dotenv>=1.2.2",
31
31
  "qrcode>=8.2",
32
32
  "quart>=0.20.0",
33
- "quart-security>=2.1.0,<3",
33
+ "quart-security>=2.2.0,<3",
34
34
  "quart-session>=3.0.0",
35
35
  "rich>=14.0.0",
36
36
  "sqlalchemy[asyncio]>=2.0.41",
@@ -251,6 +251,10 @@ def register_static_versioning(app):
251
251
  raise FileNotFoundError(f"no static file {values['filename']}")
252
252
  values["v"] = _static_digest(path, path.stat().st_mtime_ns)
253
253
 
254
+ def _digest_of(filename):
255
+ path = app.static_file(filename)
256
+ return path and _static_digest(path, path.stat().st_mtime_ns)
257
+
254
258
  @app.after_request
255
259
  async def _cache_static(response):
256
260
  if request.path.startswith(f"{app.static_url_path}/"):
@@ -258,7 +262,13 @@ def register_static_versioning(app):
258
262
  # This response sets or clears a session cookie; a shared cache
259
263
  # must never replay it to someone else.
260
264
  policy = "private, no-store"
261
- elif request.args.get("v") and response.status_code == 200:
265
+ elif (
266
+ response.status_code == 200
267
+ and request.endpoint == "static"
268
+ and request.args.get("v") == _digest_of(request.view_args["filename"])
269
+ ):
270
+ # Only the version this instance would link to: during a rolling
271
+ # deploy an old instance must not pin old bytes under a new URL.
262
272
  policy = "public, max-age=31536000, immutable"
263
273
  else:
264
274
  policy = "no-cache"
@@ -5,7 +5,13 @@ from datetime import datetime
5
5
  from uuid import uuid4
6
6
 
7
7
  from quart import g
8
- from quart_security import RoleMixin, SecurityState, UserMixin, hash_password
8
+ from quart_security import (
9
+ RoleMixin,
10
+ SecurityState,
11
+ UserMixin,
12
+ hash_password,
13
+ normalize_email,
14
+ )
9
15
  from quart_security.password import hash_password_async
10
16
  from sqlalchemy import (
11
17
  JSON,
@@ -78,14 +84,14 @@ class User(Base, UserMixin):
78
84
 
79
85
  @validates("email")
80
86
  def _normalize_email(self, key, value):
81
- # Login lowercases what it is given; store the same form so one address
82
- # cannot become two accounts that differ only by case.
83
- return value.strip().lower() if value is not None else value
87
+ # Login normalizes what it is given; store the same form so one mailbox
88
+ # cannot become two accounts that differ by case or Unicode form.
89
+ return normalize_email(value) if value is not None else value
84
90
 
85
91
  @classmethod
86
92
  def email_is(cls, email):
87
93
  """Match an email regardless of case, including rows stored before 17.2.1."""
88
- return func.lower(cls.email) == email.strip().lower()
94
+ return func.lower(cls.email) == normalize_email(email)
89
95
 
90
96
  roles = relationship(
91
97
  "Role", secondary=roles_users, backref="users", lazy="selectin"
@@ -135,7 +141,11 @@ class User(Base, UserMixin):
135
141
  async def from_dict(self, json_dict):
136
142
  self.name = json_dict.get("name", self.name)
137
143
  self.username = json_dict.get("username", self.username)
138
- self.email = json_dict.get("email", self.email)
144
+ email = normalize_email(json_dict.get("email", self.email))
145
+ if email != self.email:
146
+ # Reset and confirmation links sent to the old address stop working.
147
+ self.email = email
148
+ self.fs_uniquifier = uuid4().hex
139
149
  if "password" in json_dict:
140
150
  self.password = await hash_password_async(json_dict["password"])
141
151
  self.password_set = True
@@ -38,7 +38,7 @@ async def ws_endpoint():
38
38
  if db is not None:
39
39
  await db.close()
40
40
  allowed = current_app.config.get("STK_WS_ALLOWED_ORIGINS") or [
41
- current_app.config.get("STK_PUBLIC_URL")
41
+ (current_app.config.get("STK_PUBLIC_URL") or "").rstrip("/")
42
42
  or websocket.host_url.replace("ws://", "http://", 1)
43
43
  .replace("wss://", "https://", 1)
44
44
  .rstrip("/")
@@ -216,6 +216,15 @@ class ProductionSecurityTests(unittest.IsolatedAsyncioTestCase):
216
216
  self.assertNotEqual((await attacker.get("/dashboard/")).status_code, 200)
217
217
  self.assertFalse(any(c.value == sid for c in victim.cookie_jar))
218
218
 
219
+ async def test_websocket_accepts_public_url_with_trailing_slash(self):
220
+ self.app.config["STK_PUBLIC_URL"] = "http://localhost/"
221
+ client = self.app.test_client()
222
+ await self.login(client)
223
+ async with client.websocket(
224
+ "/ws", headers={"Origin": "http://localhost"}
225
+ ) as ws:
226
+ await ws.receive()
227
+
219
228
  async def test_websocket_rejects_foreign_origin(self):
220
229
  client = self.app.test_client()
221
230
  await self.login(client)
@@ -251,6 +260,30 @@ class ProductionSecurityTests(unittest.IsolatedAsyncioTestCase):
251
260
  )
252
261
  self.assertEqual(response.status_code, 400)
253
262
 
263
+ async def test_admin_email_change_rotates_uniquifier(self):
264
+ async with ext.async_session_factory() as db:
265
+ before = (await db.get(User, self.user_id)).fs_uniquifier
266
+ client = self.app.test_client()
267
+ await self.login(client)
268
+ token = await self.csrf(client)
269
+ response = await client.post(
270
+ f"/api/user/{self.user_id}",
271
+ json={"item": {"email": "moved@example.com"}},
272
+ headers={"X-CSRFToken": token},
273
+ )
274
+ self.assertEqual(response.status_code, 200)
275
+ async with ext.async_session_factory() as db:
276
+ after = (await db.get(User, self.user_id)).fs_uniquifier
277
+ self.assertNotEqual(before, after)
278
+ # Retyping the same address in other case is no change.
279
+ await client.post(
280
+ f"/api/user/{self.user_id}",
281
+ json={"item": {"email": "Moved@Example.com"}},
282
+ headers={"X-CSRFToken": token},
283
+ )
284
+ async with ext.async_session_factory() as db:
285
+ self.assertEqual((await db.get(User, self.user_id)).fs_uniquifier, after)
286
+
254
287
  async def test_invalid_json_mutation_is_client_error(self):
255
288
  client = self.app.test_client()
256
289
  await self.login(client)
@@ -21,6 +21,19 @@ class StaticVersioningTests(unittest.IsolatedAsyncioTestCase):
21
21
  self.assertIn("immutable", versioned.headers["Cache-Control"])
22
22
  bare = await client.get("/static/js/config.js")
23
23
  self.assertEqual(bare.headers["Cache-Control"], "no-cache")
24
+ # Another instance's version: serving these bytes under it must not stick.
25
+ other = await client.get("/static/js/config.js?v=deadbeef0000")
26
+ self.assertEqual(other.headers["Cache-Control"], "no-cache")
27
+
28
+ async def test_app_route_under_static_path_is_not_versioned(self):
29
+ app = Stk(__name__, config=TestingConfig)
30
+
31
+ @app.get("/static/manifest.json")
32
+ async def manifest():
33
+ return {}
34
+
35
+ response = await app.test_client().get("/static/manifest.json?v=1")
36
+ self.assertEqual(response.headers["Cache-Control"], "no-cache")
24
37
 
25
38
  async def test_errors_and_session_cookies_are_never_cached_publicly(self):
26
39
  app = Stk(__name__, config=TestingConfig)
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