mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-20 03:02:58 +02:00
Compare commits
24 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5a64d08a08 | |||
| 492122ad0c | |||
| 73568c0199 | |||
| 966fcba885 | |||
| 48a749a0df | |||
| efd19df047 | |||
| 8ca8396fa2 | |||
| e610ed0d38 | |||
| 3e283619f0 | |||
| bf99d8f99f | |||
| 987bdf2012 | |||
| b1ae8d78da | |||
| caf3bcd87f | |||
| c71a1f08ee | |||
| 37ed82cad1 | |||
| ef051c2f8c | |||
| 5c6da72ec1 | |||
| acd64a049f | |||
| 967deaff88 | |||
| ef8985b0af | |||
| 1f80bdd361 | |||
| 437ec50019 | |||
| a7bbafd2f0 | |||
| 6824ec6e3e |
@@ -77,7 +77,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
- name: Log in to Docker Hub
|
||||||
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
|
uses: docker/login-action@abd2ef45e78c5afb21d64d4ca52ee8550d9572c7 # v4.5.1
|
||||||
with:
|
with:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
@@ -149,7 +149,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
- name: Log in to Docker Hub
|
||||||
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
|
uses: docker/login-action@abd2ef45e78c5afb21d64d4ca52ee8550d9572c7 # v4.5.1
|
||||||
with:
|
with:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
@@ -204,7 +204,7 @@ jobs:
|
|||||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
- name: Log in to Docker Hub
|
||||||
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
|
uses: docker/login-action@abd2ef45e78c5afb21d64d4ca52ee8550d9572c7 # v4.5.1
|
||||||
with:
|
with:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
@@ -407,7 +407,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry (for cosign)
|
- name: Login to GitHub Container Registry (for cosign)
|
||||||
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
|
uses: docker/login-action@abd2ef45e78c5afb21d64d4ca52ee8550d9572c7 # v4.5.1
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ jobs:
|
|||||||
stale:
|
stale:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
|
- uses: actions/stale@1e223db275d687790206a7acac4d1a11bd6fe629 # v10.4.0
|
||||||
with:
|
with:
|
||||||
days-before-stale: 14
|
days-before-stale: 14
|
||||||
days-before-close: 14
|
days-before-close: 14
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM node:26.7.0-alpine
|
FROM node:24.18.1-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|||||||
+3
-1
@@ -1785,7 +1785,6 @@
|
|||||||
"aiClientConfigDescriptionClaude": "Инструментът за кодиране на Anthropic за терминала.",
|
"aiClientConfigDescriptionClaude": "Инструментът за кодиране на Anthropic за терминала.",
|
||||||
"aiClientConfigDescriptionCodex": "Инструментът за кодиране на OpenAI за терминала.",
|
"aiClientConfigDescriptionCodex": "Инструментът за кодиране на OpenAI за терминала.",
|
||||||
"aiClientConfigDescriptionOpencode": "Отворен кодиращ агент за терминал.",
|
"aiClientConfigDescriptionOpencode": "Отворен кодиращ агент за терминал.",
|
||||||
"aiClientConfigDescriptionCursor": "AI редактор на код, базиран на VS Code.",
|
|
||||||
"aiClientConfigSetup": "Настройка",
|
"aiClientConfigSetup": "Настройка",
|
||||||
"aiClientConfigTabCli": "Автоматичен (CLI)",
|
"aiClientConfigTabCli": "Автоматичен (CLI)",
|
||||||
"aiClientConfigTabManual": "Ръчна конфигурация",
|
"aiClientConfigTabManual": "Ръчна конфигурация",
|
||||||
@@ -3548,6 +3547,9 @@
|
|||||||
"sidebarLogsAction": "Дневници на действията",
|
"sidebarLogsAction": "Дневници на действията",
|
||||||
"logRetention": "Задържане на логове",
|
"logRetention": "Задържане на логове",
|
||||||
"logRetentionDescription": "Управлявайте времето за задържане на различни видове логове за тази организация или ги деактивирайте",
|
"logRetentionDescription": "Управлявайте времето за задържане на различни видове логове за тази организация или ги деактивирайте",
|
||||||
|
"logRetentionDisabledWarningTitle": "Log Retention Disabled",
|
||||||
|
"logRetentionDisabledWarningDescription": "{logType} are not being retained for this organization, so new activity will not appear here. Enable retention in security settings to start collecting these logs.",
|
||||||
|
"logRetentionDisabledWarningButton": "Go to Security Settings",
|
||||||
"requestLogsDescription": "Прегледайте подробни логове на заявки за ресурси в тази организация",
|
"requestLogsDescription": "Прегледайте подробни логове на заявки за ресурси в тази организация",
|
||||||
"aiSessionLogs": "Журнали на AI Портал Сесиите",
|
"aiSessionLogs": "Журнали на AI Портал Сесиите",
|
||||||
"aiSessionLogsDescription": "Прегледайте подканянета и транскрипции на отговори за запитванията към AI портал в тази организация",
|
"aiSessionLogsDescription": "Прегледайте подканянета и транскрипции на отговори за запитванията към AI портал в тази организация",
|
||||||
|
|||||||
+3
-1
@@ -1785,7 +1785,6 @@
|
|||||||
"aiClientConfigDescriptionClaude": "Antropický agentický kódovací nástroj pro terminál.",
|
"aiClientConfigDescriptionClaude": "Antropický agentický kódovací nástroj pro terminál.",
|
||||||
"aiClientConfigDescriptionCodex": "Agentický kódovací nástroj OpenAI pro terminál.",
|
"aiClientConfigDescriptionCodex": "Agentický kódovací nástroj OpenAI pro terminál.",
|
||||||
"aiClientConfigDescriptionOpencode": "Open source terminální kódovací agent.",
|
"aiClientConfigDescriptionOpencode": "Open source terminální kódovací agent.",
|
||||||
"aiClientConfigDescriptionCursor": "AI editor kódu postavený na VS Code.",
|
|
||||||
"aiClientConfigSetup": "Nastavení",
|
"aiClientConfigSetup": "Nastavení",
|
||||||
"aiClientConfigTabCli": "Automatické (CLI)",
|
"aiClientConfigTabCli": "Automatické (CLI)",
|
||||||
"aiClientConfigTabManual": "Ruční konfigurace",
|
"aiClientConfigTabManual": "Ruční konfigurace",
|
||||||
@@ -3548,6 +3547,9 @@
|
|||||||
"sidebarLogsAction": "Záznamy akcí",
|
"sidebarLogsAction": "Záznamy akcí",
|
||||||
"logRetention": "Zaznamenávání záznamu",
|
"logRetention": "Zaznamenávání záznamu",
|
||||||
"logRetentionDescription": "Spravovat, jak dlouho jsou různé typy logů uloženy pro tuto organizaci nebo je zakázat",
|
"logRetentionDescription": "Spravovat, jak dlouho jsou různé typy logů uloženy pro tuto organizaci nebo je zakázat",
|
||||||
|
"logRetentionDisabledWarningTitle": "Log Retention Disabled",
|
||||||
|
"logRetentionDisabledWarningDescription": "{logType} are not being retained for this organization, so new activity will not appear here. Enable retention in security settings to start collecting these logs.",
|
||||||
|
"logRetentionDisabledWarningButton": "Go to Security Settings",
|
||||||
"requestLogsDescription": "Zobrazit podrobné protokoly požadavků pro zdroje v této organizaci",
|
"requestLogsDescription": "Zobrazit podrobné protokoly požadavků pro zdroje v této organizaci",
|
||||||
"aiSessionLogs": "Protokoly AI Gateway Session",
|
"aiSessionLogs": "Protokoly AI Gateway Session",
|
||||||
"aiSessionLogsDescription": "Zobrazit uložené výzvy a odpovědi na žádosti AI brány v této organizaci",
|
"aiSessionLogsDescription": "Zobrazit uložené výzvy a odpovědi na žádosti AI brány v této organizaci",
|
||||||
|
|||||||
+3
-1
@@ -1785,7 +1785,6 @@
|
|||||||
"aiClientConfigDescriptionClaude": "Anthropics agentikodningsværktøj til terminalen.",
|
"aiClientConfigDescriptionClaude": "Anthropics agentikodningsværktøj til terminalen.",
|
||||||
"aiClientConfigDescriptionCodex": "OpenAIs agentikodningsværktøj til terminalen.",
|
"aiClientConfigDescriptionCodex": "OpenAIs agentikodningsværktøj til terminalen.",
|
||||||
"aiClientConfigDescriptionOpencode": "Open source terminal kodningsagent.",
|
"aiClientConfigDescriptionOpencode": "Open source terminal kodningsagent.",
|
||||||
"aiClientConfigDescriptionCursor": "AI-kodeeditor bygget på VS Code.",
|
|
||||||
"aiClientConfigSetup": "Opsætning",
|
"aiClientConfigSetup": "Opsætning",
|
||||||
"aiClientConfigTabCli": "Automatisk (CLI)",
|
"aiClientConfigTabCli": "Automatisk (CLI)",
|
||||||
"aiClientConfigTabManual": "Manuel Konfiguration",
|
"aiClientConfigTabManual": "Manuel Konfiguration",
|
||||||
@@ -3548,6 +3547,9 @@
|
|||||||
"sidebarLogsAction": "Handlingsloger",
|
"sidebarLogsAction": "Handlingsloger",
|
||||||
"logRetention": "Logopbevaring",
|
"logRetention": "Logopbevaring",
|
||||||
"logRetentionDescription": "Håndter hvor længe ulike typer logs beholdes for denne organisation, eller deaktivér dem",
|
"logRetentionDescription": "Håndter hvor længe ulike typer logs beholdes for denne organisation, eller deaktivér dem",
|
||||||
|
"logRetentionDisabledWarningTitle": "Log Retention Disabled",
|
||||||
|
"logRetentionDisabledWarningDescription": "{logType} are not being retained for this organization, so new activity will not appear here. Enable retention in security settings to start collecting these logs.",
|
||||||
|
"logRetentionDisabledWarningButton": "Go to Security Settings",
|
||||||
"requestLogsDescription": "Se detaljerede forespørgselslogs for ressourcer i denne organisation",
|
"requestLogsDescription": "Se detaljerede forespørgselslogs for ressourcer i denne organisation",
|
||||||
"aiSessionLogs": "AI Gateway Øktsprotokoller",
|
"aiSessionLogs": "AI Gateway Øktsprotokoller",
|
||||||
"aiSessionLogsDescription": "Se prompt og svarudskrifter for AI gateway forespørgsler i denne organisation",
|
"aiSessionLogsDescription": "Se prompt og svarudskrifter for AI gateway forespørgsler i denne organisation",
|
||||||
|
|||||||
+3
-1
@@ -1785,7 +1785,6 @@
|
|||||||
"aiClientConfigDescriptionClaude": "Agentisches Codierwerkzeug von Anthropic für das Terminal.",
|
"aiClientConfigDescriptionClaude": "Agentisches Codierwerkzeug von Anthropic für das Terminal.",
|
||||||
"aiClientConfigDescriptionCodex": "Agentisches Codierwerkzeug von OpenAI für das Terminal.",
|
"aiClientConfigDescriptionCodex": "Agentisches Codierwerkzeug von OpenAI für das Terminal.",
|
||||||
"aiClientConfigDescriptionOpencode": "Open-Source-Coding-Agent für das Terminal.",
|
"aiClientConfigDescriptionOpencode": "Open-Source-Coding-Agent für das Terminal.",
|
||||||
"aiClientConfigDescriptionCursor": "KI-Code-Editor basierend auf VS Code.",
|
|
||||||
"aiClientConfigSetup": "Einrichtung",
|
"aiClientConfigSetup": "Einrichtung",
|
||||||
"aiClientConfigTabCli": "Automatisch (CLI)",
|
"aiClientConfigTabCli": "Automatisch (CLI)",
|
||||||
"aiClientConfigTabManual": "Manuelle Konfiguration",
|
"aiClientConfigTabManual": "Manuelle Konfiguration",
|
||||||
@@ -3548,6 +3547,9 @@
|
|||||||
"sidebarLogsAction": "Aktionsprotokolle",
|
"sidebarLogsAction": "Aktionsprotokolle",
|
||||||
"logRetention": "Log-Speicherung",
|
"logRetention": "Log-Speicherung",
|
||||||
"logRetentionDescription": "Verwalten, wie lange verschiedene Logs für diese Organisation gespeichert werden oder deaktivieren",
|
"logRetentionDescription": "Verwalten, wie lange verschiedene Logs für diese Organisation gespeichert werden oder deaktivieren",
|
||||||
|
"logRetentionDisabledWarningTitle": "Log Retention Disabled",
|
||||||
|
"logRetentionDisabledWarningDescription": "{logType} are not being retained for this organization, so new activity will not appear here. Enable retention in security settings to start collecting these logs.",
|
||||||
|
"logRetentionDisabledWarningButton": "Go to Security Settings",
|
||||||
"requestLogsDescription": "Detaillierte Request-Logs für Ressourcen in dieser Organisation anzeigen",
|
"requestLogsDescription": "Detaillierte Request-Logs für Ressourcen in dieser Organisation anzeigen",
|
||||||
"aiSessionLogs": "AI-Gateway Sitzungsprotokolle",
|
"aiSessionLogs": "AI-Gateway Sitzungsprotokolle",
|
||||||
"aiSessionLogsDescription": "Zeigen Sie Aufforderungs- und Antwortprotokolle für Anfragen des KI-Gateways in dieser Organisation an",
|
"aiSessionLogsDescription": "Zeigen Sie Aufforderungs- und Antwortprotokolle für Anfragen des KI-Gateways in dieser Organisation an",
|
||||||
|
|||||||
@@ -1785,7 +1785,6 @@
|
|||||||
"aiClientConfigDescriptionClaude": "Anthropic's agentic coding tool for the terminal.",
|
"aiClientConfigDescriptionClaude": "Anthropic's agentic coding tool for the terminal.",
|
||||||
"aiClientConfigDescriptionCodex": "OpenAI's agentic coding tool for the terminal.",
|
"aiClientConfigDescriptionCodex": "OpenAI's agentic coding tool for the terminal.",
|
||||||
"aiClientConfigDescriptionOpencode": "Open source terminal coding agent.",
|
"aiClientConfigDescriptionOpencode": "Open source terminal coding agent.",
|
||||||
"aiClientConfigDescriptionCursor": "AI code editor built on VS Code.",
|
|
||||||
"aiClientConfigSetup": "Setup",
|
"aiClientConfigSetup": "Setup",
|
||||||
"aiClientConfigTabCli": "Automatic (CLI)",
|
"aiClientConfigTabCli": "Automatic (CLI)",
|
||||||
"aiClientConfigTabManual": "Manual Configuration",
|
"aiClientConfigTabManual": "Manual Configuration",
|
||||||
|
|||||||
+3
-1
@@ -1785,7 +1785,6 @@
|
|||||||
"aiClientConfigDescriptionClaude": "Herramienta de codificación agentic de Anthropic para el terminal.",
|
"aiClientConfigDescriptionClaude": "Herramienta de codificación agentic de Anthropic para el terminal.",
|
||||||
"aiClientConfigDescriptionCodex": "Herramienta de codificación agentic de OpenAI para el terminal.",
|
"aiClientConfigDescriptionCodex": "Herramienta de codificación agentic de OpenAI para el terminal.",
|
||||||
"aiClientConfigDescriptionOpencode": "Agente de codificación de terminal de código abierto.",
|
"aiClientConfigDescriptionOpencode": "Agente de codificación de terminal de código abierto.",
|
||||||
"aiClientConfigDescriptionCursor": "Editor de código AI construido sobre VS Code.",
|
|
||||||
"aiClientConfigSetup": "Configuración",
|
"aiClientConfigSetup": "Configuración",
|
||||||
"aiClientConfigTabCli": "Automático (CLI)",
|
"aiClientConfigTabCli": "Automático (CLI)",
|
||||||
"aiClientConfigTabManual": "Configuración manual",
|
"aiClientConfigTabManual": "Configuración manual",
|
||||||
@@ -3548,6 +3547,9 @@
|
|||||||
"sidebarLogsAction": "Registros de acción",
|
"sidebarLogsAction": "Registros de acción",
|
||||||
"logRetention": "Retención de Log",
|
"logRetention": "Retención de Log",
|
||||||
"logRetentionDescription": "Administrar cuánto tiempo se conservan los diferentes tipos de registros para esta organización o desactivarlos",
|
"logRetentionDescription": "Administrar cuánto tiempo se conservan los diferentes tipos de registros para esta organización o desactivarlos",
|
||||||
|
"logRetentionDisabledWarningTitle": "Log Retention Disabled",
|
||||||
|
"logRetentionDisabledWarningDescription": "{logType} are not being retained for this organization, so new activity will not appear here. Enable retention in security settings to start collecting these logs.",
|
||||||
|
"logRetentionDisabledWarningButton": "Go to Security Settings",
|
||||||
"requestLogsDescription": "Ver registros de solicitudes detallados para los recursos de esta organización",
|
"requestLogsDescription": "Ver registros de solicitudes detallados para los recursos de esta organización",
|
||||||
"aiSessionLogs": "Registros de Sesiones del Portal de IA",
|
"aiSessionLogs": "Registros de Sesiones del Portal de IA",
|
||||||
"aiSessionLogsDescription": "Ver transcripciones de solicitud y respuesta para solicitudes del portal de IA en esta organización",
|
"aiSessionLogsDescription": "Ver transcripciones de solicitud y respuesta para solicitudes del portal de IA en esta organización",
|
||||||
|
|||||||
+3
-1
@@ -1785,7 +1785,6 @@
|
|||||||
"aiClientConfigDescriptionClaude": "Outil de codage agentique d'Anthropic pour le terminal.",
|
"aiClientConfigDescriptionClaude": "Outil de codage agentique d'Anthropic pour le terminal.",
|
||||||
"aiClientConfigDescriptionCodex": "Outil de codage agentique d'OpenAI pour le terminal.",
|
"aiClientConfigDescriptionCodex": "Outil de codage agentique d'OpenAI pour le terminal.",
|
||||||
"aiClientConfigDescriptionOpencode": "Agent de codage terminal open source.",
|
"aiClientConfigDescriptionOpencode": "Agent de codage terminal open source.",
|
||||||
"aiClientConfigDescriptionCursor": "Éditeur de code IA basé sur VS Code.",
|
|
||||||
"aiClientConfigSetup": "Configuration",
|
"aiClientConfigSetup": "Configuration",
|
||||||
"aiClientConfigTabCli": "Automatique (CLI)",
|
"aiClientConfigTabCli": "Automatique (CLI)",
|
||||||
"aiClientConfigTabManual": "Configuration manuelle",
|
"aiClientConfigTabManual": "Configuration manuelle",
|
||||||
@@ -3548,6 +3547,9 @@
|
|||||||
"sidebarLogsAction": "Journaux des actions",
|
"sidebarLogsAction": "Journaux des actions",
|
||||||
"logRetention": "Journaliser la rétention",
|
"logRetention": "Journaliser la rétention",
|
||||||
"logRetentionDescription": "Gérer la durée de conservation des différents types de logs pour cette organisation ou les désactiver",
|
"logRetentionDescription": "Gérer la durée de conservation des différents types de logs pour cette organisation ou les désactiver",
|
||||||
|
"logRetentionDisabledWarningTitle": "Log Retention Disabled",
|
||||||
|
"logRetentionDisabledWarningDescription": "{logType} are not being retained for this organization, so new activity will not appear here. Enable retention in security settings to start collecting these logs.",
|
||||||
|
"logRetentionDisabledWarningButton": "Go to Security Settings",
|
||||||
"requestLogsDescription": "Voir les journaux détaillés des requêtes pour les ressources de cette organisation",
|
"requestLogsDescription": "Voir les journaux détaillés des requêtes pour les ressources de cette organisation",
|
||||||
"aiSessionLogs": "Journaux de Session du Portail AI",
|
"aiSessionLogs": "Journaux de Session du Portail AI",
|
||||||
"aiSessionLogsDescription": "Voir les transcriptions de l'invite et de la réponse pour les requêtes de portail AI dans cette organisation",
|
"aiSessionLogsDescription": "Voir les transcriptions de l'invite et de la réponse pour les requêtes de portail AI dans cette organisation",
|
||||||
|
|||||||
+3
-1
@@ -1785,7 +1785,6 @@
|
|||||||
"aiClientConfigDescriptionClaude": "Strumento di coding agente di Anthropic per il terminale.",
|
"aiClientConfigDescriptionClaude": "Strumento di coding agente di Anthropic per il terminale.",
|
||||||
"aiClientConfigDescriptionCodex": "Strumento di coding agente di OpenAI per il terminale.",
|
"aiClientConfigDescriptionCodex": "Strumento di coding agente di OpenAI per il terminale.",
|
||||||
"aiClientConfigDescriptionOpencode": "Agente di coding open source per il terminale.",
|
"aiClientConfigDescriptionOpencode": "Agente di coding open source per il terminale.",
|
||||||
"aiClientConfigDescriptionCursor": "Editor di codice AI basato su VS Code.",
|
|
||||||
"aiClientConfigSetup": "Impostazione",
|
"aiClientConfigSetup": "Impostazione",
|
||||||
"aiClientConfigTabCli": "Automatico (CLI)",
|
"aiClientConfigTabCli": "Automatico (CLI)",
|
||||||
"aiClientConfigTabManual": "Configurazione Manuale",
|
"aiClientConfigTabManual": "Configurazione Manuale",
|
||||||
@@ -3548,6 +3547,9 @@
|
|||||||
"sidebarLogsAction": "Log Azioni",
|
"sidebarLogsAction": "Log Azioni",
|
||||||
"logRetention": "Ritenzione Registro",
|
"logRetention": "Ritenzione Registro",
|
||||||
"logRetentionDescription": "Gestisci per quanto tempo i diversi tipi di log sono mantenuti per questa organizzazione o disabilitali",
|
"logRetentionDescription": "Gestisci per quanto tempo i diversi tipi di log sono mantenuti per questa organizzazione o disabilitali",
|
||||||
|
"logRetentionDisabledWarningTitle": "Log Retention Disabled",
|
||||||
|
"logRetentionDisabledWarningDescription": "{logType} are not being retained for this organization, so new activity will not appear here. Enable retention in security settings to start collecting these logs.",
|
||||||
|
"logRetentionDisabledWarningButton": "Go to Security Settings",
|
||||||
"requestLogsDescription": "Visualizza i registri di richiesta dettagliati per le risorse in questa organizzazione",
|
"requestLogsDescription": "Visualizza i registri di richiesta dettagliati per le risorse in questa organizzazione",
|
||||||
"aiSessionLogs": "Log delle Sessioni AI Gateway",
|
"aiSessionLogs": "Log delle Sessioni AI Gateway",
|
||||||
"aiSessionLogsDescription": "Visualizza trascrizioni di prompt e risposte per le richieste del gateway AI in questa organizzazione",
|
"aiSessionLogsDescription": "Visualizza trascrizioni di prompt e risposte per le richieste del gateway AI in questa organizzazione",
|
||||||
|
|||||||
+3
-1
@@ -1785,7 +1785,6 @@
|
|||||||
"aiClientConfigDescriptionClaude": "Anthropic의 터미널 에이전트 코딩 도구입니다.",
|
"aiClientConfigDescriptionClaude": "Anthropic의 터미널 에이전트 코딩 도구입니다.",
|
||||||
"aiClientConfigDescriptionCodex": "OpenAI의 터미널 에이전트 코딩 도구입니다.",
|
"aiClientConfigDescriptionCodex": "OpenAI의 터미널 에이전트 코딩 도구입니다.",
|
||||||
"aiClientConfigDescriptionOpencode": "오픈 소스 터미널 코딩 에이전트.",
|
"aiClientConfigDescriptionOpencode": "오픈 소스 터미널 코딩 에이전트.",
|
||||||
"aiClientConfigDescriptionCursor": "VS Code를 기반으로 한 AI 코드 편집기.",
|
|
||||||
"aiClientConfigSetup": "설정",
|
"aiClientConfigSetup": "설정",
|
||||||
"aiClientConfigTabCli": "자동 (CLI)",
|
"aiClientConfigTabCli": "자동 (CLI)",
|
||||||
"aiClientConfigTabManual": "수동 구성",
|
"aiClientConfigTabManual": "수동 구성",
|
||||||
@@ -3548,6 +3547,9 @@
|
|||||||
"sidebarLogsAction": "작업 로그",
|
"sidebarLogsAction": "작업 로그",
|
||||||
"logRetention": "로그 보관",
|
"logRetention": "로그 보관",
|
||||||
"logRetentionDescription": "다양한 유형의 로그를 이 조직에 대해 얼마나 오래 보관할지 관리하거나 비활성화합니다",
|
"logRetentionDescription": "다양한 유형의 로그를 이 조직에 대해 얼마나 오래 보관할지 관리하거나 비활성화합니다",
|
||||||
|
"logRetentionDisabledWarningTitle": "Log Retention Disabled",
|
||||||
|
"logRetentionDisabledWarningDescription": "{logType} are not being retained for this organization, so new activity will not appear here. Enable retention in security settings to start collecting these logs.",
|
||||||
|
"logRetentionDisabledWarningButton": "Go to Security Settings",
|
||||||
"requestLogsDescription": "이 조직의 자원에 대한 상세한 요청 로그를 봅니다",
|
"requestLogsDescription": "이 조직의 자원에 대한 상세한 요청 로그를 봅니다",
|
||||||
"aiSessionLogs": "AI 게이트웨이 세션 로그",
|
"aiSessionLogs": "AI 게이트웨이 세션 로그",
|
||||||
"aiSessionLogsDescription": "이 조직의 AI 게이트웨이 요청에 대한 프롬프트 및 응답 대본을 봅니다",
|
"aiSessionLogsDescription": "이 조직의 AI 게이트웨이 요청에 대한 프롬프트 및 응답 대본을 봅니다",
|
||||||
|
|||||||
+3
-1
@@ -1785,7 +1785,6 @@
|
|||||||
"aiClientConfigDescriptionClaude": "Anthropics agentiske kodingsverktøy for terminalen.",
|
"aiClientConfigDescriptionClaude": "Anthropics agentiske kodingsverktøy for terminalen.",
|
||||||
"aiClientConfigDescriptionCodex": "OpenAIs agentiske kodingsverktøy for terminalen.",
|
"aiClientConfigDescriptionCodex": "OpenAIs agentiske kodingsverktøy for terminalen.",
|
||||||
"aiClientConfigDescriptionOpencode": "Åpen kildekode terminal kodeagent.",
|
"aiClientConfigDescriptionOpencode": "Åpen kildekode terminal kodeagent.",
|
||||||
"aiClientConfigDescriptionCursor": "AI-kodeeditor bygget på VS Code.",
|
|
||||||
"aiClientConfigSetup": "Oppsett",
|
"aiClientConfigSetup": "Oppsett",
|
||||||
"aiClientConfigTabCli": "Automatisk (CLI)",
|
"aiClientConfigTabCli": "Automatisk (CLI)",
|
||||||
"aiClientConfigTabManual": "Manuell konfigurasjon",
|
"aiClientConfigTabManual": "Manuell konfigurasjon",
|
||||||
@@ -3548,6 +3547,9 @@
|
|||||||
"sidebarLogsAction": "Handlingslogger",
|
"sidebarLogsAction": "Handlingslogger",
|
||||||
"logRetention": "Logg tilbaketrekning",
|
"logRetention": "Logg tilbaketrekning",
|
||||||
"logRetentionDescription": "Håndter hvor lenge ulike typer logger beholdes for denne organisasjonen, eller deaktiver dem",
|
"logRetentionDescription": "Håndter hvor lenge ulike typer logger beholdes for denne organisasjonen, eller deaktiver dem",
|
||||||
|
"logRetentionDisabledWarningTitle": "Log Retention Disabled",
|
||||||
|
"logRetentionDisabledWarningDescription": "{logType} are not being retained for this organization, so new activity will not appear here. Enable retention in security settings to start collecting these logs.",
|
||||||
|
"logRetentionDisabledWarningButton": "Go to Security Settings",
|
||||||
"requestLogsDescription": "Se detaljerte forespørselslogger for ressurser i denne organisasjonen",
|
"requestLogsDescription": "Se detaljerte forespørselslogger for ressurser i denne organisasjonen",
|
||||||
"aiSessionLogs": "AI Portal Sesjonslogger",
|
"aiSessionLogs": "AI Portal Sesjonslogger",
|
||||||
"aiSessionLogsDescription": "Vis stikkord- og responsutskrifter for AI-portal forespørsler i denne organisasjonen",
|
"aiSessionLogsDescription": "Vis stikkord- og responsutskrifter for AI-portal forespørsler i denne organisasjonen",
|
||||||
|
|||||||
+3
-1
@@ -1785,7 +1785,6 @@
|
|||||||
"aiClientConfigDescriptionClaude": "Anthropic's agentische coderingstool voor de terminal.",
|
"aiClientConfigDescriptionClaude": "Anthropic's agentische coderingstool voor de terminal.",
|
||||||
"aiClientConfigDescriptionCodex": "OpenAI's agentische coderingstool voor de terminal.",
|
"aiClientConfigDescriptionCodex": "OpenAI's agentische coderingstool voor de terminal.",
|
||||||
"aiClientConfigDescriptionOpencode": "Open source terminal coderingsagent.",
|
"aiClientConfigDescriptionOpencode": "Open source terminal coderingsagent.",
|
||||||
"aiClientConfigDescriptionCursor": "AI-code-editor gebouwd op VS Code.",
|
|
||||||
"aiClientConfigSetup": "Instellen",
|
"aiClientConfigSetup": "Instellen",
|
||||||
"aiClientConfigTabCli": "Automatisch (CLI)",
|
"aiClientConfigTabCli": "Automatisch (CLI)",
|
||||||
"aiClientConfigTabManual": "Handmatige configuratie",
|
"aiClientConfigTabManual": "Handmatige configuratie",
|
||||||
@@ -3548,6 +3547,9 @@
|
|||||||
"sidebarLogsAction": "Actie logs",
|
"sidebarLogsAction": "Actie logs",
|
||||||
"logRetention": "Log bewaring",
|
"logRetention": "Log bewaring",
|
||||||
"logRetentionDescription": "Beheren hoe lang verschillende soorten logs bewaard worden voor deze organisatie of schakel ze uit",
|
"logRetentionDescription": "Beheren hoe lang verschillende soorten logs bewaard worden voor deze organisatie of schakel ze uit",
|
||||||
|
"logRetentionDisabledWarningTitle": "Log Retention Disabled",
|
||||||
|
"logRetentionDisabledWarningDescription": "{logType} are not being retained for this organization, so new activity will not appear here. Enable retention in security settings to start collecting these logs.",
|
||||||
|
"logRetentionDisabledWarningButton": "Go to Security Settings",
|
||||||
"requestLogsDescription": "Bekijk gedetailleerde verzoeklogboeken voor resources in deze organisatie",
|
"requestLogsDescription": "Bekijk gedetailleerde verzoeklogboeken voor resources in deze organisatie",
|
||||||
"aiSessionLogs": "AI Gateway Sessie Logs",
|
"aiSessionLogs": "AI Gateway Sessie Logs",
|
||||||
"aiSessionLogsDescription": "Bekijk prompt- en reactie-transcripten voor AI-gateway-aanvragen in deze organisatie",
|
"aiSessionLogsDescription": "Bekijk prompt- en reactie-transcripten voor AI-gateway-aanvragen in deze organisatie",
|
||||||
|
|||||||
+3
-1
@@ -1785,7 +1785,6 @@
|
|||||||
"aiClientConfigDescriptionClaude": "Agent narzędzia kodującego Anthropic dla terminala.",
|
"aiClientConfigDescriptionClaude": "Agent narzędzia kodującego Anthropic dla terminala.",
|
||||||
"aiClientConfigDescriptionCodex": "Agent narzędzia kodującego OpenAI dla terminala.",
|
"aiClientConfigDescriptionCodex": "Agent narzędzia kodującego OpenAI dla terminala.",
|
||||||
"aiClientConfigDescriptionOpencode": "Agent open source do kodowania w terminalu.",
|
"aiClientConfigDescriptionOpencode": "Agent open source do kodowania w terminalu.",
|
||||||
"aiClientConfigDescriptionCursor": "Edytor kodu AI oparty na VS Code.",
|
|
||||||
"aiClientConfigSetup": "Ustawienie",
|
"aiClientConfigSetup": "Ustawienie",
|
||||||
"aiClientConfigTabCli": "Automatyczne (CLI)",
|
"aiClientConfigTabCli": "Automatyczne (CLI)",
|
||||||
"aiClientConfigTabManual": "Konfiguracja ręczna",
|
"aiClientConfigTabManual": "Konfiguracja ręczna",
|
||||||
@@ -3548,6 +3547,9 @@
|
|||||||
"sidebarLogsAction": "Dzienniki działań",
|
"sidebarLogsAction": "Dzienniki działań",
|
||||||
"logRetention": "Zachowanie dziennika",
|
"logRetention": "Zachowanie dziennika",
|
||||||
"logRetentionDescription": "Zarządzaj jak długo różne typy logów są zachowane dla tej organizacji lub wyłącz je",
|
"logRetentionDescription": "Zarządzaj jak długo różne typy logów są zachowane dla tej organizacji lub wyłącz je",
|
||||||
|
"logRetentionDisabledWarningTitle": "Log Retention Disabled",
|
||||||
|
"logRetentionDisabledWarningDescription": "{logType} are not being retained for this organization, so new activity will not appear here. Enable retention in security settings to start collecting these logs.",
|
||||||
|
"logRetentionDisabledWarningButton": "Go to Security Settings",
|
||||||
"requestLogsDescription": "Zobacz szczegółowe dzienniki żądań zasobów w tej organizacji",
|
"requestLogsDescription": "Zobacz szczegółowe dzienniki żądań zasobów w tej organizacji",
|
||||||
"aiSessionLogs": "Dzienniki Sesji Bramy AI",
|
"aiSessionLogs": "Dzienniki Sesji Bramy AI",
|
||||||
"aiSessionLogsDescription": "Zobacz transkrypcje podpowiedzi i odpowiedzi dla żądań bramy AI w tej organizacji",
|
"aiSessionLogsDescription": "Zobacz transkrypcje podpowiedzi i odpowiedzi dla żądań bramy AI w tej organizacji",
|
||||||
|
|||||||
+3
-1
@@ -1785,7 +1785,6 @@
|
|||||||
"aiClientConfigDescriptionClaude": "Ferramenta de codificação agentic de Anthropic para o terminal.",
|
"aiClientConfigDescriptionClaude": "Ferramenta de codificação agentic de Anthropic para o terminal.",
|
||||||
"aiClientConfigDescriptionCodex": "Ferramenta de codificação agentic da OpenAI para o terminal.",
|
"aiClientConfigDescriptionCodex": "Ferramenta de codificação agentic da OpenAI para o terminal.",
|
||||||
"aiClientConfigDescriptionOpencode": "Agente de codificação de terminal de código aberto.",
|
"aiClientConfigDescriptionOpencode": "Agente de codificação de terminal de código aberto.",
|
||||||
"aiClientConfigDescriptionCursor": "Editor de código de IA baseado no VS Code.",
|
|
||||||
"aiClientConfigSetup": "Configuração",
|
"aiClientConfigSetup": "Configuração",
|
||||||
"aiClientConfigTabCli": "Automático (CLI)",
|
"aiClientConfigTabCli": "Automático (CLI)",
|
||||||
"aiClientConfigTabManual": "Configuração Manual",
|
"aiClientConfigTabManual": "Configuração Manual",
|
||||||
@@ -3548,6 +3547,9 @@
|
|||||||
"sidebarLogsAction": "Logs de Ações",
|
"sidebarLogsAction": "Logs de Ações",
|
||||||
"logRetention": "Retenção de Log",
|
"logRetention": "Retenção de Log",
|
||||||
"logRetentionDescription": "Gerenciar quanto tempo os diferentes tipos de logs são mantidos para esta organização ou desativá-los",
|
"logRetentionDescription": "Gerenciar quanto tempo os diferentes tipos de logs são mantidos para esta organização ou desativá-los",
|
||||||
|
"logRetentionDisabledWarningTitle": "Log Retention Disabled",
|
||||||
|
"logRetentionDisabledWarningDescription": "{logType} are not being retained for this organization, so new activity will not appear here. Enable retention in security settings to start collecting these logs.",
|
||||||
|
"logRetentionDisabledWarningButton": "Go to Security Settings",
|
||||||
"requestLogsDescription": "Ver registros de pedidos detalhados de recursos nesta organização",
|
"requestLogsDescription": "Ver registros de pedidos detalhados de recursos nesta organização",
|
||||||
"aiSessionLogs": "Registros de Sessão do Gateway de IA",
|
"aiSessionLogs": "Registros de Sessão do Gateway de IA",
|
||||||
"aiSessionLogsDescription": "Veja as transcrições de prompt e resposta para solicitações de gateway de IA nesta organização",
|
"aiSessionLogsDescription": "Veja as transcrições de prompt e resposta para solicitações de gateway de IA nesta organização",
|
||||||
|
|||||||
+3
-1
@@ -1785,7 +1785,6 @@
|
|||||||
"aiClientConfigDescriptionClaude": "Агентивное кодирующее средство Anthropic для терминала.",
|
"aiClientConfigDescriptionClaude": "Агентивное кодирующее средство Anthropic для терминала.",
|
||||||
"aiClientConfigDescriptionCodex": "Агентивное кодирующее средство OpenAI для терминала.",
|
"aiClientConfigDescriptionCodex": "Агентивное кодирующее средство OpenAI для терминала.",
|
||||||
"aiClientConfigDescriptionOpencode": "Открытый исходный агент для кодирования в терминале.",
|
"aiClientConfigDescriptionOpencode": "Открытый исходный агент для кодирования в терминале.",
|
||||||
"aiClientConfigDescriptionCursor": "AI редактор кода на основе VS Code.",
|
|
||||||
"aiClientConfigSetup": "Настройка",
|
"aiClientConfigSetup": "Настройка",
|
||||||
"aiClientConfigTabCli": "Автоматическое (CLI)",
|
"aiClientConfigTabCli": "Автоматическое (CLI)",
|
||||||
"aiClientConfigTabManual": "Ручная конфигурация",
|
"aiClientConfigTabManual": "Ручная конфигурация",
|
||||||
@@ -3548,6 +3547,9 @@
|
|||||||
"sidebarLogsAction": "Журнал действий",
|
"sidebarLogsAction": "Журнал действий",
|
||||||
"logRetention": "Сохранение журнала",
|
"logRetention": "Сохранение журнала",
|
||||||
"logRetentionDescription": "Управление сохранением различных типов журналов для этой организации или отключение их",
|
"logRetentionDescription": "Управление сохранением различных типов журналов для этой организации или отключение их",
|
||||||
|
"logRetentionDisabledWarningTitle": "Log Retention Disabled",
|
||||||
|
"logRetentionDisabledWarningDescription": "{logType} are not being retained for this organization, so new activity will not appear here. Enable retention in security settings to start collecting these logs.",
|
||||||
|
"logRetentionDisabledWarningButton": "Go to Security Settings",
|
||||||
"requestLogsDescription": "Просмотреть подробные журналы запроса ресурсов в этой организации",
|
"requestLogsDescription": "Просмотреть подробные журналы запроса ресурсов в этой организации",
|
||||||
"aiSessionLogs": "AI Логи сессии шлюза",
|
"aiSessionLogs": "AI Логи сессии шлюза",
|
||||||
"aiSessionLogsDescription": "Просмотр транскриптов запросов и ответов для шлюзов AI в этой организации",
|
"aiSessionLogsDescription": "Просмотр транскриптов запросов и ответов для шлюзов AI в этой организации",
|
||||||
|
|||||||
+3
-1
@@ -1785,7 +1785,6 @@
|
|||||||
"aiClientConfigDescriptionClaude": "Anthropic'in terminal için aracılık kodlama aracı.",
|
"aiClientConfigDescriptionClaude": "Anthropic'in terminal için aracılık kodlama aracı.",
|
||||||
"aiClientConfigDescriptionCodex": "OpenAI'nin terminal için aracılık kodlama aracı.",
|
"aiClientConfigDescriptionCodex": "OpenAI'nin terminal için aracılık kodlama aracı.",
|
||||||
"aiClientConfigDescriptionOpencode": "Açık kaynak terminal kodlama aracı.",
|
"aiClientConfigDescriptionOpencode": "Açık kaynak terminal kodlama aracı.",
|
||||||
"aiClientConfigDescriptionCursor": "VS Code üzerine kurulu yapay zeka kod editörü.",
|
|
||||||
"aiClientConfigSetup": "Kurulum",
|
"aiClientConfigSetup": "Kurulum",
|
||||||
"aiClientConfigTabCli": "Otomatik (CLI)",
|
"aiClientConfigTabCli": "Otomatik (CLI)",
|
||||||
"aiClientConfigTabManual": "Manuel Yapılandırma",
|
"aiClientConfigTabManual": "Manuel Yapılandırma",
|
||||||
@@ -3548,6 +3547,9 @@
|
|||||||
"sidebarLogsAction": "Eylem Günlükleri",
|
"sidebarLogsAction": "Eylem Günlükleri",
|
||||||
"logRetention": "Kayıt Saklama",
|
"logRetention": "Kayıt Saklama",
|
||||||
"logRetentionDescription": "Bu organizasyon için farklı türdeki günlüklerin ne kadar süre saklanacağını yönetin veya devre dışı bırakın",
|
"logRetentionDescription": "Bu organizasyon için farklı türdeki günlüklerin ne kadar süre saklanacağını yönetin veya devre dışı bırakın",
|
||||||
|
"logRetentionDisabledWarningTitle": "Log Retention Disabled",
|
||||||
|
"logRetentionDisabledWarningDescription": "{logType} are not being retained for this organization, so new activity will not appear here. Enable retention in security settings to start collecting these logs.",
|
||||||
|
"logRetentionDisabledWarningButton": "Go to Security Settings",
|
||||||
"requestLogsDescription": "Bu organizasyondaki kaynaklar için ayrıntılı istek günlüklerini görüntüleyin",
|
"requestLogsDescription": "Bu organizasyondaki kaynaklar için ayrıntılı istek günlüklerini görüntüleyin",
|
||||||
"aiSessionLogs": "AI Ağ Geçidi Oturum Günlükleri",
|
"aiSessionLogs": "AI Ağ Geçidi Oturum Günlükleri",
|
||||||
"aiSessionLogsDescription": "Bu organizasyondaki AI ağ geçidi isteklerinin istem ve yanıt transkriptlerini görüntüleyin",
|
"aiSessionLogsDescription": "Bu organizasyondaki AI ağ geçidi isteklerinin istem ve yanıt transkriptlerini görüntüleyin",
|
||||||
|
|||||||
+3
-1
@@ -1785,7 +1785,6 @@
|
|||||||
"aiClientConfigDescriptionClaude": "Anthropic 的终端代理编码工具。",
|
"aiClientConfigDescriptionClaude": "Anthropic 的终端代理编码工具。",
|
||||||
"aiClientConfigDescriptionCodex": "OpenAI 的终端代理编码工具。",
|
"aiClientConfigDescriptionCodex": "OpenAI 的终端代理编码工具。",
|
||||||
"aiClientConfigDescriptionOpencode": "开源终端编码代理。",
|
"aiClientConfigDescriptionOpencode": "开源终端编码代理。",
|
||||||
"aiClientConfigDescriptionCursor": "基于 VS Code 的 AI 代码编辑器。",
|
|
||||||
"aiClientConfigSetup": "设置",
|
"aiClientConfigSetup": "设置",
|
||||||
"aiClientConfigTabCli": "自动 (CLI)",
|
"aiClientConfigTabCli": "自动 (CLI)",
|
||||||
"aiClientConfigTabManual": "手动配置",
|
"aiClientConfigTabManual": "手动配置",
|
||||||
@@ -3548,6 +3547,9 @@
|
|||||||
"sidebarLogsAction": "操作日志",
|
"sidebarLogsAction": "操作日志",
|
||||||
"logRetention": "日志保留",
|
"logRetention": "日志保留",
|
||||||
"logRetentionDescription": "管理不同类型的日志为这个机构保留多长时间或禁用这些日志",
|
"logRetentionDescription": "管理不同类型的日志为这个机构保留多长时间或禁用这些日志",
|
||||||
|
"logRetentionDisabledWarningTitle": "Log Retention Disabled",
|
||||||
|
"logRetentionDisabledWarningDescription": "{logType} are not being retained for this organization, so new activity will not appear here. Enable retention in security settings to start collecting these logs.",
|
||||||
|
"logRetentionDisabledWarningButton": "Go to Security Settings",
|
||||||
"requestLogsDescription": "查看此机构资源的详细请求日志",
|
"requestLogsDescription": "查看此机构资源的详细请求日志",
|
||||||
"aiSessionLogs": "AI 网关会话日志",
|
"aiSessionLogs": "AI 网关会话日志",
|
||||||
"aiSessionLogsDescription": "查看此组织中AI网关请求的提示和响应记录",
|
"aiSessionLogsDescription": "查看此组织中AI网关请求的提示和响应记录",
|
||||||
|
|||||||
Generated
+279
-322
File diff suppressed because it is too large
Load Diff
+5
-5
@@ -94,12 +94,12 @@
|
|||||||
"input-otp": "1.4.2",
|
"input-otp": "1.4.2",
|
||||||
"ioredis": "5.11.0",
|
"ioredis": "5.11.0",
|
||||||
"jmespath": "0.16.0",
|
"jmespath": "0.16.0",
|
||||||
"js-yaml": "4.3.1",
|
"js-yaml": "4.3.0",
|
||||||
"jsonwebtoken": "9.0.3",
|
"jsonwebtoken": "9.0.3",
|
||||||
"lucide-react": "1.17.0",
|
"lucide-react": "1.17.0",
|
||||||
"maxmind": "5.0.6",
|
"maxmind": "5.0.6",
|
||||||
"moment": "2.30.1",
|
"moment": "2.30.1",
|
||||||
"next": "16.3.1",
|
"next": "16.2.11",
|
||||||
"next-intl": "4.13.0",
|
"next-intl": "4.13.0",
|
||||||
"next-themes": "0.4.6",
|
"next-themes": "0.4.6",
|
||||||
"nextjs-toploader": "3.9.17",
|
"nextjs-toploader": "3.9.17",
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@dotenvx/dotenvx": "1.69.1",
|
"@dotenvx/dotenvx": "1.69.1",
|
||||||
"@esbuild-plugins/tsconfig-paths": "0.1.2",
|
"@esbuild-plugins/tsconfig-paths": "0.1.2",
|
||||||
"@react-email/ui": "^6.9.2",
|
"@react-email/ui": "^6.5.0",
|
||||||
"@tailwindcss/postcss": "4.3.0",
|
"@tailwindcss/postcss": "4.3.0",
|
||||||
"@tanstack/react-query-devtools": "5.100.14",
|
"@tanstack/react-query-devtools": "5.100.14",
|
||||||
"@types/better-sqlite3": "7.6.13",
|
"@types/better-sqlite3": "7.6.13",
|
||||||
@@ -170,7 +170,7 @@
|
|||||||
"esbuild-node-externals": "1.22.0",
|
"esbuild-node-externals": "1.22.0",
|
||||||
"eslint": "10.4.0",
|
"eslint": "10.4.0",
|
||||||
"eslint-config-next": "16.2.6",
|
"eslint-config-next": "16.2.6",
|
||||||
"postcss": "8.5.23",
|
"postcss": "8.5.15",
|
||||||
"prettier": "3.8.3",
|
"prettier": "3.8.3",
|
||||||
"react-email": "6.5.0",
|
"react-email": "6.5.0",
|
||||||
"tailwindcss": "4.3.0",
|
"tailwindcss": "4.3.0",
|
||||||
@@ -182,6 +182,6 @@
|
|||||||
"overrides": {
|
"overrides": {
|
||||||
"esbuild": "0.28.0",
|
"esbuild": "0.28.0",
|
||||||
"dompurify": "3.4.0",
|
"dompurify": "3.4.0",
|
||||||
"postcss": "8.5.23"
|
"postcss": "8.5.15"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
-12
@@ -1,12 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg id="Ebene_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 466.73 532.09">
|
|
||||||
<!-- Generator: Adobe Illustrator 29.6.1, SVG Export Plug-In . SVG Version: 2.1.1 Build 9) -->
|
|
||||||
<defs>
|
|
||||||
<style>
|
|
||||||
.st0 {
|
|
||||||
fill: #26251e;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</defs>
|
|
||||||
<path class="st0" d="M457.43,125.94L244.42,2.96c-6.84-3.95-15.28-3.95-22.12,0L9.3,125.94c-5.75,3.32-9.3,9.46-9.3,16.11v247.99c0,6.65,3.55,12.79,9.3,16.11l213.01,122.98c6.84,3.95,15.28,3.95,22.12,0l213.01-122.98c5.75-3.32,9.3-9.46,9.3-16.11v-247.99c0-6.65-3.55-12.79-9.3-16.11h-.01ZM444.05,151.99l-205.63,356.16c-1.39,2.4-5.06,1.42-5.06-1.36v-233.21c0-4.66-2.49-8.97-6.53-11.31L24.87,145.67c-2.4-1.39-1.42-5.06,1.36-5.06h411.26c5.84,0,9.49,6.33,6.57,11.39h-.01Z"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 793 B |
Vendored
-12
@@ -1,12 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg id="Ebene_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 466.73 532.09">
|
|
||||||
<!-- Generator: Adobe Illustrator 29.6.1, SVG Export Plug-In . SVG Version: 2.1.1 Build 9) -->
|
|
||||||
<defs>
|
|
||||||
<style>
|
|
||||||
.st0 {
|
|
||||||
fill: #edecec;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</defs>
|
|
||||||
<path class="st0" d="M457.43,125.94L244.42,2.96c-6.84-3.95-15.28-3.95-22.12,0L9.3,125.94c-5.75,3.32-9.3,9.46-9.3,16.11v247.99c0,6.65,3.55,12.79,9.3,16.11l213.01,122.98c6.84,3.95,15.28,3.95,22.12,0l213.01-122.98c5.75-3.32,9.3-9.46,9.3-16.11v-247.99c0-6.65-3.55-12.79-9.3-16.11h-.01ZM444.05,151.99l-205.63,356.16c-1.39,2.4-5.06,1.42-5.06-1.36v-233.21c0-4.66-2.49-8.97-6.53-11.31L24.87,145.67c-2.4-1.39-1.42-5.06,1.36-5.06h411.26c5.84,0,9.49,6.33,6.57,11.39h-.01Z"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 793 B |
@@ -21,7 +21,9 @@ export function createAiGatewayServer() {
|
|||||||
|
|
||||||
aiGatewayServer.use(helmet());
|
aiGatewayServer.use(helmet());
|
||||||
aiGatewayServer.use(cors());
|
aiGatewayServer.use(cors());
|
||||||
aiGatewayServer.use(express.json());
|
// AI requests can carry large payloads (long conversation history, tool
|
||||||
|
// results, embedded documents), well beyond express.json()'s 100kb default.
|
||||||
|
aiGatewayServer.use(express.json({ limit: "50mb" }));
|
||||||
|
|
||||||
aiGatewayServer.use(createAiGatewayRouter());
|
aiGatewayServer.use(createAiGatewayRouter());
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import {
|
|||||||
aiModels,
|
aiModels,
|
||||||
aiUsageRecords,
|
aiUsageRecords,
|
||||||
db,
|
db,
|
||||||
|
logsDb,
|
||||||
userOrgRoles
|
userOrgRoles
|
||||||
} from "@server/db";
|
} from "@server/db";
|
||||||
import { modelKeyMatches } from "@server/lib/aiModelKeyMatch";
|
import { modelKeyMatches } from "@server/lib/aiModelKeyMatch";
|
||||||
@@ -168,7 +169,7 @@ async function sumUsageAmount(
|
|||||||
): Promise<number> {
|
): Promise<number> {
|
||||||
const column =
|
const column =
|
||||||
unit === "usd" ? aiUsageRecords.costUsd : aiUsageRecords.totalTokens;
|
unit === "usd" ? aiUsageRecords.costUsd : aiUsageRecords.totalTokens;
|
||||||
const [row] = await db
|
const [row] = await logsDb
|
||||||
.select({ total: sql<number>`coalesce(sum(${column}), 0)` })
|
.select({ total: sql<number>`coalesce(sum(${column}), 0)` })
|
||||||
.from(aiUsageRecords)
|
.from(aiUsageRecords)
|
||||||
.where(where);
|
.where(where);
|
||||||
@@ -200,7 +201,7 @@ export async function sumUsageForBudget(
|
|||||||
if (!model) {
|
if (!model) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
const rows = await db
|
const rows = await logsDb
|
||||||
.select({
|
.select({
|
||||||
requestedModel: aiUsageRecords.requestedModel,
|
requestedModel: aiUsageRecords.requestedModel,
|
||||||
costUsd: aiUsageRecords.costUsd,
|
costUsd: aiUsageRecords.costUsd,
|
||||||
@@ -496,7 +497,7 @@ async function flushUsageRecords() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Use a transaction to ensure all inserts succeed or fail together
|
// Use a transaction to ensure all inserts succeed or fail together
|
||||||
await db.transaction(async (tx) => {
|
await logsDb.transaction(async (tx) => {
|
||||||
// Batch insert in groups to avoid overwhelming the database
|
// Batch insert in groups to avoid overwhelming the database
|
||||||
const DB_BATCH_SIZE = 25;
|
const DB_BATCH_SIZE = 25;
|
||||||
for (let i = 0; i < recordsToWrite.length; i += DB_BATCH_SIZE) {
|
for (let i = 0; i < recordsToWrite.length; i += DB_BATCH_SIZE) {
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export type AiUsage = {
|
|||||||
estimated: boolean;
|
estimated: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
function emptyUsage(): AiUsage {
|
export function emptyUsage(): AiUsage {
|
||||||
return {
|
return {
|
||||||
promptTokens: 0,
|
promptTokens: 0,
|
||||||
cacheReadTokens: 0,
|
cacheReadTokens: 0,
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ import {
|
|||||||
needsStreamUsageInjection,
|
needsStreamUsageInjection,
|
||||||
withStreamUsageOption,
|
withStreamUsageOption,
|
||||||
extractResponseModel,
|
extractResponseModel,
|
||||||
|
emptyUsage,
|
||||||
type AiUsage
|
type AiUsage
|
||||||
} from "@server/lib/aiUsageExtraction";
|
} from "@server/lib/aiUsageExtraction";
|
||||||
import { streamAiGatewayResponse } from "@server/routers/aiGateway/streamAiGatewayResponse";
|
import { streamAiGatewayResponse } from "@server/routers/aiGateway/streamAiGatewayResponse";
|
||||||
@@ -713,19 +714,35 @@ export function recordAiGatewayCompletion(args: {
|
|||||||
budgets
|
budgets
|
||||||
} = args;
|
} = args;
|
||||||
|
|
||||||
let usage: AiUsage | null = extractUsage(
|
// A non-2xx status means the upstream provider rejected the request
|
||||||
capability,
|
// (bad auth, invalid request, rate limit, 5xx, etc.) before ever running
|
||||||
responseText,
|
// the model - no tokens were actually billed, so don't estimate usage
|
||||||
isStream,
|
// off the error body text or price/charge it. We still record a
|
||||||
headers
|
// zeroed-out row below (rather than skipping it) so request-count
|
||||||
);
|
// dashboards built on aiUsageRecords keep counting every attempt.
|
||||||
if (!usage || isUsageEmpty(usage)) {
|
const upstreamSucceeded = statusCode >= 200 && statusCode < 300;
|
||||||
usage = estimateUsage(JSON.stringify(requestBody ?? ""), responseText);
|
|
||||||
}
|
|
||||||
|
|
||||||
const model = extractResponseModel(responseText) ?? requestedModel;
|
let usage: AiUsage;
|
||||||
const pricing = getModelPricing(provider.type as AiProviderType, model);
|
let model: string | undefined;
|
||||||
const cost = calculateAiCost(pricing, usage);
|
let pricing: ReturnType<typeof getModelPricing> = null;
|
||||||
|
let cost: ReturnType<typeof calculateAiCost> = null;
|
||||||
|
|
||||||
|
if (upstreamSucceeded) {
|
||||||
|
usage = extractUsage(capability, responseText, isStream, headers) ?? emptyUsage();
|
||||||
|
if (isUsageEmpty(usage)) {
|
||||||
|
usage = estimateUsage(
|
||||||
|
JSON.stringify(requestBody ?? ""),
|
||||||
|
responseText
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
model = extractResponseModel(responseText) ?? requestedModel;
|
||||||
|
pricing = getModelPricing(provider.type as AiProviderType, model);
|
||||||
|
cost = calculateAiCost(pricing, usage);
|
||||||
|
} else {
|
||||||
|
usage = emptyUsage();
|
||||||
|
model = requestedModel;
|
||||||
|
}
|
||||||
|
|
||||||
// Shared by the usage record and the session log so the two can be
|
// Shared by the usage record and the session log so the two can be
|
||||||
// joined later to show token/cost usage alongside the transcript -
|
// joined later to show token/cost usage alongside the transcript -
|
||||||
@@ -738,6 +755,7 @@ export function recordAiGatewayCompletion(args: {
|
|||||||
providerId: provider.providerId,
|
providerId: provider.providerId,
|
||||||
providerType: provider.type,
|
providerType: provider.type,
|
||||||
model,
|
model,
|
||||||
|
statusCode,
|
||||||
estimated: usage.estimated,
|
estimated: usage.estimated,
|
||||||
promptTokens: usage.promptTokens,
|
promptTokens: usage.promptTokens,
|
||||||
cacheReadTokens: usage.cacheReadTokens,
|
cacheReadTokens: usage.cacheReadTokens,
|
||||||
|
|||||||
@@ -312,7 +312,7 @@ async function enrichWithDetails(
|
|||||||
>();
|
>();
|
||||||
const sessionIds = logs.map((log) => log.sessionId);
|
const sessionIds = logs.map((log) => log.sessionId);
|
||||||
if (sessionIds.length > 0) {
|
if (sessionIds.length > 0) {
|
||||||
const usageDetails = await primaryDb
|
const usageDetails = await logsDb
|
||||||
.select({
|
.select({
|
||||||
sessionId: aiUsageRecords.sessionId,
|
sessionId: aiUsageRecords.sessionId,
|
||||||
promptTokens: aiUsageRecords.promptTokens,
|
promptTokens: aiUsageRecords.promptTokens,
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
db,
|
db,
|
||||||
|
logsDb,
|
||||||
aiUsageRecords,
|
aiUsageRecords,
|
||||||
aiProviders,
|
aiProviders,
|
||||||
resources,
|
resources,
|
||||||
@@ -78,22 +79,22 @@ async function query(data: Q) {
|
|||||||
uniqueUsers,
|
uniqueUsers,
|
||||||
uniqueVirtualApiKeys
|
uniqueVirtualApiKeys
|
||||||
] = await Promise.all([
|
] = await Promise.all([
|
||||||
db
|
logsDb
|
||||||
.selectDistinct({ id: aiUsageRecords.providerId })
|
.selectDistinct({ id: aiUsageRecords.providerId })
|
||||||
.from(aiUsageRecords)
|
.from(aiUsageRecords)
|
||||||
.where(baseConditions)
|
.where(baseConditions)
|
||||||
.limit(DISTINCT_LIMIT + 1),
|
.limit(DISTINCT_LIMIT + 1),
|
||||||
db
|
logsDb
|
||||||
.selectDistinct({ model: aiUsageRecords.requestedModel })
|
.selectDistinct({ model: aiUsageRecords.requestedModel })
|
||||||
.from(aiUsageRecords)
|
.from(aiUsageRecords)
|
||||||
.where(baseConditions)
|
.where(baseConditions)
|
||||||
.limit(DISTINCT_LIMIT + 1),
|
.limit(DISTINCT_LIMIT + 1),
|
||||||
db
|
logsDb
|
||||||
.selectDistinct({ id: aiUsageRecords.resourceId })
|
.selectDistinct({ id: aiUsageRecords.resourceId })
|
||||||
.from(aiUsageRecords)
|
.from(aiUsageRecords)
|
||||||
.where(and(baseConditions, not(isNull(aiUsageRecords.resourceId))))
|
.where(and(baseConditions, not(isNull(aiUsageRecords.resourceId))))
|
||||||
.limit(DISTINCT_LIMIT + 1),
|
.limit(DISTINCT_LIMIT + 1),
|
||||||
db
|
logsDb
|
||||||
.selectDistinct({ id: aiUsageRecords.siteResourceId })
|
.selectDistinct({ id: aiUsageRecords.siteResourceId })
|
||||||
.from(aiUsageRecords)
|
.from(aiUsageRecords)
|
||||||
.where(
|
.where(
|
||||||
@@ -104,12 +105,12 @@ async function query(data: Q) {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
.limit(DISTINCT_LIMIT + 1),
|
.limit(DISTINCT_LIMIT + 1),
|
||||||
db
|
logsDb
|
||||||
.selectDistinct({ userId: aiUsageRecords.userId })
|
.selectDistinct({ userId: aiUsageRecords.userId })
|
||||||
.from(aiUsageRecords)
|
.from(aiUsageRecords)
|
||||||
.where(and(baseConditions, not(isNull(aiUsageRecords.userId))))
|
.where(and(baseConditions, not(isNull(aiUsageRecords.userId))))
|
||||||
.limit(DISTINCT_LIMIT + 1),
|
.limit(DISTINCT_LIMIT + 1),
|
||||||
db
|
logsDb
|
||||||
.selectDistinct({ id: aiUsageRecords.virtualApiKeyId })
|
.selectDistinct({ id: aiUsageRecords.virtualApiKeyId })
|
||||||
.from(aiUsageRecords)
|
.from(aiUsageRecords)
|
||||||
.where(
|
.where(
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { db, aiUsageRecords } from "@server/db";
|
import { logsDb, aiUsageRecords } from "@server/db";
|
||||||
import { registry } from "@server/openApi";
|
import { registry } from "@server/openApi";
|
||||||
import { NextFunction } from "express";
|
import { NextFunction } from "express";
|
||||||
import { Request, Response } from "express";
|
import { Request, Response } from "express";
|
||||||
@@ -29,7 +29,7 @@ async function query(data: Q) {
|
|||||||
const roleUserIds = await resolveRoleUserIds(data.orgId, data.roleId);
|
const roleUserIds = await resolveRoleUserIds(data.orgId, data.roleId);
|
||||||
const baseConditions = buildAiUsageWhere(data, roleUserIds);
|
const baseConditions = buildAiUsageWhere(data, roleUserIds);
|
||||||
|
|
||||||
const [totalsRow] = await db
|
const [totalsRow] = await logsDb
|
||||||
.select({
|
.select({
|
||||||
requests: count(),
|
requests: count(),
|
||||||
promptTokens: sql<number>`COALESCE(SUM(${aiUsageRecords.promptTokens}), 0)`,
|
promptTokens: sql<number>`COALESCE(SUM(${aiUsageRecords.promptTokens}), 0)`,
|
||||||
@@ -46,7 +46,7 @@ async function query(data: Q) {
|
|||||||
|
|
||||||
const dayExpr = dayBucketExpr();
|
const dayExpr = dayBucketExpr();
|
||||||
|
|
||||||
const requestsPerDay = await db
|
const requestsPerDay = await logsDb
|
||||||
.select({
|
.select({
|
||||||
day: dayExpr.as("day"),
|
day: dayExpr.as("day"),
|
||||||
requests: count()
|
requests: count()
|
||||||
@@ -56,7 +56,7 @@ async function query(data: Q) {
|
|||||||
.groupBy(dayExpr)
|
.groupBy(dayExpr)
|
||||||
.orderBy(dayExpr);
|
.orderBy(dayExpr);
|
||||||
|
|
||||||
const tokensPerDay = await db
|
const tokensPerDay = await logsDb
|
||||||
.select({
|
.select({
|
||||||
day: dayExpr.as("day"),
|
day: dayExpr.as("day"),
|
||||||
promptTokens: sql<number>`COALESCE(SUM(${aiUsageRecords.promptTokens}), 0)`,
|
promptTokens: sql<number>`COALESCE(SUM(${aiUsageRecords.promptTokens}), 0)`,
|
||||||
@@ -70,7 +70,7 @@ async function query(data: Q) {
|
|||||||
.groupBy(dayExpr)
|
.groupBy(dayExpr)
|
||||||
.orderBy(dayExpr);
|
.orderBy(dayExpr);
|
||||||
|
|
||||||
const costPerDay = await db
|
const costPerDay = await logsDb
|
||||||
.select({
|
.select({
|
||||||
day: dayExpr.as("day"),
|
day: dayExpr.as("day"),
|
||||||
cost: sql<number>`COALESCE(SUM(${aiUsageRecords.costUsd}), 0)`
|
cost: sql<number>`COALESCE(SUM(${aiUsageRecords.costUsd}), 0)`
|
||||||
@@ -80,7 +80,7 @@ async function query(data: Q) {
|
|||||||
.groupBy(dayExpr)
|
.groupBy(dayExpr)
|
||||||
.orderBy(dayExpr);
|
.orderBy(dayExpr);
|
||||||
|
|
||||||
const modelByDay = await db
|
const modelByDay = await logsDb
|
||||||
.select({
|
.select({
|
||||||
day: dayExpr.as("day"),
|
day: dayExpr.as("day"),
|
||||||
model: aiUsageRecords.requestedModel,
|
model: aiUsageRecords.requestedModel,
|
||||||
@@ -117,7 +117,7 @@ async function query(data: Q) {
|
|||||||
topModelsByTokens
|
topModelsByTokens
|
||||||
);
|
);
|
||||||
|
|
||||||
const topModelsRaw = await db
|
const topModelsRaw = await logsDb
|
||||||
.select({
|
.select({
|
||||||
model: aiUsageRecords.requestedModel,
|
model: aiUsageRecords.requestedModel,
|
||||||
requests: count(),
|
requests: count(),
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { db, aiUsageRecords, aiProviders } from "@server/db";
|
import { db, logsDb, aiUsageRecords, aiProviders } from "@server/db";
|
||||||
import { registry } from "@server/openApi";
|
import { registry } from "@server/openApi";
|
||||||
import { NextFunction } from "express";
|
import { NextFunction } from "express";
|
||||||
import { Request, Response } from "express";
|
import { Request, Response } from "express";
|
||||||
@@ -29,7 +29,7 @@ async function query(data: Q) {
|
|||||||
const baseConditions = buildAiUsageWhere(data, roleUserIds);
|
const baseConditions = buildAiUsageWhere(data, roleUserIds);
|
||||||
const dayExpr = dayBucketExpr();
|
const dayExpr = dayBucketExpr();
|
||||||
|
|
||||||
const providerByDay = await db
|
const providerByDay = await logsDb
|
||||||
.select({
|
.select({
|
||||||
day: dayExpr.as("day"),
|
day: dayExpr.as("day"),
|
||||||
providerId: aiUsageRecords.providerId,
|
providerId: aiUsageRecords.providerId,
|
||||||
@@ -69,7 +69,7 @@ async function query(data: Q) {
|
|||||||
topByTokens
|
topByTokens
|
||||||
);
|
);
|
||||||
|
|
||||||
const topProvidersRaw = await db
|
const topProvidersRaw = await logsDb
|
||||||
.select({
|
.select({
|
||||||
providerId: aiUsageRecords.providerId,
|
providerId: aiUsageRecords.providerId,
|
||||||
requests: count(),
|
requests: count(),
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { db, aiUsageRecords, resources, siteResources } from "@server/db";
|
import { db, logsDb, aiUsageRecords, resources, siteResources } from "@server/db";
|
||||||
import { registry } from "@server/openApi";
|
import { registry } from "@server/openApi";
|
||||||
import { NextFunction } from "express";
|
import { NextFunction } from "express";
|
||||||
import { Request, Response } from "express";
|
import { Request, Response } from "express";
|
||||||
@@ -39,7 +39,7 @@ async function query(data: Q) {
|
|||||||
const baseConditions = buildAiUsageWhere(data, roleUserIds);
|
const baseConditions = buildAiUsageWhere(data, roleUserIds);
|
||||||
const dayExpr = dayBucketExpr();
|
const dayExpr = dayBucketExpr();
|
||||||
|
|
||||||
const resourceByDay = await db
|
const resourceByDay = await logsDb
|
||||||
.select({
|
.select({
|
||||||
day: dayExpr.as("day"),
|
day: dayExpr.as("day"),
|
||||||
resourceId: aiUsageRecords.resourceId,
|
resourceId: aiUsageRecords.resourceId,
|
||||||
@@ -80,7 +80,7 @@ async function query(data: Q) {
|
|||||||
topByTokens
|
topByTokens
|
||||||
);
|
);
|
||||||
|
|
||||||
const topResourcesRaw = await db
|
const topResourcesRaw = await logsDb
|
||||||
.select({
|
.select({
|
||||||
resourceId: aiUsageRecords.resourceId,
|
resourceId: aiUsageRecords.resourceId,
|
||||||
siteResourceId: aiUsageRecords.siteResourceId,
|
siteResourceId: aiUsageRecords.siteResourceId,
|
||||||
|
|||||||
@@ -1,4 +1,11 @@
|
|||||||
import { db, aiUsageRecords, users, roles, userOrgRoles } from "@server/db";
|
import {
|
||||||
|
db,
|
||||||
|
logsDb,
|
||||||
|
aiUsageRecords,
|
||||||
|
users,
|
||||||
|
roles,
|
||||||
|
userOrgRoles
|
||||||
|
} from "@server/db";
|
||||||
import { registry } from "@server/openApi";
|
import { registry } from "@server/openApi";
|
||||||
import { NextFunction } from "express";
|
import { NextFunction } from "express";
|
||||||
import { Request, Response } from "express";
|
import { Request, Response } from "express";
|
||||||
@@ -36,7 +43,7 @@ async function query(data: Q) {
|
|||||||
// userId, so role totals are derived by expanding each user's usage into
|
// userId, so role totals are derived by expanding each user's usage into
|
||||||
// every role they hold in the org (per-role double counting for
|
// every role they hold in the org (per-role double counting for
|
||||||
// multi-role users is expected/accepted).
|
// multi-role users is expected/accepted).
|
||||||
const userByDay = await db
|
const userByDay = await logsDb
|
||||||
.select({
|
.select({
|
||||||
day: dayExpr.as("day"),
|
day: dayExpr.as("day"),
|
||||||
userId: aiUsageRecords.userId,
|
userId: aiUsageRecords.userId,
|
||||||
@@ -48,7 +55,7 @@ async function query(data: Q) {
|
|||||||
.groupBy(dayExpr, aiUsageRecords.userId)
|
.groupBy(dayExpr, aiUsageRecords.userId)
|
||||||
.orderBy(dayExpr);
|
.orderBy(dayExpr);
|
||||||
|
|
||||||
const userTotalsRaw = await db
|
const userTotalsRaw = await logsDb
|
||||||
.select({
|
.select({
|
||||||
userId: aiUsageRecords.userId,
|
userId: aiUsageRecords.userId,
|
||||||
requests: count(),
|
requests: count(),
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { db, aiUsageRecords, virtualApiKeys } from "@server/db";
|
import { db, logsDb, aiUsageRecords, virtualApiKeys } from "@server/db";
|
||||||
import { registry } from "@server/openApi";
|
import { registry } from "@server/openApi";
|
||||||
import { NextFunction } from "express";
|
import { NextFunction } from "express";
|
||||||
import { Request, Response } from "express";
|
import { Request, Response } from "express";
|
||||||
@@ -31,7 +31,7 @@ async function query(data: Q) {
|
|||||||
const baseConditions = buildAiUsageWhere(data, roleUserIds);
|
const baseConditions = buildAiUsageWhere(data, roleUserIds);
|
||||||
const dayExpr = dayBucketExpr();
|
const dayExpr = dayBucketExpr();
|
||||||
|
|
||||||
const virtualApiKeyByDay = await db
|
const virtualApiKeyByDay = await logsDb
|
||||||
.select({
|
.select({
|
||||||
day: dayExpr.as("day"),
|
day: dayExpr.as("day"),
|
||||||
virtualApiKeyId: aiUsageRecords.virtualApiKeyId,
|
virtualApiKeyId: aiUsageRecords.virtualApiKeyId,
|
||||||
@@ -43,7 +43,7 @@ async function query(data: Q) {
|
|||||||
.groupBy(dayExpr, aiUsageRecords.virtualApiKeyId)
|
.groupBy(dayExpr, aiUsageRecords.virtualApiKeyId)
|
||||||
.orderBy(dayExpr);
|
.orderBy(dayExpr);
|
||||||
|
|
||||||
const virtualApiKeyTotalsRaw = await db
|
const virtualApiKeyTotalsRaw = await logsDb
|
||||||
.select({
|
.select({
|
||||||
virtualApiKeyId: aiUsageRecords.virtualApiKeyId,
|
virtualApiKeyId: aiUsageRecords.virtualApiKeyId,
|
||||||
requests: count(),
|
requests: count(),
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import HttpCode from "@server/types/HttpCode";
|
|||||||
import { response } from "@server/lib/response";
|
import { response } from "@server/lib/response";
|
||||||
import { db } from "@server/db";
|
import { db } from "@server/db";
|
||||||
import { passwordResetTokens, users } from "@server/db";
|
import { passwordResetTokens, users } from "@server/db";
|
||||||
import { eq, and } from "drizzle-orm";
|
import { eq } from "drizzle-orm";
|
||||||
import { alphabet, generateRandomString, sha256 } from "oslo/crypto";
|
import { alphabet, generateRandomString, sha256 } from "oslo/crypto";
|
||||||
import { createDate } from "oslo";
|
import { createDate } from "oslo";
|
||||||
import logger from "@server/logger";
|
import logger from "@server/logger";
|
||||||
@@ -49,12 +49,7 @@ export async function requestPasswordReset(
|
|||||||
const existingUser = await db
|
const existingUser = await db
|
||||||
.select()
|
.select()
|
||||||
.from(users)
|
.from(users)
|
||||||
.where(
|
.where(eq(users.email, email));
|
||||||
and(
|
|
||||||
eq(users.email, email),
|
|
||||||
eq(users.type, UserType.Internal)
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
if (!existingUser || !existingUser.length) {
|
if (!existingUser || !existingUser.length) {
|
||||||
await randomDelay(2000);
|
await randomDelay(2000);
|
||||||
|
|||||||
@@ -18,9 +18,6 @@ export default async function migration() {
|
|||||||
try {
|
try {
|
||||||
await db.execute(sql`BEGIN`);
|
await db.execute(sql`BEGIN`);
|
||||||
|
|
||||||
await db.execute(sql`
|
|
||||||
`);
|
|
||||||
|
|
||||||
await db.execute(sql`
|
await db.execute(sql`
|
||||||
CREATE TABLE "aiBudgetBreachEvents" (
|
CREATE TABLE "aiBudgetBreachEvents" (
|
||||||
"id" serial PRIMARY KEY NOT NULL,
|
"id" serial PRIMARY KEY NOT NULL,
|
||||||
@@ -454,14 +451,14 @@ export default async function migration() {
|
|||||||
throw new Error(fromZodError(parsedConfig.error).toString());
|
throw new Error(fromZodError(parsedConfig.error).toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
traefikConfig.experimental.plugins.badger.version = "v1.6.0";
|
traefikConfig.experimental.plugins.badger.version = "v1.6.1";
|
||||||
|
|
||||||
const updatedTraefikYaml = yaml.dump(traefikConfig);
|
const updatedTraefikYaml = yaml.dump(traefikConfig);
|
||||||
|
|
||||||
fs.writeFileSync(traefikPath, updatedTraefikYaml, "utf8");
|
fs.writeFileSync(traefikPath, updatedTraefikYaml, "utf8");
|
||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
"Updated the version of Badger in your Traefik configuration to v1.6.0"
|
"Updated the version of Badger in your Traefik configuration to v1.6.1"
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(
|
console.log(
|
||||||
|
|||||||
@@ -456,14 +456,14 @@ export default async function migration() {
|
|||||||
throw new Error(fromZodError(parsedConfig.error).toString());
|
throw new Error(fromZodError(parsedConfig.error).toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
traefikConfig.experimental.plugins.badger.version = "v1.6.0";
|
traefikConfig.experimental.plugins.badger.version = "v1.6.1";
|
||||||
|
|
||||||
const updatedTraefikYaml = yaml.dump(traefikConfig);
|
const updatedTraefikYaml = yaml.dump(traefikConfig);
|
||||||
|
|
||||||
fs.writeFileSync(traefikPath, updatedTraefikYaml, "utf8");
|
fs.writeFileSync(traefikPath, updatedTraefikYaml, "utf8");
|
||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
"Updated the version of Badger in your Traefik configuration to v1.6.0"
|
"Updated the version of Badger in your Traefik configuration to v1.6.1"
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(
|
console.log(
|
||||||
|
|||||||
@@ -49,10 +49,6 @@ const CLIENT_LOGOS = {
|
|||||||
opencode: {
|
opencode: {
|
||||||
light: "/third-party/opencode-dark.svg",
|
light: "/third-party/opencode-dark.svg",
|
||||||
dark: "/third-party/opencode-light.svg"
|
dark: "/third-party/opencode-light.svg"
|
||||||
},
|
|
||||||
cursor: {
|
|
||||||
light: "/third-party/cursor-dark.svg",
|
|
||||||
dark: "/third-party/cursor-light.svg"
|
|
||||||
}
|
}
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
@@ -69,8 +65,7 @@ export function AiClientConfigSection({
|
|||||||
const descriptions: Record<string, string> = {
|
const descriptions: Record<string, string> = {
|
||||||
claude: t("aiClientConfigDescriptionClaude"),
|
claude: t("aiClientConfigDescriptionClaude"),
|
||||||
codex: t("aiClientConfigDescriptionCodex"),
|
codex: t("aiClientConfigDescriptionCodex"),
|
||||||
opencode: t("aiClientConfigDescriptionOpencode"),
|
opencode: t("aiClientConfigDescriptionOpencode")
|
||||||
cursor: t("aiClientConfigDescriptionCursor")
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
+22
-41
@@ -1,11 +1,10 @@
|
|||||||
export const AI_CLIENT_IDS = ["claude", "codex", "opencode", "cursor"] as const;
|
export const AI_CLIENT_IDS = ["claude", "codex", "opencode"] as const;
|
||||||
export type AiClientId = (typeof AI_CLIENT_IDS)[number];
|
export type AiClientId = (typeof AI_CLIENT_IDS)[number];
|
||||||
|
|
||||||
export const AI_CLIENT_NAMES: Record<AiClientId, string> = {
|
export const AI_CLIENT_NAMES: Record<AiClientId, string> = {
|
||||||
claude: "Claude Code",
|
claude: "Claude Code",
|
||||||
codex: "Codex",
|
codex: "Codex",
|
||||||
opencode: "OpenCode",
|
opencode: "OpenCode"
|
||||||
cursor: "Cursor"
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Auth as supplied by callers: the real key isn't fetched yet. */
|
/** Auth as supplied by callers: the real key isn't fetched yet. */
|
||||||
@@ -293,7 +292,7 @@ function buildOpencodeGuide(
|
|||||||
' "options": {',
|
' "options": {',
|
||||||
` "baseURL": "${endpoint}/v1"`,
|
` "baseURL": "${endpoint}/v1"`,
|
||||||
" }",
|
" }",
|
||||||
" }",
|
" },",
|
||||||
' "openai": {',
|
' "openai": {',
|
||||||
' "options": {',
|
' "options": {',
|
||||||
` "baseURL": "${endpoint}/v1"`,
|
` "baseURL": "${endpoint}/v1"`,
|
||||||
@@ -314,12 +313,26 @@ function buildOpencodeGuide(
|
|||||||
' "anthropic": {',
|
' "anthropic": {',
|
||||||
' "type": "api",',
|
' "type": "api",',
|
||||||
` "key": "${key}"`,
|
` "key": "${key}"`,
|
||||||
|
" },",
|
||||||
|
' "openai": {',
|
||||||
|
' "type": "api",',
|
||||||
|
` "key": "${key}"`,
|
||||||
" }",
|
" }",
|
||||||
"}"
|
"}"
|
||||||
].join("\n"),
|
].join("\n"),
|
||||||
auth
|
auth
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const moreProviders = block(
|
||||||
|
"opencode-more-providers",
|
||||||
|
"More providers",
|
||||||
|
() =>
|
||||||
|
"OpenCode configures providers individually, so Anthropic and OpenAI are just the ones set up above. " +
|
||||||
|
'You can point any other OpenCode-supported provider (e.g. "openrouter", "google", "groq") at this gateway the same way: add a matching entry under "provider" in opencode.json, and under auth.json if it needs an API key.',
|
||||||
|
auth,
|
||||||
|
"steps"
|
||||||
|
);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id: "opencode",
|
id: "opencode",
|
||||||
name: AI_CLIENT_NAMES.opencode,
|
name: AI_CLIENT_NAMES.opencode,
|
||||||
@@ -329,41 +342,10 @@ function buildOpencodeGuide(
|
|||||||
id: "default",
|
id: "default",
|
||||||
label: "Default",
|
label: "Default",
|
||||||
relation: "steps",
|
relation: "steps",
|
||||||
blocks: [config, authFile]
|
blocks:
|
||||||
}
|
auth.mode === "keyed"
|
||||||
]
|
? [config, authFile, moreProviders]
|
||||||
};
|
: [config, moreProviders]
|
||||||
}
|
|
||||||
|
|
||||||
function buildCursorGuide(endpoint: string, auth: AiClientAuth): AiClientGuide {
|
|
||||||
const steps = block(
|
|
||||||
"cursor-steps",
|
|
||||||
"Cursor Settings",
|
|
||||||
(key) =>
|
|
||||||
[
|
|
||||||
"1. Open Cursor Settings -> Models.",
|
|
||||||
'2. Enable "Override OpenAI Base URL".',
|
|
||||||
`3. Set the base URL to: ${endpoint}/v1`,
|
|
||||||
auth.mode === "keyed"
|
|
||||||
? `4. Paste your API key into the OpenAI API Key field: ${key}`
|
|
||||||
: '4. Leave the OpenAI API Key field set to a placeholder (e.g. "-"). Pangolin authenticates the request over your Newt/Olm connection automatically.',
|
|
||||||
"5. Add a custom model matching the model your Pangolin AI Gateway serves (e.g. claude-sonnet-4-6)."
|
|
||||||
].join("\n"),
|
|
||||||
auth,
|
|
||||||
"steps",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
|
|
||||||
return {
|
|
||||||
id: "cursor",
|
|
||||||
name: AI_CLIENT_NAMES.cursor,
|
|
||||||
cli: null,
|
|
||||||
presets: [
|
|
||||||
{
|
|
||||||
id: "default",
|
|
||||||
label: "Default",
|
|
||||||
relation: "steps",
|
|
||||||
blocks: [steps]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@@ -379,8 +361,7 @@ const GUIDE_BUILDERS: Record<
|
|||||||
> = {
|
> = {
|
||||||
claude: buildClaudeGuide,
|
claude: buildClaudeGuide,
|
||||||
codex: buildCodexGuide,
|
codex: buildCodexGuide,
|
||||||
opencode: buildOpencodeGuide,
|
opencode: buildOpencodeGuide
|
||||||
cursor: buildCursorGuide
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export function buildAiClientGuide(
|
export function buildAiClientGuide(
|
||||||
|
|||||||
Reference in New Issue
Block a user