Commit Graph

11 Commits

Author SHA1 Message Date
Hugh Brown
cc50877131 refactor: rename require_admin_auth/require_admin_or_agent to require_user_auth/require_user_or_agent
These dependencies check actor type (human user vs agent), not admin
privilege. The old names were misleading and could cause authorization
mistakes when wiring new endpoints. Renamed across all 10 consumer
files along with their local ADMIN_AUTH_DEP / ADMIN_OR_AGENT_DEP
aliases.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 23:35:10 +05:30
Hugh Brown
c7692e30d3 security: rename misleading require_admin to require_user_actor
The function only checked that the caller was an authenticated user
(not an agent) but its name implied privilege enforcement. Rename to
require_user_actor and add docstring clarifying the distinction between
actor-type checks and privilege/role checks (require_org_admin, is_super_admin).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 23:35:10 +05:30
Abhimanyu Saharan
40dcf50f4b feat(skills): add metadata and branch fields to skill packs and marketplace skills 2026-02-14 12:26:45 +05:30
Abhimanyu Saharan
e9e0d6960a docs(backend): clarify auth/error-handling via docstrings 2026-02-12 08:27:31 +00:00
Abhimanyu Saharan
7706943209 refactor: enhance docstrings for clarity and consistency across multiple files 2026-02-09 16:23:41 +05:30
Abhimanyu Saharan
228b99bc9b refactor: replace SQLModel with QueryModel in various models and update query methods 2026-02-09 02:04:14 +05:30
Abhimanyu Saharan
60744ddfac refactor: clean up code formatting and improve readability across multiple files 2026-02-08 21:17:26 +05:30
Abhimanyu Saharan
e03125a382 feat: add organization-related models and update schemas for organization management 2026-02-08 21:16:26 +05:30
Abhimanyu Saharan
d86fe0a7a6 feat: add validation for minimum length on various fields and update type definitions 2026-02-06 16:12:04 +05:30
Abhimanyu Saharan
a33c539860 feat: enhance agent management with session handling and UI improvements 2026-02-04 14:58:14 +05:30
Abhimanyu Saharan
b24e3e1dcd ref(backend): Centralize deps and add mypy
Extract reusable API dependencies and activity logging helpers.\nAdd mypy configuration and dev dependency for type checking.\n\nCo-Authored-By: Claude <noreply@anthropic.com>
2026-02-04 03:57:19 +05:30