FEAT - TASKER: управление Codex Agent API через Gateway proxy

This commit is contained in:
DCCONSTRUCTIONS
2026-05-14 21:11:45 +03:00
parent 97566faba3
commit 3b8e0ea594
9 changed files with 728 additions and 1 deletions
@@ -0,0 +1,54 @@
# Copyright (c) 2023-present Plane Software, Inc. and contributors
# SPDX-License-Identifier: AGPL-3.0-only
# See the LICENSE file for details.
from django.urls import path
from plane.app.views import (
CodexAgentDetailEndpoint,
CodexAgentGrantListEndpoint,
CodexAgentListEndpoint,
CodexAgentRevokeEndpoint,
CodexAgentSetupEndpoint,
CodexAgentTokenListEndpoint,
CodexAgentTokenRevokeEndpoint,
)
urlpatterns = [
path(
"workspaces/<str:slug>/codex-agent-api/agents/",
CodexAgentListEndpoint.as_view(),
name="codex-agent-api-agents",
),
path(
"workspaces/<str:slug>/codex-agent-api/agents/<uuid:agent_id>/",
CodexAgentDetailEndpoint.as_view(),
name="codex-agent-api-agent-detail",
),
path(
"workspaces/<str:slug>/codex-agent-api/agents/<uuid:agent_id>/revoke/",
CodexAgentRevokeEndpoint.as_view(),
name="codex-agent-api-agent-revoke",
),
path(
"workspaces/<str:slug>/codex-agent-api/agents/<uuid:agent_id>/grants/",
CodexAgentGrantListEndpoint.as_view(),
name="codex-agent-api-agent-grants",
),
path(
"workspaces/<str:slug>/codex-agent-api/agents/<uuid:agent_id>/tokens/",
CodexAgentTokenListEndpoint.as_view(),
name="codex-agent-api-agent-tokens",
),
path(
"workspaces/<str:slug>/codex-agent-api/agents/<uuid:agent_id>/tokens/<uuid:token_id>/revoke/",
CodexAgentTokenRevokeEndpoint.as_view(),
name="codex-agent-api-agent-token-revoke",
),
path(
"workspaces/<str:slug>/codex-agent-api/agents/<uuid:agent_id>/setup/",
CodexAgentSetupEndpoint.as_view(),
name="codex-agent-api-agent-setup",
),
]