stkit 17.4.0__tar.gz → 17.4.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 (243) hide show
  1. {stkit-17.4.0 → stkit-17.4.2}/CHANGELOG.md +14 -0
  2. {stkit-17.4.0 → stkit-17.4.2}/PKG-INFO +1 -1
  3. {stkit-17.4.0 → stkit-17.4.2}/examples/minimal/uv.lock +1 -1
  4. {stkit-17.4.0 → stkit-17.4.2}/pyproject.toml +1 -1
  5. {stkit-17.4.0 → stkit-17.4.2}/stk/user/models.py +6 -10
  6. {stkit-17.4.0 → stkit-17.4.2}/stk/websocket.py +12 -6
  7. stkit-17.4.2/tests/test_model_names.py +70 -0
  8. {stkit-17.4.0 → stkit-17.4.2}/.gitignore +0 -0
  9. {stkit-17.4.0 → stkit-17.4.2}/LICENSE +0 -0
  10. {stkit-17.4.0 → stkit-17.4.2}/README.md +0 -0
  11. {stkit-17.4.0 → stkit-17.4.2}/SECURITY.md +0 -0
  12. {stkit-17.4.0 → stkit-17.4.2}/examples/minimal/.env-sample +0 -0
  13. {stkit-17.4.0 → stkit-17.4.2}/examples/minimal/.gitignore +0 -0
  14. {stkit-17.4.0 → stkit-17.4.2}/examples/minimal/README.md +0 -0
  15. {stkit-17.4.0 → stkit-17.4.2}/examples/minimal/minimal/__init__.py +0 -0
  16. {stkit-17.4.0 → stkit-17.4.2}/examples/minimal/minimal/app.py +0 -0
  17. {stkit-17.4.0 → stkit-17.4.2}/examples/minimal/minimal/migrations/364232ae77d5_add_note.py +0 -0
  18. {stkit-17.4.0 → stkit-17.4.2}/examples/minimal/minimal/note/__init__.py +0 -0
  19. {stkit-17.4.0 → stkit-17.4.2}/examples/minimal/minimal/note/models.py +0 -0
  20. {stkit-17.4.0 → stkit-17.4.2}/examples/minimal/minimal/note/templates/note/index.html +0 -0
  21. {stkit-17.4.0 → stkit-17.4.2}/examples/minimal/minimal/note/views.py +0 -0
  22. {stkit-17.4.0 → stkit-17.4.2}/examples/minimal/minimal/settings.py +0 -0
  23. {stkit-17.4.0 → stkit-17.4.2}/examples/minimal/minimal/templates/layout.html +0 -0
  24. {stkit-17.4.0 → stkit-17.4.2}/examples/minimal/pyproject.toml +0 -0
  25. {stkit-17.4.0 → stkit-17.4.2}/examples/minimal/tests/__init__.py +0 -0
  26. {stkit-17.4.0 → stkit-17.4.2}/examples/minimal/tests/test_app.py +0 -0
  27. {stkit-17.4.0 → stkit-17.4.2}/stk/__init__.py +0 -0
  28. {stkit-17.4.0 → stkit-17.4.2}/stk/__main__.py +0 -0
  29. {stkit-17.4.0 → stkit-17.4.2}/stk/agent_login.py +0 -0
  30. {stkit-17.4.0 → stkit-17.4.2}/stk/app.py +0 -0
  31. {stkit-17.4.0 → stkit-17.4.2}/stk/checks.py +0 -0
  32. {stkit-17.4.0 → stkit-17.4.2}/stk/cli/__init__.py +0 -0
  33. {stkit-17.4.0 → stkit-17.4.2}/stk/cli/agent.py +0 -0
  34. {stkit-17.4.0 → stkit-17.4.2}/stk/cli/base.py +0 -0
  35. {stkit-17.4.0 → stkit-17.4.2}/stk/cli/copy_rules.py +0 -0
  36. {stkit-17.4.0 → stkit-17.4.2}/stk/cli/database.py +0 -0
  37. {stkit-17.4.0 → stkit-17.4.2}/stk/cli/develop.py +0 -0
  38. {stkit-17.4.0 → stkit-17.4.2}/stk/cli/doctor.py +0 -0
  39. {stkit-17.4.0 → stkit-17.4.2}/stk/cli/main.py +0 -0
  40. {stkit-17.4.0 → stkit-17.4.2}/stk/cli/reports.py +0 -0
  41. {stkit-17.4.0 → stkit-17.4.2}/stk/cli/smoke.py +0 -0
  42. {stkit-17.4.0 → stkit-17.4.2}/stk/cli/users.py +0 -0
  43. {stkit-17.4.0 → stkit-17.4.2}/stk/cli/watch.py +0 -0
  44. {stkit-17.4.0 → stkit-17.4.2}/stk/extensions.py +0 -0
  45. {stkit-17.4.0 → stkit-17.4.2}/stk/files/__init__.py +0 -0
  46. {stkit-17.4.0 → stkit-17.4.2}/stk/files/models.py +0 -0
  47. {stkit-17.4.0 → stkit-17.4.2}/stk/files/store.py +0 -0
  48. {stkit-17.4.0 → stkit-17.4.2}/stk/files/views.py +0 -0
  49. {stkit-17.4.0 → stkit-17.4.2}/stk/mcp/__init__.py +0 -0
  50. {stkit-17.4.0 → stkit-17.4.2}/stk/mcp/models.py +0 -0
  51. {stkit-17.4.0 → stkit-17.4.2}/stk/mcp/server.py +0 -0
  52. {stkit-17.4.0 → stkit-17.4.2}/stk/mcp/views.py +0 -0
  53. {stkit-17.4.0 → stkit-17.4.2}/stk/migrations/__init__.py +0 -0
  54. {stkit-17.4.0 → stkit-17.4.2}/stk/migrations/env.py +0 -0
  55. {stkit-17.4.0 → stkit-17.4.2}/stk/migrations/script.py.mako +0 -0
  56. {stkit-17.4.0 → stkit-17.4.2}/stk/migrations/versions/stk_0001_initial_schema.py +0 -0
  57. {stkit-17.4.0 → stkit-17.4.2}/stk/migrations/versions/stk_0002_jobs.py +0 -0
  58. {stkit-17.4.0 → stkit-17.4.2}/stk/migrations/versions/stk_0003_files.py +0 -0
  59. {stkit-17.4.0 → stkit-17.4.2}/stk/migrations/versions/stk_0004_notifications.py +0 -0
  60. {stkit-17.4.0 → stkit-17.4.2}/stk/migrations/versions/stk_0005_mcp_tokens.py +0 -0
  61. {stkit-17.4.0 → stkit-17.4.2}/stk/migrations/versions/stk_0006_stk_mcp_token.py +0 -0
  62. {stkit-17.4.0 → stkit-17.4.2}/stk/migrations/versions/stk_0007_confirm_existing_users.py +0 -0
  63. {stkit-17.4.0 → stkit-17.4.2}/stk/migrations/versions/stk_0008_stk_message.py +0 -0
  64. {stkit-17.4.0 → stkit-17.4.2}/stk/notification/__init__.py +0 -0
  65. {stkit-17.4.0 → stkit-17.4.2}/stk/notification/models.py +0 -0
  66. {stkit-17.4.0 → stkit-17.4.2}/stk/notification/views.py +0 -0
  67. {stkit-17.4.0 → stkit-17.4.2}/stk/portal/views.py +0 -0
  68. {stkit-17.4.0 → stkit-17.4.2}/stk/public/__init__.py +0 -0
  69. {stkit-17.4.0 → stkit-17.4.2}/stk/public/models.py +0 -0
  70. {stkit-17.4.0 → stkit-17.4.2}/stk/public/views.py +0 -0
  71. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/__init__.py +0 -0
  72. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/CLAUDE.md +0 -0
  73. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/Dockerfile +0 -0
  74. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/README.md +0 -0
  75. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/__app__/__init__.py +0 -0
  76. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/__app__/app.py +0 -0
  77. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/__app__/settings.py +0 -0
  78. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/claude/skills/stk-api/SKILL.md +0 -0
  79. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/claude/skills/stk-blueprint/SKILL.md +0 -0
  80. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/claude/skills/stk-deploy/SKILL.md +0 -0
  81. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/claude/skills/stk-lessons/SKILL.md +0 -0
  82. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/claude/skills/stk-migrate/SKILL.md +0 -0
  83. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/docker-compose.yml +0 -0
  84. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/dockerignore +0 -0
  85. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/env-sample +0 -0
  86. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/github/workflows/checks.yml +0 -0
  87. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/gitignore +0 -0
  88. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/nginx/nginx.conf +0 -0
  89. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/nginx/stk.conf +0 -0
  90. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/postgres/init-db.sh +0 -0
  91. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/pyproject.toml +0 -0
  92. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/tests/__init__.py +0 -0
  93. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/app/tests/test_app.py +0 -0
  94. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/generator.py +0 -0
  95. {stkit-17.4.0 → stkit-17.4.2}/stk/scaffold/templates.py +0 -0
  96. {stkit-17.4.0 → stkit-17.4.2}/stk/security.py +0 -0
  97. {stkit-17.4.0 → stkit-17.4.2}/stk/settings.py +0 -0
  98. {stkit-17.4.0 → stkit-17.4.2}/stk/shell.py +0 -0
  99. {stkit-17.4.0 → stkit-17.4.2}/stk/static/VERSIONS.txt +0 -0
  100. {stkit-17.4.0 → stkit-17.4.2}/stk/static/css/app.css +0 -0
  101. {stkit-17.4.0 → stkit-17.4.2}/stk/static/css/layout.css +0 -0
  102. {stkit-17.4.0 → stkit-17.4.2}/stk/static/css/vuetify.min.css +0 -0
  103. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.animals.woff2 +0 -0
  104. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.arrows-1.woff2 +0 -0
  105. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.arrows-2.woff2 +0 -0
  106. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.badges.woff2 +0 -0
  107. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.brand-1.woff2 +0 -0
  108. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.brand-2.woff2 +0 -0
  109. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.buildings.woff2 +0 -0
  110. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.charts.woff2 +0 -0
  111. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.communication.woff2 +0 -0
  112. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.computers.woff2 +0 -0
  113. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.core.woff2 +0 -0
  114. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.currencies.woff2 +0 -0
  115. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.database.woff2 +0 -0
  116. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.design-1.woff2 +0 -0
  117. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.design-2.woff2 +0 -0
  118. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.development.woff2 +0 -0
  119. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.devices-1.woff2 +0 -0
  120. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.devices-2.woff2 +0 -0
  121. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.document.woff2 +0 -0
  122. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.e-commerce.woff2 +0 -0
  123. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.electrical.woff2 +0 -0
  124. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.extensions.woff2 +0 -0
  125. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.food.woff2 +0 -0
  126. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.games.woff2 +0 -0
  127. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.gender.woff2 +0 -0
  128. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.gestures.woff2 +0 -0
  129. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.health.woff2 +0 -0
  130. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.laundry.woff2 +0 -0
  131. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.letters.woff2 +0 -0
  132. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.logic.woff2 +0 -0
  133. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.map.woff2 +0 -0
  134. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.math.woff2 +0 -0
  135. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.media.woff2 +0 -0
  136. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.mood.woff2 +0 -0
  137. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.nature.woff2 +0 -0
  138. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.numbers.woff2 +0 -0
  139. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.photography.woff2 +0 -0
  140. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.shapes.woff2 +0 -0
  141. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.sport.woff2 +0 -0
  142. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.symbols.woff2 +0 -0
  143. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.system-1.woff2 +0 -0
  144. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.system-2.woff2 +0 -0
  145. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.system-3.woff2 +0 -0
  146. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.text.woff2 +0 -0
  147. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.vehicles.woff2 +0 -0
  148. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.version-control.woff2 +0 -0
  149. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.weather.woff2 +0 -0
  150. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/fonts/tabler-icons.zodiac.woff2 +0 -0
  151. {stkit-17.4.0 → stkit-17.4.2}/stk/static/icons/tabler-icons.min.css +0 -0
  152. {stkit-17.4.0 → stkit-17.4.2}/stk/static/img/auth-bg.webp +0 -0
  153. {stkit-17.4.0 → stkit-17.4.2}/stk/static/img/favicon.ico +0 -0
  154. {stkit-17.4.0 → stkit-17.4.2}/stk/static/img/stk.svg +0 -0
  155. {stkit-17.4.0 → stkit-17.4.2}/stk/static/js/axios.min.js +0 -0
  156. {stkit-17.4.0 → stkit-17.4.2}/stk/static/js/components/NotificationDropdown.js +0 -0
  157. {stkit-17.4.0 → stkit-17.4.2}/stk/static/js/components/ThemeSwitcher.js +0 -0
  158. {stkit-17.4.0 → stkit-17.4.2}/stk/static/js/components/TransitionExpand.js +0 -0
  159. {stkit-17.4.0 → stkit-17.4.2}/stk/static/js/components/VerticalNavGroup.js +0 -0
  160. {stkit-17.4.0 → stkit-17.4.2}/stk/static/js/components/VerticalNavLink.js +0 -0
  161. {stkit-17.4.0 → stkit-17.4.2}/stk/static/js/components/VerticalNavSectionTitle.js +0 -0
  162. {stkit-17.4.0 → stkit-17.4.2}/stk/static/js/components/index.js +0 -0
  163. {stkit-17.4.0 → stkit-17.4.2}/stk/static/js/config.js +0 -0
  164. {stkit-17.4.0 → stkit-17.4.2}/stk/static/js/vue.min.js +0 -0
  165. {stkit-17.4.0 → stkit-17.4.2}/stk/static/js/vuetify.min.js +0 -0
  166. {stkit-17.4.0 → stkit-17.4.2}/stk/static/robots.txt +0 -0
  167. {stkit-17.4.0 → stkit-17.4.2}/stk/tasks/__init__.py +0 -0
  168. {stkit-17.4.0 → stkit-17.4.2}/stk/tasks/models.py +0 -0
  169. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/401.html +0 -0
  170. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/404.html +0 -0
  171. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/500.html +0 -0
  172. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/_brand.html +0 -0
  173. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/auth_layout.html +0 -0
  174. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/cms/activities.html +0 -0
  175. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/cms/jobs.html +0 -0
  176. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/cms/roles.html +0 -0
  177. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/cms/users.html +0 -0
  178. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/dashboard.html +0 -0
  179. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/index.html +0 -0
  180. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/layout.html +0 -0
  181. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/login-layout.html +0 -0
  182. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/mcp/tokens.html +0 -0
  183. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/_macros.html +0 -0
  184. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/_messages.html +0 -0
  185. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/change_password.html +0 -0
  186. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/confirm_email.html +0 -0
  187. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/email/change_notice.html +0 -0
  188. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/email/change_notice.txt +0 -0
  189. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/email/confirmation_instructions.html +0 -0
  190. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/email/confirmation_instructions.txt +0 -0
  191. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/email/login_instructions.html +0 -0
  192. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/email/login_instructions.txt +0 -0
  193. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/email/reset_instructions.html +0 -0
  194. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/email/reset_instructions.txt +0 -0
  195. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/email/reset_notice.html +0 -0
  196. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/email/reset_notice.txt +0 -0
  197. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/email/welcome.html +0 -0
  198. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/email/welcome.txt +0 -0
  199. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/forgot_password.html +0 -0
  200. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/login_user.html +0 -0
  201. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/mf_recovery.html +0 -0
  202. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/mf_recovery_codes.html +0 -0
  203. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/register_user.html +0 -0
  204. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/reset_password.html +0 -0
  205. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/send_confirmation.html +0 -0
  206. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/send_login.html +0 -0
  207. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/two_factor_select.html +0 -0
  208. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/two_factor_setup.html +0 -0
  209. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/two_factor_verify_code.html +0 -0
  210. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/wan_register.html +0 -0
  211. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/wan_signin.html +0 -0
  212. {stkit-17.4.0 → stkit-17.4.2}/stk/templates/security/wan_verify.html +0 -0
  213. {stkit-17.4.0 → stkit-17.4.2}/stk/user/__init__.py +0 -0
  214. {stkit-17.4.0 → stkit-17.4.2}/stk/user/forms.py +0 -0
  215. {stkit-17.4.0 → stkit-17.4.2}/stk/user/views.py +0 -0
  216. {stkit-17.4.0 → stkit-17.4.2}/stk/utils/email.py +0 -0
  217. {stkit-17.4.0 → stkit-17.4.2}/stk/utils/netguard.py +0 -0
  218. {stkit-17.4.0 → stkit-17.4.2}/stk/utils/ratelimit.py +0 -0
  219. {stkit-17.4.0 → stkit-17.4.2}/tests/test_agent_operability.py +0 -0
  220. {stkit-17.4.0 → stkit-17.4.2}/tests/test_app_index.py +0 -0
  221. {stkit-17.4.0 → stkit-17.4.2}/tests/test_branding.py +0 -0
  222. {stkit-17.4.0 → stkit-17.4.2}/tests/test_builder_ux.py +0 -0
  223. {stkit-17.4.0 → stkit-17.4.2}/tests/test_cli.py +0 -0
  224. {stkit-17.4.0 → stkit-17.4.2}/tests/test_composition.py +0 -0
  225. {stkit-17.4.0 → stkit-17.4.2}/tests/test_confirm_migration.py +0 -0
  226. {stkit-17.4.0 → stkit-17.4.2}/tests/test_copy_rules.py +0 -0
  227. {stkit-17.4.0 → stkit-17.4.2}/tests/test_csrf_exempt.py +0 -0
  228. {stkit-17.4.0 → stkit-17.4.2}/tests/test_error_handler.py +0 -0
  229. {stkit-17.4.0 → stkit-17.4.2}/tests/test_files.py +0 -0
  230. {stkit-17.4.0 → stkit-17.4.2}/tests/test_jobs.py +0 -0
  231. {stkit-17.4.0 → stkit-17.4.2}/tests/test_mcp.py +0 -0
  232. {stkit-17.4.0 → stkit-17.4.2}/tests/test_mcp_migration.py +0 -0
  233. {stkit-17.4.0 → stkit-17.4.2}/tests/test_migration_drift.py +0 -0
  234. {stkit-17.4.0 → stkit-17.4.2}/tests/test_netguard.py +0 -0
  235. {stkit-17.4.0 → stkit-17.4.2}/tests/test_notifications.py +0 -0
  236. {stkit-17.4.0 → stkit-17.4.2}/tests/test_production_security.py +0 -0
  237. {stkit-17.4.0 → stkit-17.4.2}/tests/test_revision_imports.py +0 -0
  238. {stkit-17.4.0 → stkit-17.4.2}/tests/test_route_collisions.py +0 -0
  239. {stkit-17.4.0 → stkit-17.4.2}/tests/test_scaffolder.py +0 -0
  240. {stkit-17.4.0 → stkit-17.4.2}/tests/test_security_compatibility.py +0 -0
  241. {stkit-17.4.0 → stkit-17.4.2}/tests/test_shell.py +0 -0
  242. {stkit-17.4.0 → stkit-17.4.2}/tests/test_smoke_pages.py +0 -0
  243. {stkit-17.4.0 → stkit-17.4.2}/tests/test_static_versioning.py +0 -0
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## v17.4.2 (2026-11-02)
4
+
5
+ No migration required.
6
+
7
+ - An app model named `User`, `Role`, `WebAuthn` or another core name no longer breaks stk's own mappers: core refers to its models by class, never by string.
8
+ - New core models carry an `Stk` prefix, enforced by a test in stk, so a release can no longer add a generic name the way 17.4.0 added `Message`.
9
+ - Models: if your app reuses a core class name (`Activity`, `File`, `Job`, `McpToken`, `Notification`, `OAuth`, `RateLimitWindow`, `Session`, `WebAuthn`), reference yours by class, not by string.
10
+
11
+ ## v17.4.1 (2026-11-02)
12
+
13
+ No migration required.
14
+
15
+ - The model behind `stk_message` is now `StkMessage`. In 17.4.0 it was `Message`, which broke every mapper in an app that has its own `Message` model referenced by string, as in `relationship("Message")` ("Multiple classes found for path"). Apps that worked around it by passing the class can keep doing so.
16
+
3
17
  ## v17.4.0 (2026-11-02)
4
18
 
5
19
  Run `uv run stk db upgrade`: migration `stk_0008` adds the `stk_message` table.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: stkit
3
- Version: 17.4.0
3
+ Version: 17.4.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
@@ -1976,7 +1976,7 @@ asyncio = [
1976
1976
 
1977
1977
  [[package]]
1978
1978
  name = "stkit"
1979
- version = "17.4.0"
1979
+ version = "17.4.2"
1980
1980
  source = { editable = "../../" }
1981
1981
  dependencies = [
1982
1982
  { name = "aiosmtplib" },
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "stkit"
3
- version = "17.4.0"
3
+ version = "17.4.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"}
@@ -93,9 +93,9 @@ class User(Base, UserMixin):
93
93
  """Match an email regardless of case, including rows stored before 17.2.1."""
94
94
  return func.lower(cls.email) == normalize_email(email)
95
95
 
96
- roles = relationship(
97
- "Role", secondary=roles_users, backref="users", lazy="selectin"
98
- )
96
+ # Core refers to its models by class: an app model with the same name would
97
+ # make a string ambiguous. WebAuthn is defined below, hence the lambda.
98
+ roles = relationship(Role, secondary=roles_users, backref="users", lazy="selectin")
99
99
 
100
100
  # account lockout
101
101
  failed_login_count = Column(Integer, default=0, nullable=False)
@@ -118,7 +118,7 @@ class User(Base, UserMixin):
118
118
  @declared_attr
119
119
  def webauthn(cls):
120
120
  return relationship(
121
- "WebAuthn", backref="users", cascade="all, delete", lazy="selectin"
121
+ lambda: WebAuthn, backref="users", cascade="all, delete", lazy="selectin"
122
122
  )
123
123
 
124
124
  @property
@@ -230,11 +230,7 @@ class OAuth(Base):
230
230
  token = Column(JSON, nullable=True)
231
231
  created_at = Column(DateTime, default=datetime.now, nullable=False)
232
232
  user_id = Column(Integer, ForeignKey("user.id"), nullable=False)
233
- user = relationship(
234
- "User",
235
- backref="oauth_accounts",
236
- lazy="selectin",
237
- )
233
+ user = relationship(User, backref="oauth_accounts", lazy="selectin")
238
234
 
239
235
  __table_args__ = (
240
236
  UniqueConstraint("provider", "provider_user_id", name="uq_oauth_provider_user"),
@@ -262,7 +258,7 @@ class Session(Base):
262
258
 
263
259
  id = Column(Integer, primary_key=True)
264
260
  user_id = Column(Integer, ForeignKey("user.id"), nullable=False, index=True)
265
- user = relationship("User", backref="sessions", lazy="selectin")
261
+ user = relationship(User, backref="sessions", lazy="selectin")
266
262
 
267
263
  session_token = Column(String(255), unique=True, nullable=False)
268
264
  last_active = Column(DateTime, default=datetime.now)
@@ -32,7 +32,7 @@ _clients: dict[str, set[asyncio.Queue]] = {}
32
32
  _poller: asyncio.Task | None = None
33
33
 
34
34
 
35
- class Message(Base):
35
+ class StkMessage(Base):
36
36
  __tablename__ = "stk_message"
37
37
 
38
38
  id = Column(Integer, primary_key=True)
@@ -51,7 +51,7 @@ async def broadcast(message: dict, user_id, session=None):
51
51
  With `session`, the message joins that transaction: it goes out at commit and
52
52
  not at all on rollback. Without it, it is committed on its own session.
53
53
  """
54
- row = Message(user_id=int(user_id), payload=json.dumps(message))
54
+ row = StkMessage(user_id=int(user_id), payload=json.dumps(message))
55
55
  if session is not None:
56
56
  session.add(row)
57
57
  return
@@ -75,7 +75,9 @@ async def _recent_ids(db):
75
75
  since = datetime.now() - WINDOW
76
76
  return (
77
77
  await db.execute(
78
- select(Message.id, Message.user_id).where(Message.created_at > since)
78
+ select(StkMessage.id, StkMessage.user_id).where(
79
+ StkMessage.created_at > since
80
+ )
79
81
  )
80
82
  ).all()
81
83
 
@@ -99,12 +101,16 @@ async def _poll():
99
101
  wanted = [row.id for row in fresh if str(row.user_id) in _clients]
100
102
  rows = []
101
103
  if wanted:
102
- query = select(Message.user_id, Message.payload)
103
- query = query.where(Message.id.in_(wanted)).order_by(Message.id)
104
+ query = select(StkMessage.user_id, StkMessage.payload)
105
+ query = query.where(StkMessage.id.in_(wanted)).order_by(
106
+ StkMessage.id
107
+ )
104
108
  rows = (await db.execute(query)).all()
105
109
  if now - trimmed > RETENTION.total_seconds():
106
110
  cutoff = datetime.now() - RETENTION
107
- await db.execute(delete(Message).where(Message.created_at < cutoff))
111
+ await db.execute(
112
+ delete(StkMessage).where(StkMessage.created_at < cutoff)
113
+ )
108
114
  await db.commit()
109
115
  trimmed = now
110
116
  for row in rows:
@@ -0,0 +1,70 @@
1
+ """Apps share stk's declarative Base, so class names share one string registry."""
2
+
3
+ import subprocess
4
+ import sys
5
+ import unittest
6
+
7
+ # Names apps are meant to reference, by string included.
8
+ IDENTITY = {"User", "Role"}
9
+ # Generic names that predate the Stk prefix rule. Never add to this list.
10
+ LEGACY = {
11
+ "Activity",
12
+ "File",
13
+ "Job",
14
+ "McpToken",
15
+ "Notification",
16
+ "OAuth",
17
+ "RateLimitWindow",
18
+ "Session",
19
+ "WebAuthn",
20
+ }
21
+
22
+
23
+ class ModelNameTests(unittest.TestCase):
24
+ def test_new_core_models_carry_the_stk_prefix(self):
25
+ """A generic core name breaks every app with a model of that name."""
26
+ import stk.files.models # noqa: F401
27
+ import stk.mcp.models # noqa: F401
28
+ import stk.notification.models # noqa: F401
29
+ import stk.tasks.models # noqa: F401
30
+ import stk.user.models # noqa: F401
31
+ import stk.websocket # noqa: F401
32
+ from stk.extensions import Base
33
+
34
+ core = {
35
+ mapper.class_.__name__
36
+ for mapper in Base.registry.mappers
37
+ if mapper.class_.__module__.startswith("stk.")
38
+ }
39
+ unprefixed = sorted(
40
+ name for name in core - IDENTITY - LEGACY if not name.startswith("Stk")
41
+ )
42
+ self.assertEqual(unprefixed, [], "name new core models Stk<Name>")
43
+
44
+ def test_app_models_may_reuse_core_names(self):
45
+ """Core refers to its own models by class, so app names never break it."""
46
+ script = (
47
+ "from sqlalchemy import Column, ForeignKey, Integer\n"
48
+ "from sqlalchemy.orm import configure_mappers, relationship\n"
49
+ "import stk.user.models, stk.websocket\n"
50
+ "from stk.extensions import Base\n"
51
+ "def model(name, table):\n"
52
+ " return type(name, (Base,), {'__tablename__': table,\n"
53
+ " 'id': Column(Integer, primary_key=True)})\n"
54
+ "for name in ('User', 'Role', 'WebAuthn'):\n"
55
+ " model(name, f'app_{name.lower()}')\n"
56
+ "class Message(Base):\n"
57
+ " __tablename__ = 'app_message'\n"
58
+ " id = Column(Integer, primary_key=True)\n"
59
+ " parent_id = Column(Integer, ForeignKey('app_message.id'))\n"
60
+ " replies = relationship('Message', lazy='selectin')\n"
61
+ "configure_mappers()\n"
62
+ )
63
+ result = subprocess.run(
64
+ [sys.executable, "-c", script], capture_output=True, text=True
65
+ )
66
+ self.assertEqual(result.returncode, 0, result.stderr[-500:])
67
+
68
+
69
+ if __name__ == "__main__":
70
+ unittest.main()
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