fix(agent): expose network context
Server CI/CD / docker-image (push) Successful in 16s
Server CI/CD / deploy-fallback-log (push) Has been skipped

This commit is contained in:
2026-07-08 18:41:56 +08:00
parent 5a91da0904
commit 76cf6c32bc
4 changed files with 22 additions and 2 deletions
+2
View File
@@ -20,6 +20,7 @@ class AgentAuthContextResponse(BaseModel):
role: str
is_superuser: bool
project_id: str
network: str
project_role: str
token_expires_at: str | None = None
@@ -43,6 +44,7 @@ async def get_agent_auth_context(
role=current_user.role,
is_superuser=current_user.is_superuser,
project_id=str(ctx.project_id),
network=ctx.project_code,
project_role=ctx.project_role,
token_expires_at=token_expires_at,
)